diff options
author | Paul Sokolovsky <pmiscml@gmail.com> | 2008-03-08 11:30:16 +0000 |
---|---|---|
committer | Paul Sokolovsky <pmiscml@gmail.com> | 2008-03-08 11:30:16 +0000 |
commit | 9e85a77231cabd341bbd9320bce4c24a0f314244 (patch) | |
tree | dcd67edda5369528ad030b1b13c1702b5ae477dc /packages/linux/linux-handhelds-2.6.inc | |
parent | 5433bbf3ff49cefea0d49c8ff29a1dfadd064261 (diff) |
linux-handhelds-2.6: Fix some initramfs support issues.
* Be sure to clean up any possible old initramfs.
* Fix bashism.
Diffstat (limited to 'packages/linux/linux-handhelds-2.6.inc')
-rw-r--r-- | packages/linux/linux-handhelds-2.6.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/linux/linux-handhelds-2.6.inc b/packages/linux/linux-handhelds-2.6.inc index 3bd9f78ea2..998711fe76 100644 --- a/packages/linux/linux-handhelds-2.6.inc +++ b/packages/linux/linux-handhelds-2.6.inc @@ -55,7 +55,9 @@ do_configure() { } do_compile_prepend() { - if [ -n "${KERNEL_INITRAMFS_PATH}" -a "${ANGSTROM_MODE}" == "glibc" ]; then + # Clean up any stale initramfs archive + rm 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 |