Home
last modified time | relevance | path

Searched refs:shell (Results 1 – 25 of 305) sorted by relevance

12345678910>>...13

/linux/tools/scripts/
A Dutilities.mak42 # shell-escape-nl
44 # Usage: $(shell some-command | $(call shell-escape-nl[,escape]))
54 define shell-escape-nl
58 # shell-unescape-nl
60 # Usage: $(shell some-command | $(call shell-unescape-nl[,escape]))
78 # escape-for-shell-sq
88 # shell-sq
92 shell-sq = '$(escape-for-shell-sq)'
94 # shell-wordify
135 is-absolute = $(shell echo $(shell-sq) | grep -q ^/ && echo y)
[all …]
A DMakefile.include4 $(if $(shell cd $(PWD); test -d $(O) || echo $(O)),$(error O=$(O) does not exist),)
5 ABSOLUTE_O := $(shell cd $(PWD); cd $(O) ; pwd)
16 OUTDIR := $(shell cd $(OUTPUT) && pwd)
75 CC_NO_CLANG := $(shell $(CC) -dM -E -x c /dev/null | grep -Fq "__clang__"; echo $$?)
102 GCC_TOOLCHAIN_DIR := $(dir $(shell which $(CROSS_COMPILE)gcc 2>/dev/null))
105 CLANG_CROSS_FLAGS += --sysroot=$(shell $(CROSS_COMPILE)gcc -print-sysroot)
/linux/drivers/staging/vt6655/
A Dtest1 KSP := /lib/modules/$(shell uname -r)/build \
2 /usr/src/linux-$(shell uname -r) \
3 /usr/src/linux-$(shell uname -r | sed 's/-.*//') \
4 # /usr/src/kernel-headers-$(shell uname -r) \
5 # /usr/src/kernel-source-$(shell uname -r) \
6 # /usr/src/linux-$(shell uname -r | sed 's/\([0-9]*\.[0-9]*\)\..*/\1/') \
8 test_dir = $(shell [ -e $(dir)/include/linux ] && echo $(dir))
/linux/tools/build/feature/
A DMakefile99 CROSS_ARCH = $(shell $(CC) -dumpmachine)
388 -I$(shell $(LLVM_CONFIG) --includedir) \
389 -L$(shell $(LLVM_CONFIG) --libdir) \
390 $(shell $(LLVM_CONFIG) --libs Core BPF) \
391 $(shell $(LLVM_CONFIG) --system-libs) \
396 -I$(shell $(LLVM_CONFIG) --includedir) \
397 -L$(shell $(LLVM_CONFIG) --libdir) \
398 $(shell $(LLVM_CONFIG) --libs Core BPF) \
399 $(shell $(LLVM_CONFIG) --system-libs) \
405 -L$(shell $(LLVM_CONFIG) --libdir) \
[all …]
/linux/scripts/
A DKconfig.include16 if-success = $(shell,{ $(1); } >/dev/null 2>&1 && echo "$(2)" || echo "$(3)")
44 cc-info := $(shell,$(srctree)/scripts/cc-version.sh $(CC))
46 cc-name := $(shell,set -- $(cc-info) && echo $1)
47 cc-version := $(shell,set -- $(cc-info) && echo $2)
50 as-info := $(shell,$(srctree)/scripts/as-version.sh $(CC) $(CLANG_FLAGS))
52 as-name := $(shell,set -- $(as-info) && echo $1)
53 as-version := $(shell,set -- $(as-info) && echo $2)
56 ld-info := $(shell,$(srctree)/scripts/ld-version.sh $(LD))
58 ld-name := $(shell,set -- $(ld-info) && echo $1)
59 ld-version := $(shell,set -- $(ld-info) && echo $2)
[all …]
A DMakefile.headersinst29 src-headers := $(if $(src-subdirs), $(shell cd $(src) && find $(src-subdirs) -name '*.h'))
31 gen-headers := $(if $(gen-subdirs), $(shell cd $(gen) && find $(gen-subdirs) -name '*.h'))
49 old-headers := $(if $(old-subdirs),$(shell find $(old-subdirs) -name '*.h'))
56 $(if $(new-dirs), $(shell mkdir -p $(new-dirs)))
/linux/tools/build/
A DMakefile.feature6 $(shell mkdir -p $(OUTPUT_FEATURES))
11 …feature-$(1) := $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) CC="$(CC)" CXX="$(CXX)" CFLAGS="$(EXTRA_…
161 FEATURE_CHECK_CFLAGS-$(1) := $(shell $(PKG_CONFIG) --cflags $(1) 2>/dev/null)
162 FEATURE_CHECK_LDFLAGS-$(1) := $(shell $(PKG_CONFIG) --libs $(1) 2>/dev/null)
223 MSG = $(shell printf '...%40s: [ \033[32mon\033[m ]' $(1))
225 MSG = $(shell printf '...%40s: [ \033[31mOFF\033[m ]' $(1))
231 MSG = $(shell printf '...%40s: %s' $(1) $(2))
241 FEATURE_DUMP := $(shell touch $(FEATURE_DUMP_FILENAME); cat $(FEATURE_DUMP_FILENAME))
268 $(shell rm -f $(FEATURE_DUMP_FILENAME))
269 …$(foreach feat,$(FEATURE_TESTS),$(shell echo "$(call feature_assign,$(feat))" >> $(FEATURE_DUMP_FI…
/linux/tools/tracing/rtla/
A DMakefile.config9 $(eval LIB_INCLUDES += $(shell sh -c "$(PKG_CONFIG) --cflags lib$(1)"))
10 $(eval LDFLAGS += $(shell sh -c "$(PKG_CONFIG) --libs-only-L lib$(1)"))
11 $(eval EXTLIBS += $(shell sh -c "$(PKG_CONFIG) --libs-only-l lib$(1)"))
18 …TEST = $(shell sh -c "$(PKG_CONFIG) --atleast-version $(LIBTRACEEVENT_MIN_VERSION) libtraceevent >…
34 …TEST = $(shell sh -c "$(PKG_CONFIG) --atleast-version $(LIBTRACEFS_MIN_VERSION) libtracefs > /dev/…
/linux/tools/verification/rv/
A DMakefile.config9 $(eval LIB_INCLUDES += $(shell sh -c "$(PKG_CONFIG) --cflags lib$(1)"))
10 $(eval LDFLAGS += $(shell sh -c "$(PKG_CONFIG) --libs-only-L lib$(1)"))
11 $(eval EXTLIBS += $(shell sh -c "$(PKG_CONFIG) --libs-only-l lib$(1)"))
18 …TEST = $(shell sh -c "$(PKG_CONFIG) --atleast-version $(LIBTRACEEVENT_MIN_VERSION) libtraceevent >…
34 …TEST = $(shell sh -c "$(PKG_CONFIG) --atleast-version $(LIBTRACEFS_MIN_VERSION) libtracefs > /dev/…
/linux/tools/testing/selftests/net/lib/py/
A Dutils.py17 … def __init__(self, comm, shell=True, fail=True, ns=None, background=False, host=None, timeout=5): argument
29 self.proc = subprocess.Popen(comm, shell=shell, stdout=subprocess.PIPE,
55 def __init__(self, comm, shell=True, fail=None, ns=None, host=None, argument
58 shell=shell, fail=fail, ns=ns, host=host)
149 data = cmd(f'cat /proc/net/{proto}*', ns=ns, host=host, shell=True).stdout
/linux/Documentation/admin-guide/aoe/
A Dexamples.rst11 :language: shell
17 :language: shell
23 :language: shell
/linux/tools/tracing/latency/
A DMakefile.config6 $(eval LIB_INCLUDES += $(shell sh -c "$(PKG_CONFIG) --cflags lib$(1)"))
7 $(eval LDFLAGS += $(shell sh -c "$(PKG_CONFIG) --libs-only-L lib$(1)"))
8 $(eval EXTLIBS += $(shell sh -c "$(PKG_CONFIG) --libs-only-l lib$(1)"))
/linux/tools/power/cpupower/bindings/python/
A DMakefile8 HAVE_SWIG := $(shell if which swig >/dev/null 2>&1; then echo 1; else echo 0; fi)
9 HAVE_PYCONFIG := $(shell if which python-config >/dev/null 2>&1; then echo 1; else echo 0; fi)
12 PY_INCLUDE = $(firstword $(shell python-config --includes))
/linux/tools/perf/
A DMakefile.config15 $(shell printf "" > $(OUTPUT).config-detected)
16 detected = $(shell echo "$(1)=y" >> $(OUTPUT).config-detected)
17 detected_var = $(shell echo "$(1)=$($(1))" >> $(OUTPUT).config-detected)
152 LIBDW_VERSION := $(shell $(PKG_CONFIG) --modversion libdw).0.0
158 ifeq ($(shell test $(LIBDW_VERSION_2) -lt 177; echo $$?),0)
221 …ifeq ($(shell expr $(shell $(BISON) --version | grep bison | sed -e 's/.\+ \([0-9]\+\).\([0-9]\+\)…
290 PYTHON_CONFIG_SQ := $(call shell-sq,$(PYTHON_CONFIG))
842 GTK_LIBS := $(shell $(PKG_CONFIG) --libs gtk+-2.0 2>/dev/null)
895 PYTHON_WORD := $(call shell-wordify,$(PYTHON))
1319 MSG = $(shell printf '...%40s: %s' $(1) $($(1)))
[all …]
A D.gitignore42 tests/shell/*.shellcheck_log
43 tests/shell/coresight/*.shellcheck_log
44 tests/shell/lib/*.shellcheck_log
/linux/tools/cgroup/
A Diocost_coef_gen.py63 stdout=subprocess.PIPE, shell=True).stdout
80 subprocess.check_call(f'rm -f {path}', shell=True)
81 subprocess.check_call(f'touch {path}', shell=True)
82 subprocess.call(f'chattr +C {path}', shell=True)
87 shell=True)
101 subprocess.check_call(cmd, shell=True)
/linux/tools/testing/selftests/alsa/
A DMakefile3 ifneq ($(shell pkg-config --exists alsa && echo 0 || echo 1),0)
8 CFLAGS += $(shell pkg-config --cflags alsa) $(KHDR_INCLUDES)
9 LDLIBS += $(shell pkg-config --libs alsa)
/linux/tools/testing/selftests/mm/
A DMakefile12 uname_M := $(shell uname -m 2>/dev/null || echo not)
14 uname_M := $(shell echo $(CROSS_COMPILE) | grep -o '^[a-z0-9]\+')
16 ARCH ?= $(shell echo $(uname_M) | sed -e 's/aarch64.*/arm64/' -e 's/ppc64.*/powerpc/')
88 CAN_BUILD_I386 := $(shell ./../x86/check_cc.sh "$(CC)" ../x86/trivial_32bit_program.c -m32)
89 CAN_BUILD_X86_64 := $(shell ./../x86/check_cc.sh "$(CC)" ../x86/trivial_64bit_program.c)
90 CAN_BUILD_WITH_NOPIE := $(shell ./../x86/check_cc.sh "$(CC)" ../x86/trivial_program.c -no-pie)
/linux/Documentation/devicetree/bindings/
A DMakefile6 DT_SCHEMA_LINT = $(shell which yamllint || \
35 CHK_DT_EXAMPLES := $(patsubst $(srctree)/%.yaml,%.example.dtb, $(shell $(find_cmd)))
54 DT_DOCS = $(patsubst $(srctree)/%,%,$(shell $(find_all_cmd)))
79 clean-files = $(shell find $(obj) \( -name '*.example.dts' -o \
/linux/Documentation/
A DMakefile10 $(shell $(srctree)/scripts/documentation-file-ref-check --warn)
15 $(shell $(srctree)/scripts/get_abi.pl validate --dir $(srctree)/Documentation/ABI)
29 LATEXOPTS = -interaction=batchmode -no-shell-escape
40 HAVE_SPHINX := $(shell if which $(SPHINXBUILD) >/dev/null 2>&1; then echo 1; else echo 0; fi)
53 HAVE_PDFLATEX := $(shell if which $(PDFLATEX) >/dev/null 2>&1; then echo 1; else echo 0; fi)
54 HAVE_LATEXMK := $(shell if which latexmk >/dev/null 2>&1; then echo 1; else echo 0; fi)
/linux/Documentation/kbuild/
A Dkconfig-macro-language.rst38 def_bool $(shell, $(srctree)/scripts/gcc-check-foo.sh $(CC))
107 - $(shell,command)
109 The "shell" function accepts a single argument that is expanded and passed
181 For example, $(shell echo hello, world) runs the command "echo hello, world".
188 $(shell, echo hello, world)
190 is an error because it is passing two parameters where the 'shell' function
194 $(shell, echo hello$(comma) world)
228 Obviously from the design, $(shell command) is expanded in the textual
229 substitution phase. You cannot pass symbols to the 'shell' function.
239 def_bool $(shell $(srctree)/scripts/gcc-check-flag ENDIAN_FLAG)
[all …]
/linux/samples/hid/
A DMakefile75 HDR_PROBE := $(shell printf "$(pound)include <linux/types.h>\n struct list_head { int a; }; int mai…
84 BTF_LLC_PROBE := $(shell $(LLC) -march=bpf -mattr=help 2>&1 | grep dwarfris)
85 BTF_PAHOLE_PROBE := $(shell $(BTF_PAHOLE) --help 2>&1 | grep BTF)
86 BTF_OBJCOPY_PROBE := $(shell $(LLVM_OBJCOPY) --help 2>&1 | grep -i 'usage.*llvm')
87 BTF_LLVM_PROBE := $(shell echo "int main() { return 0; }" | \
189 $(shell $(1) -v -E - </dev/null 2>&1 \
191 $(shell $(1) -dM -E - </dev/null | grep '#define __riscv_xlen ' | sed 's/#define /-D/' | sed 's/ /=…
/linux/tools/power/cpupower/
A DMakefile17 OUTDIR := $(shell cd $(OUTPUT) && pwd)
54 VERSION:= $(shell ./utils/version-gen.sh)
101 GMO_FILES = ${shell for HLANG in ${LANGUAGES}; do echo $(OUTPUT)po/$$HLANG.gmo; done;}
106 cc-supports = ${shell if $(CC) ${1} -S -o /dev/null -x c /dev/null > /dev/null 2>&1; then echo "$(1…
/linux/scripts/kconfig/tests/preprocess/builtin_func/
A DKconfig17 # 'shell' executes a command, and returns its stdout.
18 $(warning,$(shell,echo hello world 3))
22 $(warning,$(shell,printf 'hello\nworld\n\n4\n\n\n'))
/linux/tools/testing/selftests/bpf/
A DMakefile27 BPF_GCC ?= $(shell command -v bpf-gcc;)
33 LIBELF_CFLAGS := $(shell $(PKG_CONFIG) libelf --cflags 2>/dev/null)
52 PCAP_LIBS := $(shell $(PKG_CONFIG) --libs libpcap 2>/dev/null)
191 ifeq ($(shell expr $(MAKE_VERSION) \>= 4.4), 1)
209 LLVM_LDFLAGS += $(shell $(LLVM_CONFIG) --ldflags)
233 /boot/vmlinux-$(shell uname -r)
267 LLD := $(shell command -v $(LD))
452 $(shell $(1) $(2) -v -E - </dev/null 2>&1 \
460 IS_LITTLE_ENDIAN = $(shell $(CC) -dM -E - </dev/null | \
693 ifneq ($2:$(OUTPUT),:$(shell pwd))
[all …]

Completed in 35 milliseconds

12345678910>>...13