Skip to contentSkip to conversation

linux.inc: If the kernel has CONFIG_KERNEL_LZO=y, it may well attempt to use the 'lzop' utility to do the lzo compression, but we should not be relying on that utility being installed on the build machine.

PATCH In review Koen Kooi 1 participant 3 messages Dec 17, 2011

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

PATCH 1/2 linux.inc: If the kernel has CONFIG_KERNEL_LZO=y, it may well attempt to use the 'lzop' utility to do the lzo compression, but we should not be relying on that utility being installed on the build machine.

From: Christopher Larson <[email protected]>

This currently affects the linux-omap4 build for omap4430-panda.

---
 recipes-kernel/linux/linux.inc |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
recipes-kernel/linux/linux.inc +11 -0
index 9650e68..e8a754f 100644
@@ -264,3 +264,14 @@ pkg_postrm_kernel-devicetree () {
 	cd /${KERNEL_IMAGEDEST}; update-alternatives --remove devicetree devicetree-${KERNEL_VERSION} || true
 }
 
+# Automatically depend on lzop-native if CONFIG_KERNEL_LZO is enabled
+python () {
+    try:
+        defconfig = bb.fetch2.localpath('file://defconfig', d)
+    except bb.fetch2.FetchError:
+        pass
+    else:
+        if 'CONFIG_KERNEL_LZO=y\n' in open(defconfig).readlines():
+            depends = d.getVar('DEPENDS', False)
+            d.setVar('DEPENDS', depends + ' lzop-native')
+}
Signature · 1 line
1.7.2.5
author
#1 lore raw

PATCH 2/2 linux 3.0: update to 3.0.13

---
 conf/machine/include/omap3.inc                     |    2 +-
 ...-Fix-twl4030-dependencies-for-audio-codec.patch |   26 --------------------
 recipes-kernel/linux/linux_3.0.bb                  |    9 +++----
 3 files changed, 5 insertions(+), 32 deletions(-)
 delete mode 100644 recipes-kernel/linux/linux-3.0/beagle/0011-Revert-mfd-Fix-twl4030-dependencies-for-audio-codec.patch
conf/machine/include/omap3.inc +1 -1
index 4530ae1..fc252ba 100644
@@ -3,7 +3,7 @@ SOC_FAMILY = "omap3"
 require conf/machine/include/tune-cortexa8.inc
 PREFERRED_PROVIDER_virtual/kernel = "linux-omap"
 # Increase this everytime you change something in the kernel
-MACHINE_KERNEL_PR = "r113"
+MACHINE_KERNEL_PR = "r114"
 
 KERNEL_IMAGETYPE = "uImage"
 
recipes-kernel/linux/linux-3.0/beagle/0011-Revert-mfd-Fix-twl4030-dependencies-for-audio-codec.patch deleted +0 -26
deleted file mode 100644
index 527b0f5..0000000
@@ -1,26 +0,0 @@
-From 6d7bf5251219d2aa604ada2c955812b16ad5cff4 Mon Sep 17 00:00:00 2001
-From: Koen Kooi <[email protected]>
-Date: Wed, 30 Nov 2011 09:50:56 +0100
-Subject: [PATCH] Revert "mfd: Fix twl4030 dependencies for audio codec"
-
-This reverts commit 11b8fc6ae54bf18a48c94e181c37ca135b858b42.
----
- drivers/mfd/twl-core.c |    2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c
-index f0dfca3..e659d4e 100644
---- a/drivers/mfd/twl-core.c
-+++ b/drivers/mfd/twl-core.c
-@@ -116,7 +116,7 @@
- #define twl_has_watchdog()        false
- #endif
- 
--#if defined(CONFIG_MFD_TWL4030_AUDIO) || defined(CONFIG_MFD_TWL4030_AUDIO_MODULE) ||\
-+#if defined(CONFIG_TWL4030_CODEC) || defined(CONFIG_TWL4030_CODEC_MODULE) ||\
- 	defined(CONFIG_SND_SOC_TWL6040) || defined(CONFIG_SND_SOC_TWL6040_MODULE)
- #define twl_has_codec()	true
- #else
--- 
-1.7.2.5
-
recipes-kernel/linux/linux_3.0.bb +4 -5
index 38b90e9..f335506 100644
@@ -5,12 +5,12 @@ KERNEL_IMAGETYPE = "uImage"
 
 COMPATIBLE_MACHINE = "(beagleboard)"
 
-PV = "3.0.12"
-# v3.0.12 tag
-SRCREV_pn-${PN} = "ac6766564c0305ca020fe747dfd7dbdf0881369d"
+PV = "3.0.13"
+# v3.0.13 tag
+SRCREV_pn-${PN} = "d986a8dbfd7358bfbda116650c4caf8a3b90d865"
 
 # The main PR is now using MACHINE_KERNEL_PR, for omap3 see conf/machine/include/omap3.inc
-MACHINE_KERNEL_PR_append = "b"
+MACHINE_KERNEL_PR_append = "a"
 
 FILESPATH =. "${FILE_DIRNAME}/linux-3.0:${FILE_DIRNAME}/linux-3.0/${MACHINE}:"
 
