From: Gerd Hoffmann Date: Wed, 25 Sep 2013 07:40:50 +0000 (+0200) Subject: build: create output dirs in do-kconfig X-Git-Tag: rel-1.7.4~55 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d3c971e35eedbccd07d9c095579b6132add30881;p=seabios.git build: create output dirs in do-kconfig Unbreaks parallel builds. Signed-off-by: Gerd Hoffmann --- diff --git a/Makefile b/Makefile index 3218970..d763ae3 100644 --- a/Makefile +++ b/Makefile @@ -82,7 +82,7 @@ endif # Default targets -include $(KCONFIG_CONFIG) -target-y = $(OUT) $(addprefix $(OUT), $(DIRS)) $(OUT)bios.bin +target-y = $(OUT)bios.bin target-$(CONFIG_BUILD_VGABIOS) += $(OUT)vgabios.bin all: $(target-y) @@ -238,6 +238,7 @@ $(OUT)src/fw/acpi.o: $(OUT)src/fw/acpi-dsdt.hex $(OUT)src/fw/ssdt-proc.hex $(OUT define do-kconfig $(Q)mkdir -p $(OUT)/scripts/kconfig/lxdialog $(Q)mkdir -p $(OUT)/include/config +$(Q)mkdir -p $(addprefix $(OUT), $(DIRS)) $(Q)$(MAKE) -C $(OUT) -f $(CURDIR)/scripts/kconfig/Makefile srctree=$(CURDIR) src=scripts/kconfig obj=scripts/kconfig Q=$(Q) Kconfig=$(CURDIR)/src/Kconfig $1 endef @@ -255,7 +256,4 @@ clean: distclean: clean $(Q)rm -f .config .config.old -$(OUT) $(addprefix $(OUT), $(DIRS)): - $(Q)mkdir $@ - -include $(patsubst %,$(OUT)%/*.d,$(DIRS))