Home
last modified time | relevance | path

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

12345678910>>...12

/linux-6.6.21/tools/scripts/
Dutilities.mak22 # GNU make's $(shell ...) function converts to a
42 # shell-escape-nl
44 # Usage: $(shell some-command | $(call shell-escape-nl[,escape]))
46 # Use this to escape newlines from within a shell call;
50 # in an `awk' program that is delimited by shell
54 define shell-escape-nl
58 # shell-unescape-nl
60 # Usage: $(shell some-command | $(call shell-unescape-nl[,escape]))
62 # Use this to unescape newlines from within a shell call;
67 # delimited by shell single-quotes, so be wary
[all …]
DMakefile.include4 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)
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-6.6.21/drivers/staging/vt6655/
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-6.6.21/scripts/
DKconfig.include16 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)
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-6.6.21/tools/build/
DMakefile.feature6 $(shell mkdir -p $(OUTPUT_FEATURES))
11 …feature-$(1) := $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) CC="$(CC)" CXX="$(CXX)" CFLAGS="$(EXTRA_…
202 MSG = $(shell printf '...%40s: [ \033[32mon\033[m ]' $(1))
204 MSG = $(shell printf '...%40s: [ \033[31mOFF\033[m ]' $(1))
210 MSG = $(shell printf '...%40s: %s' $(1) $(2))
220 FEATURE_DUMP := $(shell touch $(FEATURE_DUMP_FILENAME); cat $(FEATURE_DUMP_FILENAME))
247 $(shell rm -f $(FEATURE_DUMP_FILENAME))
248 …$(foreach feat,$(FEATURE_TESTS),$(shell echo "$(call feature_assign,$(feat))" >> $(FEATURE_DUMP_FI…
/linux-6.6.21/tools/build/feature/
DMakefile211 $(BUILD) $(shell $(PKG_CONFIG) --cflags libtraceevent 2>/dev/null) -ltracefs
217 $(BUILD) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null) -Wno-deprecated-declarations
220 $(BUILD) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null)
225 PERL_EMBED_LDOPTS = $(shell perl -MExtUtils::Embed -e ldopts 2>/dev/null)
228 PERL_EMBED_CCOPTS = $(shell perl -MExtUtils::Embed -e ccopts 2>/dev/null)
344 -I$(shell $(LLVM_CONFIG) --includedir) \
345 -L$(shell $(LLVM_CONFIG) --libdir) \
346 $(shell $(LLVM_CONFIG) --libs Core BPF) \
347 $(shell $(LLVM_CONFIG) --system-libs) \
352 -I$(shell $(LLVM_CONFIG) --includedir) \
[all …]
/linux-6.6.21/Documentation/admin-guide/aoe/
Dexamples.rst11 :language: shell
17 :language: shell
23 :language: shell
/linux-6.6.21/tools/cgroup/
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-6.6.21/tools/testing/selftests/mm/
DMakefile11 uname_M := $(shell uname -m 2>/dev/null || echo not)
13 uname_M := $(shell echo $(CROSS_COMPILE) | grep -o '^[a-z0-9]\+')
15 ARCH ?= $(shell echo $(uname_M) | sed -e 's/aarch64.*/arm64/' -e 's/ppc64.*/ppc64/')
77 CAN_BUILD_I386 := $(shell ./../x86/check_cc.sh "$(CC)" ../x86/trivial_32bit_program.c -m32)
78 CAN_BUILD_X86_64 := $(shell ./../x86/check_cc.sh "$(CC)" ../x86/trivial_64bit_program.c)
79 CAN_BUILD_WITH_NOPIE := $(shell ./../x86/check_cc.sh "$(CC)" ../x86/trivial_program.c -no-pie)
/linux-6.6.21/Documentation/devicetree/bindings/
DMakefile6 DT_SCHEMA_LINT = $(shell which yamllint || \
32 CHK_DT_DOCS := $(shell $(find_cmd))
55 DT_DOCS = $(patsubst $(srctree)/%,%,$(shell $(find_all_cmd)))
76 clean-files = $(shell find $(obj) \( -name '*.example.dts' -o \
/linux-6.6.21/Documentation/
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
36 HAVE_SPHINX := $(shell if which $(SPHINXBUILD) >/dev/null 2>&1; then echo 1; else echo 0; fi)
49 HAVE_PDFLATEX := $(shell if which $(PDFLATEX) >/dev/null 2>&1; then echo 1; else echo 0; fi)
50 HAVE_LATEXMK := $(shell if which latexmk >/dev/null 2>&1; then echo 1; else echo 0; fi)
/linux-6.6.21/tools/testing/selftests/x86/
DMakefile8 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-6.6.21/tools/power/cpupower/
DMakefile17 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-6.6.21/tools/perf/
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)
226 …ifeq ($(shell expr $(shell $(BISON) --version | grep bison | sed -e 's/.\+ \([0-9]\+\).\([0-9]\+\)…
299 PYTHON_CONFIG_SQ := $(call shell-sq,$(PYTHON_CONFIG))
304 ifeq ($(shell $(PYTHON_CONFIG_SQ) --ldflags --embed 2>&1 1>/dev/null; echo $$?), 0)
311 PYTHON_EMBED_LDOPTS := $(shell $(PYTHON_CONFIG_SQ) $(PYTHON_CONFIG_LDFLAGS) 2>/dev/null)
314 PYTHON_EMBED_CCOPTS := $(shell $(PYTHON_CONFIG_SQ) --includes 2>/dev/null)
450 ifneq ($(shell ldconfig -p | grep libasan >/dev/null 2>&1; echo $$?), 0)
456 ifneq ($(shell ldconfig -p | grep libubsan >/dev/null 2>&1; echo $$?), 0)
[all …]
/linux-6.6.21/Documentation/kbuild/
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-6.6.21/tools/testing/selftests/powerpc/
DMakefile5 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-6.6.21/samples/hid/
DMakefile76 HDR_PROBE := $(shell printf "$(pound)include <linux/types.h>\n struct list_head { int a; }; int mai…
85 BTF_LLC_PROBE := $(shell $(LLC) -march=bpf -mattr=help 2>&1 | grep dwarfris)
86 BTF_PAHOLE_PROBE := $(shell $(BTF_PAHOLE) --help 2>&1 | grep BTF)
87 BTF_OBJCOPY_PROBE := $(shell $(LLVM_OBJCOPY) --help 2>&1 | grep -i 'usage.*llvm')
88 BTF_LLVM_PROBE := $(shell echo "int main() { return 0; }" | \
190 $(shell $(1) -v -E - </dev/null 2>&1 \
192 $(shell $(1) -dM -E - </dev/null | grep '#define __riscv_xlen ' | sed 's/#define /-D/' | sed 's/ /=…
/linux-6.6.21/scripts/kconfig/tests/preprocess/builtin_func/
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-6.6.21/tools/testing/crypto/chacha20-s390/
DMakefile10 make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules
12 make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) clean
/linux-6.6.21/tools/usb/ffs-aio-example/multibuff/host_app/
DMakefile3 LIBUSB_CFLAGS = $(shell pkg-config --cflags libusb-1.0)
4 LIBUSB_LIBS = $(shell pkg-config --libs libusb-1.0)
/linux-6.6.21/tools/usb/ffs-aio-example/simple/host_app/
DMakefile3 LIBUSB_CFLAGS = $(shell pkg-config --cflags libusb-1.0)
4 LIBUSB_LIBS = $(shell pkg-config --libs libusb-1.0)
/linux-6.6.21/tools/testing/selftests/kexec/
DMakefile4 ARCH ?= $(shell uname -m 2>/dev/null || echo not)
5 ARCH_PROCESSED := $(shell echo $(ARCH) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
/linux-6.6.21/tools/testing/selftests/breakpoints/
DMakefile3 uname_M := $(shell uname -m 2>/dev/null || echo not)
4 ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
/linux-6.6.21/tools/testing/selftests/intel_pstate/
DMakefile5 ARCH ?= $(shell uname -m 2>/dev/null || echo not)
6 ARCH_PROCESSED := $(shell echo $(ARCH) | sed -e s/i.86/x86/ -e s/x86_64/x86/)

12345678910>>...12