diff options
author | Petr Štetiar <ynezz@true.cz> | 2023-07-20 15:48:39 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2023-07-28 08:19:19 +0200 |
commit | 6b7f1ffbad732c5e1818f9387c02dda109c2748b (patch) | |
tree | 3f7cecd0fed79f8a39aed4b39caf0a75c739db00 | |
parent | ba415af5706f0369e4d299e4dfe50541a4a8056b (diff) | |
download | openwrt-6b7f1ffbad732c5e1818f9387c02dda109c2748b.tar.gz openwrt-6b7f1ffbad732c5e1818f9387c02dda109c2748b.tar.bz2 openwrt-6b7f1ffbad732c5e1818f9387c02dda109c2748b.zip |
toolchain: kernel-headers: fix check target for external Git trees
Executing following command currently fails:
$ make toolchain/kernel-headers/{download,check} V=sc FIXUP=1
...
include/kernel-version.mk:11: *** Missing kernel version/hash file for . Please create include/kernel-. Stop.
So lets fix it by adding the necessary missing KERNEL_PATCHVER variable.
That additional kernel-build.mk include is needed to add another set of
missing variables:
$ make toolchain/kernel-headers/{download,check} V=sc FIXUP=1
...
Makefile:115: *** ERROR: Unknown pack format for file tmp/dl/. Stop.
Fixes: 0765466a42f4 ("kernel: split kernel version to dedicated files")
Signed-off-by: Petr Štetiar <ynezz@true.cz>
-rw-r--r-- | toolchain/kernel-headers/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/toolchain/kernel-headers/Makefile b/toolchain/kernel-headers/Makefile index c1a8710a4f..5e3e459a96 100644 --- a/toolchain/kernel-headers/Makefile +++ b/toolchain/kernel-headers/Makefile @@ -23,7 +23,10 @@ ifneq ($(call qstrip,$(CONFIG_KERNEL_GIT_CLONE_URI)),) PKG_SOURCE_VERSION:=$(call qstrip,$(CONFIG_KERNEL_GIT_REF)) PKG_MIRROR_HASH:=$(call qstrip,$(CONFIG_KERNEL_GIT_MIRROR_HASH)) ifdef CHECK + PLATFORM_DIR:=$(firstword $(wildcard $(TOPDIR)/target/linux/feeds/$(BOARD) $(TOPDIR)/target/linux/$(BOARD))) + include $(PLATFORM_DIR)/Makefile include $(INCLUDE_DIR)/kernel-version.mk + include $(INCLUDE_DIR)/kernel-build.mk PKG_VERSION:=$(LINUX_VERSION) else PKG_SOURCE:=$(LINUX_SOURCE) |