toolchain: kernel-headers: fix check target for external Git trees
authorPetr Štetiar <ynezz@true.cz>
Thu, 20 Jul 2023 13:48:39 +0000 (15:48 +0200)
committerPetr Štetiar <ynezz@true.cz>
Sat, 27 Apr 2024 06:52:34 +0000 (06:52 +0000)
commitc3372266ba2b809310804f414f1042a51299200d
tree1b669a69d2ab1672f7a0e9a5029ff2f2ed852c69
parentc69482a91276ce06841ec5b3837c9ef3c27cb30a
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>
(cherry picked from commit 6b7f1ffbad732c5e1818f9387c02dda109c2748b)
toolchain/kernel-headers/Makefile