aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-04-27 12:15:14 +0200
committerKarel Kočí <cynerd@email.cz>2015-04-27 12:15:14 +0200
commita6bff3a30fee2a2c77d0683eda7945764e7624a8 (patch)
tree489cb727d360d0fc479f1b9e7d2c8762e08d55ff /Makefile
parenteecef0ad90f9198536206f920cc49f1177e68f6f (diff)
downloadlinux-conf-perf-a6bff3a30fee2a2c77d0683eda7945764e7624a8.tar.gz
linux-conf-perf-a6bff3a30fee2a2c77d0683eda7945764e7624a8.tar.bz2
linux-conf-perf-a6bff3a30fee2a2c77d0683eda7945764e7624a8.zip
Add initram build
Not working properly yet.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c372579..98af2c0 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,9 @@
-include .conf.mk
+BENCHMARK_FILES := $(patsubst benchmark/%,scripts/buildroot/system/skeleton/usr/share/benchmark/%,$(shell find benchmark -type f))
+BENCHMARK_FOLDERS := $(shell dirname $(BENCHMARK_FILES))
+
all: parse_kconfig write_config
help:
@@ -29,7 +32,7 @@ help:
@echo "clean_buildroot - Executes 'make clean' in buildroot folder."
@echo "distclean_buildroot - Executes 'make distclean' in buildroot folder."
-mbuildroot: scripts/buildroot/.config
+mbuildroot: scripts/buildroot/.config scripts/buildroot/system/skeleton/usr/bin/linux-conf-perf $(BENCHMARK_FILES)
$(MAKE) -C scripts/buildroot menuconfig
mlinux:
@@ -51,6 +54,7 @@ clean:
@$(MAKE) -C scripts/parse_kconfig/ clean
@$(MAKE) -C scripts/write_config/ clean
$(RM) -r build
+ $(RM) -r scripts/buildroot/system/skeleton/usr/share/benchmark
distclean: clean distclean_linux distclean_buildroot
$(RM) .conf.mk
@@ -84,8 +88,17 @@ write_config:
$(BUILDROOT_INITRAM): scripts/buildroot/.config
@$(MAKE) -C scripts/buildroot
+$(INITRAM): $(shell dirname $(INITRAM))
$(INITRAM): $(BUILDROOT_INITRAM) $${@D}
mv $^ $@
scripts/buildroot/.config:
cp $(BUILDROOT_DEF_CONFIG) $@
+
+scripts/buildroot/system/skeleton/usr/bin/linux-conf-perf:
+ cp $(BUILDROOT_INITSCRIPT) $@
+ cat $(BUILDROOT_INITTAB_DIRECTIVE) >> scripts/buildroot/system/skeleton/etc/inittab
+
+$(BENCHMARK_FILES): $(BENCHMARK_FOLDERS)
+scripts/buildroot/system/skeleton/usr/share/benchmark/%: benchmark/%
+ cp $< $@