toolchain: linux-headers: Fix kernel version for ADK_UPDATE_PATCHES_GIT
commit63e405a44c81c8ea69670b57558fb70ea768065e
authorPhil Sutter <phil@nwl.cc>
Mon, 1 Nov 2021 11:35:44 +0000 (1 12:35 +0100)
committerWaldemar Brodkorb <wbx@openadk.org>
Mon, 1 Nov 2021 14:16:20 +0000 (1 15:16 +0100)
tree90d862c8bc129daf2fbf8b2ab27c02f957bdc806
parentc43037d2ecd33fdd09852d563829f8dfd18dc3af
toolchain: linux-headers: Fix kernel version for ADK_UPDATE_PATCHES_GIT

When using git to apply kernel patches, the extracted kernel sources
become a git repository with HEAD not being at a tag. Therefore
$(LINUX_DIR)/scripts/setlocalversion appends '+' to the kernel version
string which ADK in turn does not expect. In consequence, 'modprobe' on
target won't find any modules. Avoid this by creating an empty
'$(LINUX_DIR)/.scmversion' file - setlocalversion recognizes it and uses
its content instead of doing its own detection.

Signed-off-by: Phil Sutter <phil@nwl.cc>
toolchain/linux-headers/Makefile