From 78886da9036f727d3237a1e3b47541c0488382f4 Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Thu, 20 Aug 2020 08:06:37 +0200 Subject: [PATCH] tools: always create $STAGING_DIR/usr/{include,lib} MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Acked-by: Paul Spooren Acked-by: Rosen Penev [fixed merge conflict] Signed-off-by: Petr Å tetiar (cherry picked from commit b0cb305236524095bfd899449b0ad8eb821cb3bb) --- tools/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/Makefile b/tools/Makefile index 6fc9019f05..0015a4ab09 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -118,7 +118,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 -- 2.25.1