[openwrt/openwrt] tools: ensure that BIN_DIR is created early

LEDE Commits lede-commits at lists.infradead.org
Thu Nov 4 11:05:41 PDT 2021


nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/10cbce3b52c9a21b115a471fa548a40e1212e3e9

commit 10cbce3b52c9a21b115a471fa548a40e1212e3e9
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Thu Nov 4 19:05:16 2021 +0100

    tools: ensure that BIN_DIR is created early
    
    Fixes llvm-bpf buildbot failure
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 tools/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tools/Makefile b/tools/Makefile
index ad8eeb31a4..686d5294d3 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -125,6 +125,9 @@ define PrepareStaging
 	); done
 endef
 
+$(BIN_DIR):
+	mkdir -p $@
+
 # preparatory work
 $(STAGING_DIR)/.prepared: $(TMP_DIR)/.build
 	$(call PrepareStaging,$(STAGING_DIR))
@@ -145,8 +148,8 @@ endif
 
 endif
 
-$(curdir)//prepare = $(STAGING_DIR)/.prepared $(STAGING_DIR_HOST)/.prepared
-$(curdir)//compile = $(STAGING_DIR)/.prepared $(STAGING_DIR_HOST)/.prepared
+$(curdir)//prepare = $(STAGING_DIR)/.prepared $(STAGING_DIR_HOST)/.prepared $(BIN_DIR)
+$(curdir)//compile = $(STAGING_DIR)/.prepared $(STAGING_DIR_HOST)/.prepared $(BIN_DIR)
 
 # prerequisites for the individual targets
 $(curdir)/ := .config prereq



More information about the lede-commits mailing list