blob: 7504c54b12faa44a6dbc503ed39d469dd8aeea4d (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
.PHONY: all help parse_kconfig write_config build run test clean clean_linux clean_buildroot mlinux mbuildroot
all: parse_kconfig write_config
help:
@echo "all - Builds basic programs and prints message about next steps."
@echo "help - Prints this text"
@echo "mbuildroot - Calls 'make menuconfig' in buildroot folder. Use this for"
@echo " buildroot configuration."
@echo "mlinux - Calls 'make menuconfig' in linux folder. Use this for linux"
@echo " configuration."
@echo "test - Executes boot and benchmark test. You should use this before"
@echo " target run. This target is for testing if initial kernel"
@echo " configuration, buildroot configuration and benchmark are"
@echo " configured right."
@echo "run - Executes loop of kernel building, booting and benchmark execution."
@echo "evaluate - Creating result statistics from generated data."
@echo
@echo "clean - Cleans all generated files. Except those in linux and buildroot."
@echo "clean_linux - Executes 'make clean' in linux folder."
@echo "clean_buildroot - Executes 'make clean' in buildroot folder."
mbuildroot:
$(MAKE) -C scripts/buildroot menuconfig
mlinux:
$(MAKE) -C linux menuconfig
test: build/initram.gz
@ #TODO
run: kconfig_parser write_config build/initram.gz
scripts/main_loop.py
evaluate:
@ #TODO
clean:
@$(MAKE) -C scripts/parse_kconfig/ clean
@$(MAKE) -C scripts/write_config/ clean
$(RM) -r build
clean_linux:
@$(MAKE) -C linux clean
clean_buildroot:
@$(MAKE) -C scripts/buildroot clean
#######################################
parse_kconfig:
@$(MAKE) -C scripts/parse_kconfig/
write_config:
@$(MAKE) -C scripts/write_config/
build:
mkdir $@
build/initram.gz: scripts/buildroot/.config build
@$(MAKE) -C scripts/buildroot
mv scripts/buildroot/output/images/rootfs.cpio.gz
scripts/buildroot/.config: mbuildroot
|