Skip to contentSkip to conversation

linux-am335x_3.2.0-psp05.06.00.00: Disable CONFIG_LOCALVERSION_AUTO option

PATCH New Franklin S. Cooper Jr 1 participant 1 message Nov 12, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-am335x_3.2.0-psp05.06.00.00: Disable CONFIG_LOCALVERSION_AUTO option

* When a library or application hosted on git is being compiled the .git directory still exist. This wasn't the case for oe-classic which did not include the .git directory.
* With the git repository still intact having patches applied to the sources causes the workdir to become dirty.
* This results in the kernel name including a -dirty tag when the kernel is built inside of a dirty working directory.
* Disabling CONFIG_LOCATIONVERSION_AUTO removes the entire -dirty tag that is added to the kernel name.

---
 .../0001-linux-am335x-Remove-dirty-tag.patch       |   32 ++++++++++++++++++++
 .../linux/linux-am335x_3.2.0-psp05.06.00.00.bb     |    5 ++-
 2 files changed, 36 insertions(+), 1 deletions(-)
 create mode 100644 meta-arago-distro/recipes-kernel/linux/linux-am335x-3.2.0-psp05.06.00.00/0001-linux-am335x-Remove-dirty-tag.patch
meta-arago-distro/recipes-kernel/linux/linux-am335x-3.2.0-psp05.06.00.00/0001-linux-am335x-Remove-dirty-tag.patch new file +32 -0
new file mode 100644
index 0000000..e9930c9
@@ -0,0 +1,32 @@
+From 293d87edf88049be3f93649626d6d127a59cc71b Mon Sep 17 00:00:00 2001
+From: Franklin S. Cooper Jr <[email protected]>
+Date: Mon, 5 Nov 2012 07:28:17 -0600
+Subject: [PATCH] linux-am335x: Remove dirty tag
+
+* Disable LOCALVERSION_AUTO. This will prevent -dirty tag from being
+  added to the kernel version. This tag affects the name of the kernel
+  modules directory.
+* This dirty tag is also added if the kernel's git repository has
+  uncommitted changes.
+
+Signed-off-by: Franklin S. Cooper Jr <[email protected]>
+---
+ arch/arm/configs/am335x_evm_defconfig |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/arch/arm/configs/am335x_evm_defconfig b/arch/arm/configs/am335x_evm_defconfig
+index f1471bc..e78b271 100644
+--- a/arch/arm/configs/am335x_evm_defconfig
++++ b/arch/arm/configs/am335x_evm_defconfig
+@@ -37,7 +37,7 @@ CONFIG_BROKEN_ON_SMP=y
+ CONFIG_INIT_ENV_ARG_LIMIT=32
+ CONFIG_CROSS_COMPILE=""
+ CONFIG_LOCALVERSION=""
+-CONFIG_LOCALVERSION_AUTO=y
++# CONFIG_LOCALVERSION_AUTO is not set
+ CONFIG_HAVE_KERNEL_GZIP=y
+ CONFIG_HAVE_KERNEL_LZMA=y
+ CONFIG_HAVE_KERNEL_LZO=y
+-- 
+1.7.0.4
+
meta-arago-distro/recipes-kernel/linux/linux-am335x_3.2.0-psp05.06.00.00.bb +4 -1
index 8248d2d..711103b 100644
@@ -25,7 +25,7 @@ DEPENDS += "am33x-cm3"
 KERNEL_IMAGETYPE = "uImage"
 
 # The main PR is now using MACHINE_KERNEL_PR, for ti33x see conf/machine/include/ti33x.inc
-MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}"
+MACHINE_KERNEL_PR_append = "b+gitr${SRCPV}"
 
 BRANCH = "v3.2-staging"
 
@@ -82,6 +82,9 @@ PATCHES += "file://0001-am335xevm-using-edge-triggered-interrupts-for-WLAN.patch
 # Add patch to enable pullup on WLAN enable
 PATCHES += "file://0001-am335x-enable-pullup-on-the-WLAN-enable-pin-fo.patch"
 
+# Add patch to remove dirty tag to kernel local version
+PATCHES += "file://0001-linux-am335x-Remove-dirty-tag.patch"
+
 # Copy the am33x-cm3 firmware if it is available
 do_compile_prepend() {
     if [ -e "${STAGING_DIR_HOST}/${base_libdir}/firmware/am335x-pm-firmware.bin" ]
Signature · 1 line
1.7.0.4