Makefile: fix build break in sdk target
authorStefan Becker <chemobejk@gmail.com>
Mon, 26 Mar 2018 07:23:32 +0000 (10:23 +0300)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 26 Mar 2018 08:48:19 +0000 (10:48 +0200)
After commit 6729050f3a49dba42d2d881d31dbefd6b82b8dad nothing creates
$(HOST_DIR)/share/buildroot anymore, causing sdk to fail with:

 /bin/bash: .../output/host/share/buildroot/sdk-location: No such file or directory

Add creation of that directory to the "sdk" build steps itself.

Signed-off-by: Stefan Becker <chemobejk@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Makefile

index a3a9d290d97a9b20e97b11c4ae02d237c940f907..9e2402d7d9153e8406830c2fab685da91f6e6d0c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -574,6 +574,7 @@ sdk: world
        $(TOPDIR)/support/scripts/fix-rpath host
        $(TOPDIR)/support/scripts/fix-rpath staging
        $(INSTALL) -m 755 $(TOPDIR)/support/misc/relocate-sdk.sh $(HOST_DIR)/relocate-sdk.sh
+       mkdir -p $(HOST_DIR)/share/buildroot
        echo $(HOST_DIR) > $(HOST_DIR)/share/buildroot/sdk-location
 
 # Populating the staging with the base directories is handled by the skeleton package