1 .PHONY: all help parse_kconfig write_config build run test clean clean_linux clean_buildroot mlinux mbuildroot deflinux distclean_linux distclean_buildroot distclean
5 all: parse_kconfig write_config
8 @echo "all - Builds basic programs and prints message about next steps."
9 @echo "help - Prints this text"
10 @echo "mbuildroot - Calls 'make menuconfig' in buildroot folder. Use this for"
11 @echo " buildroot configuration."
12 @echo "mlinux - Calls 'make menuconfig' in linux folder. Use this for linux"
13 @echo " configuration."
14 @echo "deflinux - Executes 'make defconfig' in linux folder. This generates default"
15 @echo " linux configuration for architecture specified in conf.py"
16 @echo "test - Executes boot and benchmark test. You should use this before"
17 @echo " target run. This target is for testing if initial kernel"
18 @echo " configuration, buildroot configuration and benchmark are"
19 @echo " configured right."
20 @echo "run - Executes loop of kernel building, booting and benchmark execution."
21 @echo "evaluate - Creating result statistics from generated data."
23 @echo "clean - Cleans all generated files. Except those in linux and buildroot."
24 @echo "clean_linux - Executes 'make clean' in linux folder."
25 @echo "clean_buildroot - Executes 'make clean' in buildroot folder."
28 $(MAKE) -C scripts/buildroot menuconfig
31 ARCH=$(SRCARCH) $(MAKE) -C linux menuconfig
34 ARCH=$(SRCARCH) $(MAKE) -C linux defconfig
39 run: kconfig_parser write_config $(INITRAM)
46 @$(MAKE) -C scripts/parse_kconfig/ clean
47 @$(MAKE) -C scripts/write_config/ clean
50 distclean: clean distclean_linux distclean_buildroot
54 @$(MAKE) -C linux clean
57 @$(MAKE) -C linux distclean
60 @$(MAKE) -C scripts/buildroot clean
63 @$(MAKE) -C scripts/buildroot distclean
65 #######################################
71 @$(MAKE) -C scripts/parse_kconfig/
74 @$(MAKE) -C scripts/write_config/
79 $(BUILDROOT_INITRAM): scripts/buildroot/.config
80 @$(MAKE) -C scripts/buildroot
82 $(INITRAM): $(BUILDROOT_INITRAM) $${@D}
85 scripts/buildroot/.config: mbuildroot