diff mbox series

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

Message ID 20200826061503.454068-2-a.heider@gmail.com
State New
Headers show
Series [v2,1/2] rules.mk: remove redundant -I/-L | expand

Commit Message

Andre Heider Aug. 26, 2020, 6:15 a.m. UTC
These are always passed to the toolchain using the gcc specs file, so
ensure they exist.

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@gmail.com>
Acked-by: Paul Spooren <mail@aparcar.org>
Acked-by: Rosen Penev <rosenp@gmail.com>
---
 tools/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tools/Makefile b/tools/Makefile
index f038c90ba9..325c0995ee 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 stamp; \
+		mkdir -p bin lib stamp usr/include usr/lib; \
 	); done
 endef