[openwrt/openwrt] sdk: fix missing include directories
LEDE Commits
lede-commits at lists.infradead.org
Wed Sep 22 01:42:02 PDT 2021
ynezz pushed a commit to openwrt/openwrt.git, branch openwrt-19.07:
https://git.openwrt.org/31a2d41d64dc4bc2230d23ac84c7b47909bfb221
commit 31a2d41d64dc4bc2230d23ac84c7b47909bfb221
Author: Petr Štetiar <ynezz at true.cz>
AuthorDate: Sun Nov 1 17:31:40 2020 +0100
sdk: fix missing include directories
It's not possible to compile some applications which are using
`-Werror=missing-include-dirs` compiler flags with the SDK as some
target directories are missing in the SDK tarball:
cc1: error: staging_dir/target/usr/include: No such file or directory [-Werror=missing-include-dirs]
cc1: error: staging_dir/target/include: No such file or directory [-Werror=missing-include-dirs]
Fix this by adding the missing directories in the SDK.
Signed-off-by: Petr Štetiar <ynezz at true.cz>
(cherry picked from commit ec0ec0428e12b6a7cdad40fbe98d375ea15b45c5)
---
target/sdk/Makefile | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/target/sdk/Makefile b/target/sdk/Makefile
index 6d81834720..1cf9e445b0 100644
--- a/target/sdk/Makefile
+++ b/target/sdk/Makefile
@@ -82,7 +82,12 @@ KERNEL_FILES := $(patsubst $(TOPDIR)/%,%,$(wildcard $(addprefix $(LINUX_DIR)/,$(
all: compile
$(BIN_DIR)/$(SDK_NAME).tar.xz: clean
- mkdir -p $(SDK_BUILD_DIR)/dl $(SDK_BUILD_DIR)/package
+ mkdir -p \
+ $(SDK_BUILD_DIR)/dl \
+ $(SDK_BUILD_DIR)/package \
+ $(SDK_BUILD_DIR)/$(STAGING_SUBDIR_TARGET)/include \
+ $(SDK_BUILD_DIR)/$(STAGING_SUBDIR_TARGET)/usr/include
+
$(CP) -L $(INCLUDE_DIR) $(SCRIPT_DIR) $(SDK_BUILD_DIR)/
$(TAR) -cf - -C $(TOPDIR) \
`cd $(TOPDIR); find $(KDIR_BASE)/ -name \*.ko` \
More information about the lede-commits
mailing list