Skip to content

Commit ec0ec04

Browse files
committed
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 <[email protected]>
1 parent f52aee0 commit ec0ec04

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

target/sdk/Makefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,12 @@ KERNEL_FILES := $(patsubst $(TOPDIR)/%,%,$(wildcard $(addprefix $(LINUX_DIR)/,$(
8282
all: compile
8383

8484
$(BIN_DIR)/$(SDK_NAME).tar.xz: clean
85-
mkdir -p $(SDK_BUILD_DIR)/dl $(SDK_BUILD_DIR)/package
85+
mkdir -p \
86+
$(SDK_BUILD_DIR)/dl \
87+
$(SDK_BUILD_DIR)/package \
88+
$(SDK_BUILD_DIR)/$(STAGING_SUBDIR_TARGET)/include \
89+
$(SDK_BUILD_DIR)/$(STAGING_SUBDIR_TARGET)/usr/include
90+
8691
$(CP) -L $(INCLUDE_DIR) $(SCRIPT_DIR) $(SDK_BUILD_DIR)/
8792
$(TAR) -cf - -C $(TOPDIR) \
8893
`cd $(TOPDIR); find $(KDIR_BASE)/ -name \*.ko` \

0 commit comments

Comments
 (0)