summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2007-12-06 09:44:46 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2007-12-06 09:44:46 +0000
commitd46841a5c760f9910a0841d7e96e6cd8fd0729c6 (patch)
tree33416b88b62328c0842cf44349d0e5aab58fadd1 /meta
parent048754f6843b4bf0c205f25571b89ed9121977bd (diff)
downloadpoky-d46841a5c760f9910a0841d7e96e6cd8fd0729c6.tar.gz
linux-rp: kernel size check is now in kernel.bbclass
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3315 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
-rw-r--r--meta/packages/linux/linux-rp.inc24
1 files changed, 0 insertions, 24 deletions
diff --git a/meta/packages/linux/linux-rp.inc b/meta/packages/linux/linux-rp.inc
index a63ea20a1e..610ccefa94 100644
--- a/meta/packages/linux/linux-rp.inc
+++ b/meta/packages/linux/linux-rp.inc
@@ -136,30 +136,6 @@ do_configure() {
136 yes '' | oe_runmake oldconfig 136 yes '' | oe_runmake oldconfig
137} 137}
138 138
139# Check the kernel is below the 1264*1024 byte limit for the PXA Zaurii
140do_compile_append() {
141 case ${MACHINE} in
142 c7x0 | akita | poodle | spitz | tosa )
143 size=`ls -l arch/${ARCH}/boot/${KERNEL_IMAGETYPE} | awk '{ print $5}'`
144 if [ $size -ge 1294336 ]; then
145 rm arch/${ARCH}/boot/${KERNEL_IMAGETYPE}
146 echo "Size is $size"
147 die "This kernel is too big for your PXA Zaurus and will destroy data if you flash it. Please reduce the size of the kernel by making more of it modular."
148 fi
149 ;;
150 collie )
151 size=`ls -l arch/${ARCH}/boot/${KERNEL_IMAGETYPE} | awk '{ print $5}'`
152 if [ $size -ge 1048576 ]; then
153 rm arch/${ARCH}/boot/${KERNEL_IMAGETYPE}
154 echo "Size is $size"
155 die "This kernel is too big for your Collie and will not be flashed. Please reduce the size of the kernel by making more of it modular."
156 fi
157 ;;
158 *)
159 ;;
160 esac
161}
162
163do_deploy() { 139do_deploy() {
164 install -d ${DEPLOY_DIR_IMAGE} 140 install -d ${DEPLOY_DIR_IMAGE}
165 install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR_IMAGE}/${KERNEL_DEPLOY_NAME} 141 install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR_IMAGE}/${KERNEL_DEPLOY_NAME}