[openwrt/openwrt] tools: always create $STAGING_DIR/usr/{include, lib}

LEDE Commits lede-commits at lists.infradead.org
Sun Dec 6 02:32:05 EST 2020


ynezz pushed a commit to openwrt/openwrt.git, branch openwrt-19.07:
https://git.openwrt.org/5090152ae3a37482dc1e8290875635305abf12a7

commit 5090152ae3a37482dc1e8290875635305abf12a7
Author: Andre Heider <a.heider at gmail.com>
AuthorDate: Thu Aug 20 08:06:37 2020 +0200

    tools: always create $STAGING_DIR/usr/{include,lib}
    
    rules.mk always passes these as -I/-L to the toolchain.
    
    Fixes rare errors like:
    cc1: error: staging_dir/target-aarch64_cortex-a53_musl/usr/include: No such file or directory [-Werror=missing-include-dirs]
    
    Signed-off-by: Andre Heider <a.heider at gmail.com>
    Acked-by: Paul Spooren <mail at aparcar.org>
    Acked-by: Rosen Penev <rosenp at gmail.com>
    [fixed merge conflict]
    Signed-off-by: Petr Štetiar <ynezz at true.cz>
    (cherry picked from commit b0cb305236524095bfd899449b0ad8eb821cb3bb)
---
 tools/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/Makefile b/tools/Makefile
index d7207ba89d..b8d986b80c 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -123,7 +123,7 @@ define PrepareStaging
 		$(if $(QUIET),,set -x;) \
 		mkdir -p "$$dir"; \
 		cd "$$dir"; \
-		mkdir -p bin lib include stamp; \
+		mkdir -p bin lib include stamp usr/include usr/lib; \
 	); done
 endef
 



More information about the lede-commits mailing list