mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
linux: Tidy up the messy KVER variable
This variable never actually held the kernel version. There were always suffixes appended and other things changed about it. This makes it a lot simpler as this variable now holds the actual kernel version. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
# Cleanup environment from any variables
|
||||
unexport BUILD_ARCH BUILD_PLATFORM BUILDTARGET CROSSTARGET TOOLCHAIN
|
||||
unexport NAME SNAME VERSION CORE SLOGAN SYSTEM_RELEASE PAKFIRE_TREE CONFIG_ROOT
|
||||
unexport KVER
|
||||
unexport KVER KVER_SUFFIX
|
||||
unexport SYSTEM_PROCESSOR SYSTEM_MEMORY
|
||||
unexport DEFAULT_PARALLELISM
|
||||
unexport LFS_BASEDIR
|
||||
@@ -254,12 +254,6 @@ define PREBUILD
|
||||
echo "====================================== Installing $(THISAPP) ..."
|
||||
@echo "Install started; saving file list to $(DIR_SRC)/lsalr ..."
|
||||
@if [ ! -f $(DIR_SRC)/lsalr ]; then $(FIND_FILES) > $(DIR_SRC)/lsalr; fi
|
||||
# Fix installation on partial rebuild, so modules install where they should
|
||||
# and not everytime on the last compiled kernel
|
||||
if [ -f $(DIR_SRC)/linux-$(KVER) ]; then \
|
||||
cd $(DIR_SRC)/linux-$(KVER) && \
|
||||
sed -i -e 's+^EXTRAVERSION.*$$+EXTRAVERSION\ =\ $(word 4,$(subst ., .,$(KVER)))-ipfire$(KCFG)+' Makefile; \
|
||||
fi
|
||||
endef
|
||||
else
|
||||
define PREBUILD
|
||||
|
||||
Reference in New Issue
Block a user