| /linux/tools/scripts/ |
| H A D | utilities.mak | 22 # 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 …]
|
| H A D | Makefile.include | 4 $(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) 107 CC_NO_CLANG := $(shell if command -v $(firstword $(CC)) >/dev/null 2>&1; then $(CC) -dM -E -x c /dev/null; fi | grep -Fq "__clang__"; echo $$?) 124 GCC_TOOLCHAIN_DIR := $(dir $(shell which $(CROSS_COMPILE)gcc 2>/dev/null)) 127 CLANG_CROSS_FLAGS += --sysroot=$(shell $(CROSS_COMPILE)gcc -print-sysroot)
|
| /linux/tools/testing/selftests/drivers/net/ |
| H A D | ping.py | 43 shell=True, host=cfg.remote) 50 cmd(f"echo {test_string} | socat -t 2 -u STDIN TCP:{cfg.remote_baddr}:{port}", shell=True) 71 cmd(f"ip link set dev {cfg.remote_ifname} mtu 1500", shell=True, host=cfg.remote) 72 cmd(f"ip link set dev {cfg.ifname} mtu 1500 xdpgeneric obj {prog} sec xdp", shell=True) 80 cmd(f"ip link set dev {cfg.remote_ifname} mtu 9000", shell=True, host=cfg.remote) 90 cmd(f"ip link set dev {cfg.remote_ifname} mtu 1500", shell=True, host=cfg.remote) 91 cmd(f"ip -j link set dev {cfg.ifname} mtu 1500 xdp obj {prog} sec xdp", shell=True) 107 cmd(f"ip link set dev {cfg.remote_ifname} mtu 9000", shell=True, host=cfg.remote) 110 cmd(f"ip link set dev {cfg.ifname} mtu 9000 xdp obj {prog} sec xdp.frags", shell=True) 120 cmd(f"ip link set dev {cfg.ifname} mtu 1500", shell=True) [all …]
|
| /linux/tools/build/feature/ |
| H A D | Makefile | 81 ifneq (, $(shell which $(CROSS_COMPILE)pkg-config)) 114 $(shell $(PKG_CONFIG) --libs --cflags openssl 2>/dev/null) 171 LIBDW_VERSION := $(shell $(PKG_CONFIG) --modversion libdw).0.0 177 ifeq ($(shell test $(LIBDW_VERSION_2) -lt 177; echo $$?),0) 241 $(BUILD) $(shell $(PKG_CONFIG) --cflags libtracefs 2>/dev/null) -ltracefs 244 $(BUILD) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null) -Wno-deprecated-declarations 247 $(BUILD) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null) 252 PERL_EMBED_LDOPTS = $(shell perl -MExtUtils::Embed -e ldopts 2>/dev/null) 255 PERL_EMBED_CCOPTS = $(shell perl -MExtUtils::Embed -e ccopts 2>/dev/null) 347 -I$(shell [all...] |
| /linux/scripts/ |
| H A D | Kconfig.include | 16 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 …]
|
| H 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/tools/build/ |
| H A D | Makefile.feature | 6 $(shell mkdir -p $(OUTPUT_FEATURES)) 11 feature-$(1) := $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) CC="$(CC)" CXX="$(CXX)" CFLAGS="$(EXTRA_CFLAGS) $(FEATURE_CHECK_CFLAGS-$(1))" CXXFLAGS="$(EXTRA_CXXFLAGS) $(FEATURE_CHECK_CXXFLAGS-$(1))" LDFLAGS="$(LDFLAGS) $(FEATURE_CHECK_LDFLAGS-$(1))" -C $(feature_dir) $(OUTPUT_FEATURES)test-$1.bin >/dev/null 2>/dev/null && echo 1 || echo 0) 176 FEATURE_CHECK_CFLAGS-$(1) := $(shell $(PKG_CONFIG) --cflags $(1) 2>/dev/null) 177 FEATURE_CHECK_LDFLAGS-$(1) := $(shell $(PKG_CONFIG) --libs $(1) 2>/dev/null) 244 MSG = $(shell printf '...%40s: [ \033[32mon\033[m ]' $(1)) 246 MSG = $(shell printf '...%40s: [ \033[31mOFF\033[m ]' $(1)) 252 MSG = $(shell printf '...%40s: %s' $(1) $(2)) 262 FEATURE_DUMP := $(shell touch $(FEATURE_DUMP_FILENAME); cat $(FEATURE_DUMP_FILENAME)) 289 $(shell rm -f $(FEATURE_DUMP_FILENAME)) 290 $(foreach feat,$(FEATURE_TESTS),$(shell ech [all...] |
| /linux/tools/perf/tests/ |
| H A D | Build | 84 SHELL_TESTS := $(shell find tests/shell -executable -type f -name '*.sh') 85 SHELL_TEST_LOGS := $(SHELL_TESTS:tests/shell/%=shell/%.shellcheck_log) 98 PY_TESTS := $(shell find tests/shell -type f -name '*.py') 99 MYPY_TEST_LOGS := $(PY_TESTS:tests/shell/%=shell/%.mypy_log) 111 PY_TESTS := $(shell find tests/shell [all...] |
| /linux/tools/verification/rv/ |
| H A D | Makefile.config | 9 $(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/objtool/ |
| H A D | Makefile | 15 HAVE_XXHASH = $(shell printf "$(pound)include <xxhash.h>\nXXH3_state_t *state;int main() {}" | \ 19 LIBXXHASH_CFLAGS := $(shell $(HOSTPKG_CONFIG) libxxhash --cflags 2>/dev/null) \ 21 LIBXXHASH_LIBS := $(shell $(HOSTPKG_CONFIG) libxxhash --libs 2>/dev/null || echo -lxxhash) 45 LIBELF_FLAGS := $(shell $(HOSTPKG_CONFIG) libelf --cflags 2>/dev/null) 46 LIBELF_LIBS := $(shell $(HOSTPKG_CONFIG) libelf --libs 2>/dev/null || echo -lelf) 69 elfshdr := $(shell echo '$(pound)include <libelf.h>' | $(HOSTCC) $(OBJTOOL_CFLAGS) -x c -E - 2>/dev… 87 LIBOPCODES_LIBS := $(shell \ 101 HAVE_DISASM_STYLED := $(shell echo '$(pound)include <dis-asm.h>' | \
|
| /linux/tools/testing/selftests/filesystems/fuse/ |
| H A D | Makefile | 10 ACL_CFLAGS := $(shell pkg-config fuse3 --cflags 2>/dev/null) 11 ACL_LDLIBS := $(shell pkg-config fuse3 --libs 2>/dev/null) 20 VAR_CFLAGS := $(shell pkg-config fuse --cflags 2>/dev/null) 25 VAR_LDLIBS := $(shell pkg-config fuse --libs 2>/dev/null)
|
| /linux/tools/perf/ |
| H 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) 41 CLANG_TARGET_FLAGS := $(shell $(CLANG) -print-target-triple) 173 LIBDW_VERSION := $(shell $(PKG_CONFIG) --modversion libdw).0.0 179 ifeq ($(shell test $(LIBDW_VERSION_2) -lt 177; echo $$?),0) 235 …ifeq ($(shell expr $(shell $(BISON) --version | grep bison | sed -e 's/.\+ \([0-9]\+\).\([0-9]\+\)… 304 PYTHON_CONFIG_SQ := $(call shell-sq,$(PYTHON_CONFIG)) 309 ifeq ($(shell $(PYTHON_CONFIG_SQ) --ldflags --embed 2>&1 1>/dev/null; echo $$?), 0) 316 PYTHON_EMBED_LDOPTS := $(shell $(PYTHON_CONFIG_SQ) $(PYTHON_CONFIG_LDFLAGS) 2>/dev/null) [all …]
|
| /linux/tools/power/cpupower/bindings/python/ |
| H A D | Makefile | 10 HAVE_SWIG := $(shell if which swig >/dev/null 2>&1; then echo 1; else echo 0; fi) 11 HAVE_PYCONFIG := $(shell if which python-config >/dev/null 2>&1; then echo 1; else echo 0; fi) 13 PY_INCLUDE ?= $(firstword $(shell python-config --includes)) 14 INSTALL_DIR ?= $(shell python3 -c "import site; print(site.getsitepackages()[0])")
|
| /linux/tools/testing/selftests/net/lib/py/ |
| H A D | utils.py | 46 def __init__(self, comm, shell=None, fail=True, expect_fail=False, ns=None, argument 69 if shell is None and isinstance(comm, str) and ' ' in comm: 87 self.proc = subprocess.Popen(comm, shell=shell, stdout=subprocess.PIPE, 180 def __init__(self, comm, shell=None, fail=None, expect_fail=None, argument 184 shell=shell, fail=fail, expect_fail=expect_fail, 192 if shell and self.terminate: 297 cmd_obj = cmd(cmd_arr, ns=ns, host=host, shell=False, timeout=timeout) 351 data = cmd(f'cat /proc/net/{proto}*', ns=ns, host=host, shell=True).stdout
|
| /linux/Documentation/admin-guide/aoe/ |
| H A D | examples.rst | 11 :language: shell 17 :language: shell 23 :language: shell
|
| /linux/tools/cgroup/ |
| H 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/tracing/rtla/ |
| H A D | Makefile.config | 17 $(eval LIB_INCLUDES += $(shell sh -c "$(PKG_CONFIG) --cflags lib$(1)")) 18 $(eval LDFLAGS += $(shell sh -c "$(PKG_CONFIG) --libs-only-L lib$(1)")) 19 $(eval EXTLIBS += $(shell sh -c "$(PKG_CONFIG) --libs-only-l lib$(1)")) 26 TEST = $(shell sh -c "$(PKG_CONFIG) --atleast-version $(LIBTRACEEVENT_MIN_VERSION) libtraceevent > /dev/null 2>&1 && echo y || echo n") 42 TEST = $(shell sh -c "$(PKG_CONFIG) --atleast-version $(LIBTRACEFS_MIN_VERSION) libtracefs > /dev/null 2>&1 && echo y || echo n")
|
| /linux/tools/testing/selftests/alsa/ |
| H A D | Makefile | 3 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/tracing/latency/ |
| H A D | Makefile.config | 14 $(eval LIB_INCLUDES += $(shell sh -c "$(PKG_CONFIG) --cflags lib$(1)")) 15 $(eval LDFLAGS += $(shell sh -c "$(PKG_CONFIG) --libs-only-L lib$(1)")) 16 $(eval EXTLIBS += $(shell sh -c "$(PKG_CONFIG) --libs-only-l lib$(1)"))
|
| /linux/Documentation/kbuild/ |
| H 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/samples/hid/ |
| H A D | Makefile | 76 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/Documentation/devicetree/bindings/ |
| H A D | Makefile | 6 DT_SCHEMA_LINT = $(shell which yamllint || \ 36 $(shell $(find_cmd) | xargs grep -l '^examples:')) 67 DT_DOCS = $(patsubst $(srctree)/%,%,$(shell $(find_all_cmd))) 93 clean-files = $(shell find $(obj) \( -name '*.example.dts' -o \
|
| /linux/scripts/kconfig/tests/preprocess/builtin_func/ |
| H 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/tools/testing/selftests/bpf/ |
| H A D | Makefile | 28 BPF_GCC ?= $(shell command -v bpf-gcc;) 38 LIBELF_CFLAGS := $(shell $(PKG_CONFIG) libelf --cflags 2>/dev/null) 39 LIBELF_LIBS := $(shell $(PKG_CONFIG) libelf --libs 2>/dev/null || echo -lelf) 69 PCAP_CFLAGS := $(shell $(PKG_CONFIG) --cflags libpcap 2>/dev/null && echo "-DTRAFFIC_MONITOR=1") 70 PCAP_LIBS := $(shell $(PKG_CONFIG) --libs libpcap 2>/dev/null) 83 ifneq ($(shell $(CLANG) --target=bpf -mcpu=help 2>&1 | grep 'v4'),) 88 CLANG_HAS_ARENA_ASAN := $(shell echo 'int x;' | \ 180 ifeq ($(shell expr $(MAKE_VERSION) \>= 4.4), 1) 195 LLVM_CFLAGS += $(filter-out -D_GNU_SOURCE,$(shell $(LLVM_CONFIG) --cflags)) 202 LLVM_LINK_STATIC := $(shell [all...] |
| /linux/drivers/net/dsa/lantiq/ |
| H A D | mxl-gsw1xx.c | 34 struct regmap *shell; member 145 return regmap_clear_bits(priv->shell, GSW1XX_SHELL_RST_REQ, in gsw1xx_pcs_enable() 156 regmap_set_bits(priv->shell, GSW1XX_SHELL_RST_REQ, in gsw1xx_pcs_disable() 246 ret = regmap_set_bits(priv->shell, GSW1XX_SHELL_RST_REQ, in gsw1xx_pcs_reset() 251 ret = regmap_clear_bits(priv->shell, GSW1XX_SHELL_RST_REQ, in gsw1xx_pcs_reset() 623 return regmap_update_bits(priv->shell, GSW1XX_SHELL_RGMII_SLEW_CFG, mask, mask * rate); in gsw1xx_rmii_slew_rate() 683 return regmap_set_bits(priv->shell, GSW1XX_SHELL_RST_REQ, in gsw1xx_serdes_pcs_init() 736 priv->shell = gsw1xx_regmap_init(priv, "shell", GSW1XX_SHELL_BASE, in gsw1xx_probe() 738 if (IS_ERR(priv->shell)) in gsw1xx_probe() 739 return PTR_ERR(priv->shell); in gsw1xx_probe() [all …]
|