Lines Matching +full:build +full:- +full:rules

1 # SPDX-License-Identifier: GPL-2.0
3 TARGETS += amd-pstate
14 TARGETS += cpu-hotplug
16 TARGETS += dmabuf-heaps
17 TARGETS += drivers/dma-buf
47 TARGETS += memory-hotplug
86 TARGETS += tc-testing
106 TARGETS_HOTPLUG = cpu-hotplug
107 TARGETS_HOTPLUG += memory-hotplug
110 # BPF since it has cutting edge build time dependencies which require
114 TMP := $(filter-out $(SKIP_TARGETS), $(TARGETS))
124 # Clear LDFLAGS and MAKEFLAGS when implicit rules are missing. This provides
125 # implicit rules to sub-test Makefiles which avoids build failures in test
126 # Makefile that don't have explicit build rules.
146 # Make's built-in functions such as $(abspath ...), $(realpath ...) cannot
148 …abs_objtree := $(shell cd $(top_srcdir) && mkdir -p $(KBUILD_OUTPUT) && cd $(KBUILD_OUTPUT) && pwd)
153 BUILD := $(abs_objtree)/kselftest macro
154 KHDR_INCLUDES := -isystem ${abs_objtree}/usr/include
157 BUILD := $(CURDIR) macro
159 KHDR_INCLUDES := -isystem ${abs_srctree}/usr/include
167 export BUILD
177 BUILD_TARGET=$$BUILD/$$TARGET; \
178 mkdir $$BUILD_TARGET -p; \
179 $(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET \
187 if [ $$? -ne 0 ]; then \
191 echo -e "$${RED}error$${NOCOLOR}: missing kernel header files."; \
204 BUILD_TARGET=$$BUILD/$$TARGET; \
205 $(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET run_tests \
211 BUILD_TARGET=$$BUILD/$$TARGET; \
212 $(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET;\
217 BUILD_TARGET=$$BUILD/$$TARGET; \
218 $(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET run_full_test;\
223 BUILD_TARGET=$$BUILD/$$TARGET; \
224 $(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET clean;\
228 $(MAKE) -C pstore run_crash
230 # Use $BUILD as the default install root. $BUILD points to the
237 KSFT_INSTALL_PATH ?= $(BUILD)/kselftest_install
242 TEST_LIST := $(INSTALL_PATH)/kselftest-list.txt
247 mkdir -p $(INSTALL_PATH)/kselftest
248 install -m 744 kselftest/module.sh $(INSTALL_PATH)/kselftest/
249 install -m 744 kselftest/runner.sh $(INSTALL_PATH)/kselftest/
250 install -m 744 kselftest/prefix.pl $(INSTALL_PATH)/kselftest/
251 install -m 744 run_kselftest.sh $(INSTALL_PATH)/
252 rm -f $(TEST_LIST)
255 BUILD_TARGET=$$BUILD/$$TARGET; \
256 $(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET INSTALL_PATH=$(INSTALL_PATH)/$$TARGET install \
264 @# While building kselftest-list.text skip also non-existent TARGET dirs:
265 @# they could be the result of a build failure and should NOT be
268 BUILD_TARGET=$$BUILD/$$TARGET; \
269 [ ! -d $(INSTALL_PATH)/$$TARGET ] && printf "Skipping non-existent dir: $$TARGET\n" && continue; \
271 $(MAKE) -s --no-print-directory OUTPUT=$$BUILD_TARGET COLLECTION=$$TARGET \
272 -C $$TARGET emit_tests >> $(TEST_LIST); \
279 TAR_PATH = $(abspath ${INSTALL_PATH}/kselftest-packages/kselftest.tar${FORMAT})
281 @mkdir -p ${INSTALL_PATH}/kselftest-packages/
282 @tar caf ${TAR_PATH} --exclude=kselftest-packages -C ${INSTALL_PATH} .
287 BUILD_TARGET=$$BUILD/$$TARGET; \
288 $(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET clean;\