From d1a4966163e2456e787d00ec3f1d290b5491b44f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 27 Apr 2015 21:26:45 +0200 Subject: fix problems with initram --- Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1fee43d..3cc638d 100644 --- a/Makefile +++ b/Makefile @@ -55,6 +55,7 @@ clean: @$(MAKE) -C scripts/write_config/ clean $(RM) -r build $(RM) -r scripts/buildroot/system/skeleton/usr/share/benchmark + $(RM) $(INITRAM) distclean: clean distclean_linux distclean_buildroot $(RM) .conf.mk @@ -82,15 +83,18 @@ parse_kconfig: write_config: @$(MAKE) -C scripts/write_config/ -%: +scripts/buildroot/system/skeleton/usr/share/%: + mkdir -p $@ + +build: mkdir -p $@ $(BUILDROOT_INITRAM): scripts/buildroot/.config @$(MAKE) -C scripts/buildroot -$(INITRAM): $(shell dirname $(INITRAM)) -$(INITRAM): $(BUILDROOT_INITRAM) $${@D} - mv $^ $@ +$(INITRAM): build +$(INITRAM): $(BUILDROOT_INITRAM) + mv $< $@ scripts/buildroot/.config: cp $(BUILDROOT_DEF_CONFIG) $@ -- cgit v1.2.3