@@ -194,7 +194,6 @@ SRC_URI += "git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gi
             file://beagle/0008-OMAP2-add-cpu-id-register-to-MAC-address-helper.patch \
             file://beagle/0009-HACK-OMAP2-BeagleBoard-Fix-up-random-or-missing-MAC-.patch \
             file://beagle/0010-ARM-OMAP2-beagleboard-fix-mmc-write-protect-pin-when.patch \
-            file://beagle/0011-Revert-mfd-Fix-twl4030-dependencies-for-audio-codec.patch \
             file://madc/0001-Enabling-Hwmon-driver-for-twl4030-madc.patch \
             file://madc/0002-mfd-twl-core-enable-madc-clock.patch \
             \
Signature · 1 line
1.7.2.5
author
#2 lore raw

Re: [PATCH 2/2] linux 3.0: update to 3.0.13

Ignore this one, it's still work in progress

Op 17 dec. 2011, om 17:03 heeft Koen Kooi het volgende geschreven:

Quoted 85 lines

---

conf/machine/include/omap3.inc                     |    2 +-
...-Fix-twl4030-dependencies-for-audio-codec.patch |   26 --------------------
recipes-kernel/linux/linux_3.0.bb                  |    9 +++----
3 files changed, 5 insertions(+), 32 deletions(-)

delete mode 100644 recipes-kernel/linux/linux-3.0/beagle/0011-Revert-mfd-Fix-twl4030-dependencies-for-audio-codec.patch

conf/machine/include/omap3.inc +0 -0
index 4530ae1..fc252ba 100644
@@ -3,7 +3,7 @@ SOC_FAMILY = "omap3"

require conf/machine/include/tune-cortexa8.inc PREFERRED_PROVIDER_virtual/kernel = "linux-omap"
# Increase this everytime you change something in the kernel

conf/machine/include/omap3.inc +1 -1
-MACHINE_KERNEL_PR = "r113"
+MACHINE_KERNEL_PR = "r114"

KERNEL_IMAGETYPE = "uImage"

recipes-kernel/linux/linux-3.0/beagle/0011-Revert-mfd-Fix-twl4030-dependencies-for-audio-codec.patch deleted +0 -26
deleted file mode 100644
index 527b0f5..0000000
@@ -1,26 +0,0 @@
-From 6d7bf5251219d2aa604ada2c955812b16ad5cff4 Mon Sep 17 00:00:00 2001
-From: Koen Kooi <[email protected]>
-Date: Wed, 30 Nov 2011 09:50:56 +0100
-Subject: [PATCH] Revert "mfd: Fix twl4030 dependencies for audio codec"
-
-This reverts commit 11b8fc6ae54bf18a48c94e181c37ca135b858b42.
----
- drivers/mfd/twl-core.c |    2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c
-index f0dfca3..e659d4e 100644
---- a/drivers/mfd/twl-core.c
-+++ b/drivers/mfd/twl-core.c
-@@ -116,7 +116,7 @@
- #define twl_has_watchdog()        false
- #endif
- 
--#if defined(CONFIG_MFD_TWL4030_AUDIO) || defined(CONFIG_MFD_TWL4030_AUDIO_MODULE) ||\
-+#if defined(CONFIG_TWL4030_CODEC) || defined(CONFIG_TWL4030_CODEC_MODULE) ||\
- 	defined(CONFIG_SND_SOC_TWL6040) || defined(CONFIG_SND_SOC_TWL6040_MODULE)
- #define twl_has_codec()	true
- #else
--- 
-1.7.2.5
-
recipes-kernel/linux/linux_3.0.bb +0 -0
index 38b90e9..f335506 100644
@@ -5,12 +5,12 @@ KERNEL_IMAGETYPE = "uImage"
 

COMPATIBLE_MACHINE = "(beagleboard)"

recipes-kernel/linux/linux_3.0.bb +3 -3
-PV = "3.0.12"
-# v3.0.12 tag
-SRCREV_pn-${PN} = "ac6766564c0305ca020fe747dfd7dbdf0881369d"
+PV = "3.0.13"
+# v3.0.13 tag
+SRCREV_pn-${PN} = "d986a8dbfd7358bfbda116650c4caf8a3b90d865"

# The main PR is now using MACHINE_KERNEL_PR, for omap3 see conf/machine/include/omap3.inc

recipes-kernel/linux/linux_3.0.bb +1 -1
-MACHINE_KERNEL_PR_append = "b"
+MACHINE_KERNEL_PR_append = "a"

FILESPATH =. "${FILE_DIRNAME}/linux-3.0:${FILE_DIRNAME}/linux-3.0/${MACHINE}:"

recipes-kernel/linux/linux_3.0.bb +0 -1
@@ -194,7 +194,6 @@ SRC_URI += "git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gi
            file://beagle/0008-OMAP2-add-cpu-id-register-to-MAC-address-helper.patch \
            file://beagle/0009-HACK-OMAP2-BeagleBoard-Fix-up-random-or-missing-MAC-.patch \
            file://beagle/0010-ARM-OMAP2-beagleboard-fix-mmc-write-protect-pin-when.patch \
-            file://beagle/0011-Revert-mfd-Fix-twl4030-dependencies-for-audio-codec.patch \
            file://madc/0001-Enabling-Hwmon-driver-for-twl4030-madc.patch \
            file://madc/0002-mfd-twl-core-enable-madc-clock.patch \
            \
Signature · 1 line
1.7.2.5