aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-04-26 13:19:06 +0200
committerKarel Kočí <cynerd@email.cz>2015-04-26 13:19:06 +0200
commit37e294e9f0a826b201fc6f70b396d1933f10bd97 (patch)
tree7ef0a940044d3ac2e0cdb1d55c17910bdcd639cc /Makefile
parent3cbf100902950171220fb37a24f1a37b5183ab90 (diff)
downloadlinux-conf-perf-37e294e9f0a826b201fc6f70b396d1933f10bd97.tar.gz
linux-conf-perf-37e294e9f0a826b201fc6f70b396d1933f10bd97.tar.bz2
linux-conf-perf-37e294e9f0a826b201fc6f70b396d1933f10bd97.zip
Add initram config
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 11 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 2747982..4b36d1c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
-.PHONY: all help parse_kconfig write_config build run test clean clean_linux clean_buildroot mlinux mbuildroot
+.PHONY: all help parse_kconfig write_config build run test clean clean_linux clean_buildroot mlinux mbuildroot deflinux
-include .conf.mk
+-include .conf.mk
all: parse_kconfig write_config
@@ -33,10 +33,10 @@ mlinux:
deflinux:
ARCH=$(SRCARCH) $(MAKE) -C linux defconfig
-test: build/initram.gz
+test: $(INITRAM)
@ #TODO
-run: kconfig_parser write_config build/initram.gz
+run: kconfig_parser write_config $(INITRAM)
scripts/main_loop.py
evaluate:
@@ -64,11 +64,14 @@ parse_kconfig:
write_config:
@$(MAKE) -C scripts/write_config/
-build:
- mkdir $@
+%:
+ mkdir -p $@
-build/initram.gz: scripts/buildroot/.config build
+$(BUILDROOT_INITRAM): scripts/buildroot/.config
@$(MAKE) -C scripts/buildroot
- mv scripts/buildroot/output/images/rootfs.cpio.gz
+
+$(INITRAM): $(BUILDROOT_INITRAM) $${@D}
+ mv $^ $@
scripts/buildroot/.config: mbuildroot
+ @