| /linux/tools/scripts/ |
| A D | utilities.mak | 42 # 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 D | Makefile.include | 4 dummy := $(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) 69 CC_NO_CLANG := $(shell $(CC) -dM -E -x c /dev/null | grep -Fq "__clang__"; echo $$?)
|
| /linux/drivers/staging/vt6655/ |
| A D | test | 1 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/scripts/ |
| A D | Kconfig.include | 16 if-success = $(shell,{ $(1); } >/dev/null 2>&1 && echo "$(2)" || echo "$(3)") 43 cc-info := $(shell,$(srctree)/scripts/cc-version.sh $(CC)) 45 cc-name := $(shell,set -- $(cc-info) && echo $1) 46 cc-version := $(shell,set -- $(cc-info) && echo $2) 49 as-info := $(shell,$(srctree)/scripts/as-version.sh $(CC) $(CLANG_FLAGS)) 51 as-name := $(shell,set -- $(as-info) && echo $1) 52 as-version := $(shell,set -- $(as-info) && echo $2) 55 ld-info := $(shell,$(srctree)/scripts/ld-version.sh $(LD)) 57 ld-name := $(shell,set -- $(ld-info) && echo $1) 58 ld-version := $(shell,set -- $(ld-info) && echo $2)
|
| A D | Makefile.compiler | 13 $(if $(shell command -v -- $(c)gcc 2>/dev/null), $(c)))) 22 try-run = $(shell set -e; \ 66 cc-ifversion = $(shell [ $(CONFIG_GCC_VERSION)0 $(1) $(2)000 ] && echo $(3) || echo $(4)) 74 ld-ifversion = $(shell [ $(CONFIG_LD_VERSION)0 $(1) $(2)0 ] && echo $(3) || echo $(4))
|
| A D | Makefile.headersinst | 29 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/scripts/kconfig/ |
| A D | Makefile | 22 kernel-release := $(shell uname -r) 161 HOSTLDLIBS_nconf = $(shell . $(obj)/nconf-cfg && echo $$libs) 162 HOSTCFLAGS_nconf.o = $(shell . $(obj)/nconf-cfg && echo $$cflags) 163 HOSTCFLAGS_nconf.gui.o = $(shell . $(obj)/nconf-cfg && echo $$cflags) 173 HOSTLDLIBS_mconf = $(shell . $(obj)/mconf-cfg && echo $$libs) 184 HOSTLDLIBS_qconf = $(shell . $(obj)/qconf-cfg && echo $$libs) 185 HOSTCXXFLAGS_qconf.o = $(shell . $(obj)/qconf-cfg && echo $$cflags) 186 HOSTCXXFLAGS_qconf-moc.o = $(shell . $(obj)/qconf-cfg && echo $$cflags) 191 cmd_moc = $(shell . $(obj)/qconf-cfg && echo $$moc) $< -o $@ 202 HOSTLDLIBS_gconf = $(shell . $(obj)/gconf-cfg && echo $$libs) [all …]
|
| /linux/tools/build/ |
| A D | Makefile.feature | 6 $(shell mkdir -p $(OUTPUT_FEATURES)) 11 …feature-$(1) := $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) CC="$(CC)" CXX="$(CXX)" CFLAGS="$(EXTRA_… 179 MSG = $(shell printf '...%30s: [ \033[32mon\033[m ]' $(1)) 181 MSG = $(shell printf '...%30s: [ \033[31mOFF\033[m ]' $(1)) 187 MSG = $(shell printf '...%30s: %s' $(1) $(2)) 197 FEATURE_DUMP := $(shell touch $(FEATURE_DUMP_FILENAME); cat $(FEATURE_DUMP_FILENAME)) 224 $(shell rm -f $(FEATURE_DUMP_FILENAME)) 225 …$(foreach feat,$(FEATURE_TESTS),$(shell echo "$(call feature_assign,$(feat))" >> $(FEATURE_DUMP_FI…
|
| /linux/tools/build/feature/ |
| A D | Makefile | 212 $(BUILD) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null) 217 PERL_EMBED_LDOPTS = $(shell perl -MExtUtils::Embed -e ldopts 2>/dev/null) 300 -I$(shell $(LLVM_CONFIG) --includedir) \ 301 -L$(shell $(LLVM_CONFIG) --libdir) \ 302 $(shell $(LLVM_CONFIG) --libs Core BPF) \ 303 $(shell $(LLVM_CONFIG) --system-libs) \ 308 -I$(shell $(LLVM_CONFIG) --includedir) \ 313 -I$(shell $(LLVM_CONFIG) --includedir) \ 314 -L$(shell $(LLVM_CONFIG) --libdir) \ 318 $(shell $(LLVM_CONFIG) --libs Core option) \ [all …]
|
| /linux/Documentation/admin-guide/aoe/ |
| A D | examples.rst | 11 :language: shell 17 :language: shell 23 :language: shell
|
| /linux/tools/cgroup/ |
| A D | iocost_coef_gen.py | 63 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/vm/ |
| A D | Makefile | 6 uname_M := $(shell uname -m 2>/dev/null || echo not) 7 MACHINE ?= $(shell echo $(uname_M) | sed -e 's/aarch64.*/arm64/' -e 's/ppc64.*/ppc64/') 52 CAN_BUILD_I386 := $(shell ./../x86/check_cc.sh $(CC) ../x86/trivial_32bit_program.c -m32) 53 CAN_BUILD_X86_64 := $(shell ./../x86/check_cc.sh $(CC) ../x86/trivial_64bit_program.c) 54 CAN_BUILD_WITH_NOPIE := $(shell ./../x86/check_cc.sh $(CC) ../x86/trivial_program.c -no-pie)
|
| /linux/Documentation/kbuild/ |
| A D | kconfig-macro-language.rst | 38 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/tools/perf/ |
| A D | Makefile.config | 15 $(shell printf "" > $(OUTPUT).config-detected) 16 detected = $(shell echo "$(1)=y" >> $(OUTPUT).config-detected) 17 detected_var = $(shell echo "$(1)=$($(1))" >> $(OUTPUT).config-detected) 205 …ifeq ($(shell expr $(shell $(BISON) --version | grep bison | sed -e 's/.\+ \([0-9]\+\).\([0-9]\+\)… 253 PYTHON_CONFIG_SQ := $(call shell-sq,$(PYTHON_CONFIG)) 759 GTK_CFLAGS += $(shell $(PKG_CONFIG) --cflags gtk+-2.0 2>/dev/null) 760 GTK_LIBS := $(shell $(PKG_CONFIG) --libs gtk+-2.0 2>/dev/null) 809 PYTHON_WORD := $(call shell-wordify,$(PYTHON)) 1112 LIBTRACEFS_VERSION := $(shell $(PKG_CONFIG) --modversion libtracefs) 1220 MSG = $(shell printf '...%30s: %s' $(1) $($(1))) [all …]
|
| /linux/tools/testing/selftests/x86/ |
| A D | Makefile | 8 UNAME_M := $(shell uname -m) 9 CAN_BUILD_I386 := $(shell ./check_cc.sh $(CC) trivial_32bit_program.c -m32) 10 CAN_BUILD_X86_64 := $(shell ./check_cc.sh $(CC) trivial_64bit_program.c) 11 CAN_BUILD_WITH_NOPIE := $(shell ./check_cc.sh $(CC) trivial_program.c -no-pie)
|
| /linux/Documentation/ |
| A D | Makefile | 10 $(shell $(srctree)/scripts/documentation-file-ref-check --warn) 15 $(shell $(srctree)/scripts/get_abi.pl validate --dir $(srctree)/Documentation/ABI) 34 HAVE_SPHINX := $(shell if which $(SPHINXBUILD) >/dev/null 2>&1; then echo 1; else echo 0; fi) 47 HAVE_PDFLATEX := $(shell if which $(PDFLATEX) >/dev/null 2>&1; then echo 1; else echo 0; fi) 48 HAVE_LATEXMK := $(shell if which latexmk >/dev/null 2>&1; then echo 1; else echo 0; fi)
|
| /linux/tools/power/cpupower/ |
| A D | Makefile | 17 OUTDIR := $(shell cd $(OUTPUT) && pwd) 54 VERSION:= $(shell ./utils/version-gen.sh) 109 GMO_FILES = ${shell for HLANG in ${LANGUAGES}; do echo $(OUTPUT)po/$$HLANG.gmo; done;} 114 cc-supports = ${shell if $(CC) ${1} -S -o /dev/null -x c /dev/null > /dev/null 2>&1; then echo "$(1…
|
| /linux/tools/lib/bpf/ |
| A D | Makefile | 8 LIBBPF_VERSION := $(shell \ 123 TAGS_PROG := $(if $(shell which etags 2>/dev/null),etags,ctags) 125 GLOBAL_SYM_COUNT = $(shell readelf -s --wide $(BPF_IN_SHARED) | \ 130 VERSIONED_SYM_COUNT = $(shell readelf --dyn-syms --wide $(OUTPUT)libbpf.so | \ 205 HDR_MAJ_VERSION := $(shell grep -oE '^$(pound)define LIBBPF_MAJOR_VERSION ([0-9]+)$$' libbpf_versio… 206 HDR_MIN_VERSION := $(shell grep -oE '^$(pound)define LIBBPF_MINOR_VERSION ([0-9]+)$$' libbpf_versio…
|
| /linux/tools/testing/selftests/powerpc/ |
| A D | Makefile | 5 ARCH ?= $(shell uname -m) 6 ARCH := $(shell echo $(ARCH) | sed -e s/ppc.*/powerpc/) 10 GIT_VERSION = $(shell git describe --always --long --dirty || echo "unknown")
|
| /linux/scripts/kconfig/tests/preprocess/builtin_func/ |
| A D | Kconfig | 17 # '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/certs/ |
| A D | Makefile | 60 openssl_available = $(shell openssl help 2>/dev/null && echo yes) 68 X509TEXT=$(shell openssl x509 -in "certs/signing_key.pem" -text 2>/dev/null) 75 $(if $(findstring id-ecPublicKey,$(X509TEXT)),,$(shell rm -f "certs/signing_key.pem")) 81 $(if $(findstring rsaEncryption,$(X509TEXT)),,$(shell rm -f "certs/signing_key.pem"))
|
| /linux/arch/parisc/ |
| A D | Makefile | 70 CC_FLAGS_FTRACE := -fpatchable-function-entry=$(NOP_COUNT),$(shell echo $$(($(NOP_COUNT)-1))) 114 LIBGCC := $(shell $(CC) -print-libgcc-file-name) 121 PALO := $(shell if (which palo 2>&1); then : ; \ 125 PALOCONF := $(shell if [ -f $(srctree)/palo.conf ]; then echo $(srctree)/palo.conf; \
|
| /linux/scripts/dtc/ |
| A D | Makefile | 21 ifeq ($(shell pkg-config --exists yaml-0.1 2>/dev/null && echo yes),) 30 HOSTCFLAGS_yamltree.o := $(shell pkg-config --cflags yaml-0.1) 32 HOSTLDLIBS_dtc := $(shell pkg-config yaml-0.1 --libs)
|
| /linux/tools/power/x86/intel_pstate_tracer/ |
| A D | intel_pstate_tracer.py | 182 …title_list = subprocess.check_output('ls cpu???.csv | sed -e \'s/.csv//\'',shell=True).decode('utf… 199 …title_list = subprocess.check_output('ls cpu???.csv | sed -e \'s/.csv//\'',shell=True).decode('utf… 213 …title_list = subprocess.check_output('ls cpu???.csv | sed -e \'s/.csv//\'',shell=True).decode('utf… 227 …title_list = subprocess.check_output('ls cpu???.csv | sed -e \'s/.csv//\'',shell=True).decode('utf… 241 …title_list = subprocess.check_output('ls cpu???.csv | sed -e \'s/.csv//\'',shell=True).decode('utf… 255 …title_list = subprocess.check_output('ls cpu???.csv | sed -e \'s/.csv//\'',shell=True).decode('utf… 269 …title_list = subprocess.check_output('ls cpu???.csv | sed -e \'s/.csv//\'',shell=True).decode('utf… 283 …title_list = subprocess.check_output('ls cpu???.csv | sed -e \'s/.csv//\'',shell=True).decode('utf…
|
| /linux/arch/sh/boot/compressed/ |
| A D | Makefile | 15 $(shell rm -f $(addprefix $(obj)/, ashiftrt.S ashldi3.c ashrsi3.S ashlsi3.S lshrsi3.S)) 27 IMAGE_OFFSET := $(shell /bin/bash -c 'printf "0x%08x" \ 31 IMAGE_OFFSET := $(shell /bin/bash -c 'printf "0x%08x" \
|