tools: always create $STAGING_DIR/usr/{include,lib}
authorAndre Heider <a.heider@gmail.com>
Thu, 20 Aug 2020 06:06:37 +0000 (08:06 +0200)
committerPetr Štetiar <ynezz@true.cz>
Fri, 27 Nov 2020 13:46:13 +0000 (14:46 +0100)
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@gmail.com>
Acked-by: Paul Spooren <mail@aparcar.org>
Acked-by: Rosen Penev <rosenp@gmail.com>
tools/Makefile

index 4aa268de8f2848c75f74c5806b726171841f61fe..c66d4fb9917ee484316c9dcba8614857441b6bb5 100644 (file)
@@ -118,7 +118,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