forked from kernelkit/vendor-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (31 loc) · 1.32 KB
/
Makefile
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
37
38
39
40
41
42
43
44
export BR2_EXTERNAL := $(CURDIR)/infix:$(CURDIR)
ARCH ?= $(shell uname -m)
O ?= $(CURDIR)/output
config := $(O)/.config
bmake = $(MAKE) -C infix/buildroot O=$(O) $1
imake = $(MAKE) -C infix O=$(O) $1
all: $(config) infix/buildroot/Makefile
@+$(call bmake,$@)
$(config):
@+$(call bmake,list-defconfigs)
@echo "ERROR: No configuration selected."
@echo "Please choose a configuration from the list above by running"
@echo "'make <board>_defconfig' before building an image."
@exit 1
%_defconfig: configs/%_defconfig
@+$(call bmake,$@)
%: | infix/buildroot/Makefile
@+$(call bmake,$@)
infix/buildroot/Makefile:
@git submodule update --init --recursive
.PHONY: all
.PHONY: test
test:
$(call imake,test)
test-spec:
$(call imake,test-spec)
defconfigs-generate:
./infix/utils/generate-defconfig.sh -b infix/configs/aarch64_defconfig -c config-snippets/vendor.conf -o configs/aarch64_defconfig
./infix/utils/generate-defconfig.sh -b infix/configs/x86_64_defconfig -c config-snippets/vendor.conf -o configs/x86_64_defconfig
./infix/utils/generate-defconfig.sh -b infix/configs/aarch64_minimal_defconfig -c config-snippets/vendor.conf -o configs/aarch64_minimal_defconfig
./infix/utils/generate-defconfig.sh -b infix/configs/x86_64_minimal_defconfig -c config-snippets/vendor.conf -o configs/x86_64_minimal_defconfig