summaryrefslogtreecommitdiffstats
path: root/meta/packages
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2007-12-06 09:56:54 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2007-12-06 09:56:54 +0000
commit8ccfa5c993a20c92ef7a2630ed37dea6d1159a89 (patch)
tree4e709a7fd6bc7b23905c905ee87ef5ae46f22791 /meta/packages
parentd46841a5c760f9910a0841d7e96e6cd8fd0729c6 (diff)
downloadpoky-8ccfa5c993a20c92ef7a2630ed37dea6d1159a89.tar.gz
linux: add u-boot-mkimage to DEPENDS only for uImage kernels
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3316 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages')
-rw-r--r--meta/packages/linux/linux.inc27
1 files changed, 11 insertions, 16 deletions
diff --git a/meta/packages/linux/linux.inc b/meta/packages/linux/linux.inc
index bb2ad455fd..fc0645dfd9 100644
--- a/meta/packages/linux/linux.inc
+++ b/meta/packages/linux/linux.inc
@@ -4,10 +4,16 @@ LICENSE = "GPL"
4 4
5inherit kernel 5inherit kernel
6 6
7# Not every device needs mkimage to generate a kernel image, but lets make OE a bit more 7python __anonymous () {
8# friendly and increase the "Just Works(TM) factor. Building uboot takes only a minute. 8
9DEPENDS += " u-boot-mkimage-openmoko-native " 9 import bb
10 10
11 kerneltype = bb.data.getVar('KERNEL_IMAGETYPE', d, 1) or ''
12 if kerneltype == 'uImage':
13 depends = bb.data.getVar("DEPENDS", d, 1)
14 depends = "%s u-boot-mkimage-openmoko-native" % depends
15 bb.data.setVar("DEPENDS", depends, d)
16}
11 17
12RPSRC = "http://www.rpsys.net/openzaurus/patches/archive" 18RPSRC = "http://www.rpsys.net/openzaurus/patches/archive"
13 19
@@ -77,17 +83,7 @@ do_configure_prepend() {
77 yes '' | oe_runmake oldconfig 83 yes '' | oe_runmake oldconfig
78} 84}
79 85
80# Support checking the kernel size since some kernels need to reside in partitions 86
81# with a fixed length or there is a limit in transferring the kernel to memory
82do_sizecheck() {
83 if [ ! -z "${KERNEL_IMAGE_MAXSIZE}" ]; then
84 size=`ls -l arch/${ARCH}/boot/${KERNEL_IMAGETYPE} | awk '{ print $5}'`
85 if [ $size -ge ${KERNEL_IMAGE_MAXSIZE} ]; then
86 rm arch/${ARCH}/boot/${KERNEL_IMAGETYPE}
87 die "This kernel (size=$size) is too big for your device. Please reduce the size of the kernel by making more of it modular."
88 fi
89 fi
90}
91 87
92do_install_prepend() { 88do_install_prepend() {
93 if test -e arch/${ARCH}/boot/Image ; then 89 if test -e arch/${ARCH}/boot/Image ; then
@@ -134,6 +130,5 @@ do_deploy() {
134 130
135do_deploy[dirs] = "${S}" 131do_deploy[dirs] = "${S}"
136 132
137addtask sizecheck before do_install after do_compile
138addtask deploy before do_package after do_install 133addtask deploy before do_package after do_install
139 134