[SeaBIOS] [PATCH] build: create output dirs in do-kconfig

Gerd Hoffmann kraxel at redhat.com
Wed Sep 25 09:41:56 CEST 2013


Unbreaks parallel builds.

Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
 Makefile | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index cdda3d5..5639e9f 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)
@@ -239,6 +239,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
 
@@ -256,7 +257,4 @@ clean:
 distclean: clean
 	$(Q)rm -f .config .config.old
 
-$(OUT) $(addprefix $(OUT), $(DIRS)):
-	$(Q)mkdir $@
-
 -include $(patsubst %,$(OUT)%/*.d,$(DIRS))
-- 
1.8.3.1




More information about the SeaBIOS mailing list