From 1dfe3692594402a74d3d29e17c0b259e3e29fdd7 Mon Sep 17 00:00:00 2001 From: Chuck Ebbert Date: Nov 28 2011 12:36:54 +0000 Subject: Fake version 2.6.4X by changing UTSNAME (instead of changing the internal kernel version) --- diff --git a/force-version-2.6.patch b/force-version-2.6.patch new file mode 100644 index 0000000..c53ff94 --- /dev/null +++ b/force-version-2.6.patch @@ -0,0 +1,11 @@ +--- a/Makefile ++++ b/Makefile +@@ -951,7 +951,7 @@ $(vmlinux-dirs): prepare scripts + # Store (new) KERNELRELASE string in include/config/kernel.release + include/config/kernel.release: include/config/auto.conf FORCE + $(Q)rm -f $@ +- $(Q)echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))" > $@ ++ $(Q)echo "2.6.$$((40 + $(PATCHLEVEL)))$(EXTRAVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))" > $@ + + + # Things we need to do before we recursively start building the kernel diff --git a/kernel.spec b/kernel.spec index 3554ab8..0239834 100644 --- a/kernel.spec +++ b/kernel.spec @@ -684,6 +684,8 @@ Patch21061: ideapad-Check-if-acpi-already-handle-backlight.patch Patch21090: brcm80211.patch Patch21091: bcma-brcmsmac-compat.patch +Patch22000: force-version-2.6.patch + %endif BuildRoot: %{_tmppath}/kernel-%{KVERREL}-root @@ -1257,6 +1259,8 @@ ApplyPatch brcm80211.patch # Remove overlap between bcma/b43 and brcmsmac and reenable bcm4331 ApplyPatch bcma-brcmsmac-compat.patch +ApplyPatch force-version-2.6.patch + # END OF PATCH APPLICATIONS %endif @@ -1360,9 +1364,6 @@ BuildKernel() { # make sure EXTRAVERSION says what we want it to say perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = %{?stablerev}-%{release}.%{_target_cpu}${Flavour:+.${Flavour}}/" Makefile - perl -p -i -e 's/^VERSION.*/VERSION = 2/' Makefile - perl -p -i -e 's/^PATCHLEVEL.*/PATCHLEVEL = 6/' Makefile - perl -p -i -e 's/^SUBLEVEL.*/SUBLEVEL = %{fake_sublevel}/' Makefile # and now to start the build process @@ -1877,7 +1878,11 @@ fi # and build. %changelog -* Sun Nov 26 2011 Chuck Ebbert 2.6.41.3-1 +* Mon Nov 28 2011 Chuck Ebbert 2.6.41.3-1 +- Fake version 2.6.4X by changing UTSNAME + (instead of changing the internal kernel version) + +* Sun Nov 27 2011 Chuck Ebbert - Linux 3.1.3 (Fedora 2.6.41.3) * Wed Nov 23 2011 Chuck Ebbert 2.6.41.3-0.rc1.1