@@ -51,7 +51,7 @@ MAKE_FLAGS = \
define Build/Compile
+$(MAKE_VARS) \
- $(MAKE) $(PKG_JOBS) -C $(LINUX_DIR)/$(MAKE_PATH) \
+ $(MAKE) $(PKG_JOBS) -C $(LINUX_SRC_DIR)/$(MAKE_PATH) \
$(MAKE_FLAGS) $(TEST_TARGET) ;
endef
@@ -120,7 +120,7 @@ endef
define Build/Compile
# Compile glue driver
- $(MAKE_KMOD) -C "$(LINUX_DIR)" \
+ $(MAKE_KMOD) -C "$(LINUX_SRC_DIR)" \
M="$(PKG_BUILD_DIR)/glue" \
modules
@@ -35,7 +35,7 @@ endef
define Build/Compile
ARCH=mips CROSS_COMPILE="$(KERNEL_CROSS)" \
- $(MAKE) -C $(LINUX_DIR) BUILD_VARIANT=$(BUILD_VARIANT) M=$(PKG_BUILD_DIR)/ V=1 modules
+ $(MAKE) -C $(LINUX_SRC_DIR) BUILD_VARIANT=$(BUILD_VARIANT) M=$(PKG_BUILD_DIR)/ V=1 modules
endef
$(eval $(call KernelPackage,ltq-adsl-danube-mei))
@@ -40,7 +40,7 @@ endef
define Build/Compile
ARCH=mips CROSS_COMPILE="$(KERNEL_CROSS)" \
- $(MAKE) -C $(LINUX_DIR) $(KERNEL_MAKE_FLAGS) BUILD_VARIANT=$(BUILD_VARIANT) M=$(PKG_BUILD_DIR) V=1 modules
+ $(MAKE) -C $(LINUX_SRC_DIR) $(KERNEL_MAKE_FLAGS) BUILD_VARIANT=$(BUILD_VARIANT) M=$(PKG_BUILD_DIR) V=1 modules
endef
$(eval $(call KernelPackage,ltq-atm-danube))
@@ -35,7 +35,7 @@ endef
define Build/Compile
ARCH=mips CROSS_COMPILE="$(KERNEL_CROSS)" \
- $(MAKE) -C $(LINUX_DIR) BUILD_VARIANT=$(BUILD_VARIANT) M=$(PKG_BUILD_DIR) V=1 modules
+ $(MAKE) -C $(LINUX_SRC_DIR) BUILD_VARIANT=$(BUILD_VARIANT) M=$(PKG_BUILD_DIR) V=1 modules
endef
$(eval $(call KernelPackage,ltq-deu-danube))
@@ -44,7 +44,7 @@ endef
define Build/Compile
ARCH=mips CROSS_COMPILE="$(KERNEL_CROSS)" \
- $(MAKE) -C $(LINUX_DIR) $(KERNEL_MAKE_FLAGS) BUILD_VARIANT=$(BUILD_VARIANT) M=$(PKG_BUILD_DIR) V=1 modules
+ $(MAKE) -C $(LINUX_SRC_DIR) $(KERNEL_MAKE_FLAGS) BUILD_VARIANT=$(BUILD_VARIANT) M=$(PKG_BUILD_DIR) V=1 modules
endef
$(eval $(call KernelPackage,ltq-ptm-danube))
@@ -45,7 +45,7 @@ endef
define Build/Compile
+$(KERNEL_MAKE) $(PKG_JOBS) \
- -C "$(LINUX_DIR)" \
+ -C "$(LINUX_SRC_DIR)" \
M="$(PKG_BUILD_DIR)" \
EXTRA_CFLAGS="$(EXTRA_CFLAGS)" SoC="$(CONFIG_TARGET_SUBTARGET)" \
modules
@@ -10,7 +10,7 @@ FAT32_BLOCK_SIZE=1024
FAT32_BLOCKS=$(shell echo $$(($(CONFIG_TARGET_KERNEL_PARTSIZE)*1024*1024/$(FAT32_BLOCK_SIZE))))
define Build/Compile
- $(CP) $(LINUX_DIR)/COPYING $(KDIR)/COPYING.linux
+ $(CP) $(LINUX_SRC_DIR)/COPYING $(KDIR)/COPYING.linux
endef
### Image scripts ###
@@ -6,7 +6,7 @@ include $(INCLUDE_DIR)/image.mk
DEVICE_VARS += UBOOT_DEVICE_NAME
define Build/Compile
- $(CP) $(LINUX_DIR)/COPYING $(KDIR)/COPYING.linux
+ $(CP) $(LINUX_SRC_DIR)/COPYING $(KDIR)/COPYING.linux
endef
### Image scripts ###
make -C is most often needs the kernel source. The copyright files come from the kernel source. Signed-off-by: Elliott Mitchell <ehem+openwrt@m5p.com> --- I'm running out of steam on this. These seem fairly clear, but I'm less than 100% certain. --- package/devel/kselftests-bpf/Makefile | 2 +- package/kernel/broadcom-wl/Makefile | 2 +- package/kernel/lantiq/ltq-adsl-mei/Makefile | 2 +- package/kernel/lantiq/ltq-atm/Makefile | 2 +- package/kernel/lantiq/ltq-deu/Makefile | 2 +- package/kernel/lantiq/ltq-ptm/Makefile | 2 +- package/kernel/qca-nss-dp/Makefile | 2 +- target/linux/bcm27xx/image/Makefile | 2 +- target/linux/rockchip/image/Makefile | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-)