aboutsummaryrefslogtreecommitdiff
path: root/tests/cyclictest/root/GNUmakefile
blob: 049fd37de9fd30e0c7c4bc5579dcd9ccb8a4e69a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
export SRCARCH=$(CONF_KERNEL_ARCH)
export BR2_EXTERNAL=$(CURDIR)/packages

lastword = $(word $(words $(1)),$(1))
makedir := $(dir $(call lastword,$(MAKEFILE_LIST)))

MAKEARGS := -C $(makedir)/../../../scripts/buildroot
MAKEARGS += O=$(if $(patsubst /%,,$(makedir)),$(CURDIR)/)$(patsubst %/,%,$(makedir))

MAKEFLAGS += --no-print-directory

.PHONY: all $(MAKECMDGOALS)

all	:= $(filter-out Makefile .config,$(MAKECMDGOALS))

_all:
	$(MAKE) $(MAKEARGS) $(all)

-include ../../../.conf.mk

../../../.conf.mk:
	$(MAKE) -C ../../../ .conf.mk

_all: .config
.config: config_base ../../../$(CONF_TEST_CONFIG_CYCLICTEST)
	cp config_base .config
	cat ../../../$(CONF_TEST_CONFIG_CYCLICTEST) >> .config
	yes "" | make oldconfig

Makefile:;

$(all): _all
	@:

%/: _all
	@: