summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>2008-12-09 19:16:23 +0100
committerMichael 'Mickey' Lauer <mickey@vanille-media.de>2008-12-09 19:17:03 +0100
commit14fdac3e6a1556fd9857c31cd22c2eade619ec84 (patch)
tree4136c30cc1186c7d0ed80ee19b7b091634af3572 /packages
parent9771c86014114e703dac8f45b5f82e16d30735d2 (diff)
linux-openmoko: enable 01's battery class only for 01, likewise for 02's battery class
Diffstat (limited to 'packages')
-rw-r--r--packages/linux/linux-openmoko-devel_git.bb2
-rw-r--r--packages/linux/linux-openmoko.inc8
-rw-r--r--packages/linux/linux-openmoko/defconfig-oe3
-rw-r--r--packages/linux/linux-openmoko_2.6.24+git.bb2
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 73ce09a2ee..a1b91e5425 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 3a6589791e..781579be93 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 30cf97adc9..5b8fb3776a 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 7e00f6ab18..134542a43d 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"