From 37e294e9f0a826b201fc6f70b396d1933f10bd97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 26 Apr 2015 13:19:06 +0200 Subject: Add initram config --- Makefile | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'Makefile') 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 + @ -- cgit v1.2.3