sdk: keep the linux package in the same subdir as in the main build system

Fixes: 953435795d ("build: always build package/kernel/linux")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2020-10-19 11:28:29 +02:00 committed by David Bauer
parent c9e9b8c342
commit a4c1c169c3

View File

@ -129,11 +129,14 @@ $(BIN_DIR)/$(SDK_NAME).tar.xz: clean
./files/include/prepare.mk \
./files/README.SDK \
$(SDK_BUILD_DIR)/
mkdir -p $(SDK_BUILD_DIR)/package/kernel
$(CP) \
$(TOPDIR)/package/Makefile \
$(TOPDIR)/package/libs/toolchain \
$(TOPDIR)/package/kernel/linux \
$(SDK_BUILD_DIR)/package/
$(CP) \
$(TOPDIR)/package/kernel/linux \
$(SDK_BUILD_DIR)/package/kernel/
-rm -rf $(SDK_BUILD_DIR)/$(STAGING_SUBDIR_HOST)/.prereq-build