summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/package_deb.bbclass4
-rw-r--r--packages/linux/linux-handhelds-2.6.inc20
-rw-r--r--packages/linux/linux-handhelds-2.6_2.6.21-hh20.bb2
3 files changed, 7 insertions, 19 deletions
diff --git a/classes/package_deb.bbclass b/classes/package_deb.bbclass
index 82a2d53312..e59d194aeb 100644
--- a/classes/package_deb.bbclass
+++ b/classes/package_deb.bbclass
@@ -94,10 +94,6 @@ python do_package_deb () {
if os.access(os.path.join(tmpdir, "stamps", "DEB_PACKAGE_INDEX_CLEAN"),os.R_OK):
os.unlink(os.path.join(tmpdir, "stamps", "DEB_PACKAGE_INDEX_CLEAN"))
- if packages == []:
- bb.debug(1, "No packages; nothing to do")
- return
-
packages = bb.data.getVar('PACKAGES', d, 1)
for pkg in packages.split():
localdata = bb.data.createCopy(d)
diff --git a/packages/linux/linux-handhelds-2.6.inc b/packages/linux/linux-handhelds-2.6.inc
index a2efdc955a..5970ace054 100644
--- a/packages/linux/linux-handhelds-2.6.inc
+++ b/packages/linux/linux-handhelds-2.6.inc
@@ -37,6 +37,11 @@ do_configure() {
die "No default configuration for ${MACHINE} available."
fi
+ if [ -n "${KERNEL_INITRAMFS_PATH}" -a "${ANGSTROM_MODE}" = "glibc" ]; then
+ # Kernel expects non-compressed cpio
+ gzip -d -c ${KERNEL_INITRAMFS_PATH} >${WORKDIR}/initramfs.cpio
+ echo "CONFIG_INITRAMFS_SOURCE=\"${WORKDIR}/initramfs.cpio\"" >> ${S}/.config
+ fi
if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then
echo "CONFIG_AEABI=y" >> ${S}/.config
@@ -48,26 +53,13 @@ do_configure() {
sed -e '/CONFIG_AEABI/d' \
-e '/CONFIG_OABI_COMPAT=/d' \
+ -e '/CONFIG_INITRAMFS_SOURCE=/d' \
'${WORKDIR}/defconfig' >>'${S}/.config'
yes '' | oe_runmake oldconfig
}
-do_compile_prepend() {
- # Clean up any stale initramfs archive
- rm -f usr/initramfs_data.cpio.gz
- if [ -n "${KERNEL_INITRAMFS_PATH}" -a "${ANGSTROM_MODE}" = "glibc" ]; then
- if [ ! -f ${KERNEL_INITRAMFS_PATH} ]; then
- echo "${KERNEL_INITRAMFS_PATH} does not exist, you may need to bitbake it separately"
- exit 1
- fi
- cp ${KERNEL_INITRAMFS_PATH} usr/initramfs_data.cpio.gz
- # touch is for broken Koen's cp
- touch usr/initramfs_data.cpio.gz
- fi
-}
-
do_deploy() {
install -d ${DEPLOY_DIR_IMAGE}
install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR_IMAGE}/${KERNEL_FILENAME}
diff --git a/packages/linux/linux-handhelds-2.6_2.6.21-hh20.bb b/packages/linux/linux-handhelds-2.6_2.6.21-hh20.bb
index 4fa2e2bd9b..9d493c3212 100644
--- a/packages/linux/linux-handhelds-2.6_2.6.21-hh20.bb
+++ b/packages/linux/linux-handhelds-2.6_2.6.21-hh20.bb
@@ -1,7 +1,7 @@
SECTION = "kernel"
DESCRIPTION = "handhelds.org Linux kernel 2.6 for PocketPCs and other consumer handheld devices."
LICENSE = "GPL"
-PR = "r18"
+PR = "r19"
DEFAULT_PREFERENCE = "-1"