[oe-commits] Michael 'Mickey' Lauer : linux-openmoko: enable 01' s battery class only for 01, likewise for 02's battery class

GIT User account git at amethyst.openembedded.net
Tue Dec 9 18:18:06 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 14fdac3e6a1556fd9857c31cd22c2eade619ec84
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=14fdac3e6a1556fd9857c31cd22c2eade619ec84

Author: Michael 'Mickey' Lauer <mickey at vanille-media.de>
Date:   Tue Dec  9 19:16:23 2008 +0100

linux-openmoko: enable 01's battery class only for 01, likewise for 02's battery class

---

 packages/linux/linux-openmoko-devel_git.bb  |    2 +-
 packages/linux/linux-openmoko.inc           |    8 ++++++++
 packages/linux/linux-openmoko/defconfig-oe  |    3 ++-
 packages/linux/linux-openmoko_2.6.24+git.bb |    2 +-
 4 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/packages/linux/linux-openmoko-devel_git.bb b/packages/linux/linux-openmoko-devel_git.bb
index 73ce09a..a1b91e5 100644
--- a/packages/linux/linux-openmoko-devel_git.bb
+++ b/packages/linux/linux-openmoko-devel_git.bb
@@ -18,6 +18,6 @@ SRC_URI = "\
 S = "${WORKDIR}/git"
 
 do_configure_prepend() {
-	install -m 644 cp ./arch/arm/configs/gta02_defconfig ${WORKDIR}/defconfig-oe 
+	install -m 644 ./arch/arm/configs/gta02-moredrivers-defconfig ${WORKDIR}/defconfig-oe 
 }
 
diff --git a/packages/linux/linux-openmoko.inc b/packages/linux/linux-openmoko.inc
index 3a65897..781579b 100644
--- a/packages/linux/linux-openmoko.inc
+++ b/packages/linux/linux-openmoko.inc
@@ -38,8 +38,16 @@ do_configure_prepend() {
                 echo -n "fixing up configuration for Openmoko GTA01..."
                 sed -i -e s,CONFIG_S3C_LOWLEVEL_UART_PORT=2,CONFIG_S3C_LOWLEVEL_UART_PORT=0, ${WORKDIR}/defconfig
                 sed -i -e s,CONFIG_DEBUG_S3C_UART=2,CONFIG_DEBUG_S3C_UART=0, ${WORKDIR}/defconfig
+                echo "# CONFIG_BATTERY_BQ27000_HDQ is not set" >>${WORKDIR}/defconfig
+                echo "CONFIG_BATTERY_GTA01=y" >>${WORKDIR}/defconfig
                 echo "done"
         fi
+        if [ ${MACHINE} == "om-gta02" ]; then
+                echo -n "fixing up configuration for Openmoko GTA02..."
+                echo "CONFIG_BATTERY_BQ27000_HDQ=y" >>${WORKDIR}/defconfig
+                echo "# CONFIG_BATTERY_GTA01 is not set" >>${WORKDIR}/defconfig
+                echo "done"
+        fi                                                                       
 }
 
 # symlink the latest uImage (should go to linux.inc IMO)
diff --git a/packages/linux/linux-openmoko/defconfig-oe b/packages/linux/linux-openmoko/defconfig-oe
index 30cf97a..5b8fb37 100644
--- a/packages/linux/linux-openmoko/defconfig-oe
+++ b/packages/linux/linux-openmoko/defconfig-oe
@@ -1023,8 +1023,9 @@ CONFIG_POWER_SUPPLY=y
 # CONFIG_PDA_POWER is not set
 # CONFIG_APM_POWER is not set
 # CONFIG_BATTERY_DS2760 is not set
-CONFIG_BATTERY_BQ27000_HDQ=y
+### override CONFIG_BATTERY_BQ27000_HDQ=y
 CONFIG_GTA02_HDQ=y
+### override CONFIG_BATTERY_GTA01=y
 # CONFIG_HWMON is not set
 CONFIG_WATCHDOG=y
 # CONFIG_WATCHDOG_NOWAYOUT is not set
diff --git a/packages/linux/linux-openmoko_2.6.24+git.bb b/packages/linux/linux-openmoko_2.6.24+git.bb
index 7e00f6a..134542a 100644
--- a/packages/linux/linux-openmoko_2.6.24+git.bb
+++ b/packages/linux/linux-openmoko_2.6.24+git.bb
@@ -6,7 +6,7 @@ DESCRIPTION = "The Linux kernel for the Openmoko devices GTA01 (Neo1973) and GTA
 KERNEL_RELEASE = "2.6.24"
 KERNEL_VERSION = "${KERNEL_RELEASE}"
 
-OEV = "oe1"
+OEV = "oe2"
 PV = "${KERNEL_RELEASE}-${OEV}+gitr${SRCREV}"
 PR = "r0"
 





More information about the Openembedded-commits mailing list