1 .PHONY: all help parse_kconfig write_config build run test clean clean_db clean_database clean_measure clean_linux clean_buildroot mlinux mbuildroot deflinux distclean_linux distclean_buildroot distclean picosat init initialize initialize_database initdb permute_conf
5 all: parse_kconfig write_config allconfig permute_conf picosat
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 "initialize - Executes only initialization. Depending on configuration this"
17 @echo " can take various amount of time."
18 @echo "test - Executes boot and benchmark test. You should use this before"
19 @echo " target run. This target is for testing if initial kernel"
20 @echo " configuration, buildroot configuration and benchmark are"
21 @echo " configured right."
22 @echo "run - Executes loop of kernel building, booting and benchmark execution."
23 @echo "evaluate - Creating result statistics from generated data."
25 @echo "clean - Cleans all generated files. Except those in"
26 @echo " linux and buildroot."
27 @echo "distclean - Cleans all configurations and generated files."
28 @echo " Including linux and buildroot."
29 @echo "clean_linux - Executes 'make clean' in linux folder."
30 @echo "distclean_linux - Executes 'make distclean' in linux folder."
31 @echo "clean_buildroot - Executes 'make clean' in buildroot folder."
32 @echo "distclean_buildroot - Executes 'make distclean' in buildroot folder."
34 mbuildroot: buildroot/.config buildroot/system/skeleton/usr/bin/linux-conf-perf
35 $(MAKE) -C buildroot menuconfig
38 ARCH=$(CONF_KERNEL_ARCH) $(MAKE) -C linux menuconfig
41 ARCH=$(CONF_KERNEL_ARCH) $(MAKE) -C linux defconfig
43 mpermute_conf: permute_conf
45 SRCARCH=$(CONF_KERNEL_ARCH) ARCH=$(CONF_KERNEL_ARCH) \
46 KERNELVERSION=$(CONF_KERNEL_ARCH) \
47 ../scripts/permute_conf/permute_conf Kconfig
50 initialize: parse_kconfig picosat
53 initdb: initialize_database
55 echo "$(CONF_DB_HOST):$(CONF_DB_PORT):$(CONF_DB_DATABASE):$(CONF_DB_USER):$(CONF_DB_PASSWORD)" > .pgpass
56 psql -d "$(CONF_DB_DATABASE)" -h "$(CONF_DB_HOST)" -p "$(CONF_DB_PORT)" -f scripts/databaseinit.sql
62 run: parse_kconfig write_config picosat
69 @$(MAKE) -C scripts/parse_kconfig clean
70 @$(MAKE) -C scripts/write_config clean
71 @$(MAKE) -C scripts/permute_conf clean
72 @$(MAKE) -C scripts/allconfig clean
73 @if [ -e scripts/picosat-959/makefile ]; then $(MAKE) -C scripts/picosat-959 clean; fi
77 clean_measure: cleandb
78 $(RM) -r configurations
82 cleandb: clean_database
84 echo "$(CONF_DB_HOST):$(CONF_DB_PORT):$(CONF_DB_DATABASE):$(CONF_DB_USER):$(CONF_DB_PASSWORD)" > .pgpass
85 psql -d "$(CONF_DB_DATABASE)" -h "$(CONF_DB_HOST)" -p "$(CONF_DB_PORT)" -f scripts/databaseclean.sql
88 distclean: clean distclean_linux distclean_buildroot
92 @$(MAKE) -C linux clean
95 @$(MAKE) -C linux distclean
98 @$(MAKE) -C buildroot clean
101 @$(MAKE) -C buildroot distclean
103 #######################################
109 @$(MAKE) -C scripts/parse_kconfig/
112 @$(MAKE) -C scripts/write_config/
115 @$(MAKE) -C scripts/allconfig/
118 @$(MAKE) -C scripts/permute_conf/
121 cp $(CONF_BUILDROOT_DEF_CONFIG) $@
123 buildroot/system/skeleton/usr/bin/linux-conf-perf:
124 cp $(CONF_BUILDROOT_INITSCRIPT) $@
125 cat $(CONF_BUILDROOT_INITTAB_DIRECTIVE) >> buildroot/system/skeleton/etc/inittab
127 picosat: scripts/picosat-959/picosat
128 scripts/picosat-959/picosat:
129 cd scripts/picosat-959 && ./configure
130 $(MAKE) -C scripts/picosat-959