summaryrefslogtreecommitdiff
path: root/packages/linux
diff options
context:
space:
mode:
authorCliff Brake <cbrake@bec-systems.com>2007-04-03 21:39:19 +0000
committerCliff Brake <cbrake@bec-systems.com>2007-04-03 21:39:19 +0000
commitf8e6d309c31ae8cb1c5a7a29e1fe21a398f947eb (patch)
tree07f3aea2decfc024c86181e7f26f3c304c873e08 /packages/linux
parentdd5a1666732a1f632bb9dc324687eb1c5ea445bd (diff)
parent205c9d448868dcb43296f71b938d3a16ea04f12c (diff)
merge of 'a9c9105b2420d6026d79f2b77fa7eb73930cff52'
and 'f7d9e1a50f12f3f293d480aaf59f86a126e02262'
Diffstat (limited to 'packages/linux')
-rw-r--r--packages/linux/compulab-pxa270_2.6.16.bb21
1 files changed, 19 insertions, 2 deletions
diff --git a/packages/linux/compulab-pxa270_2.6.16.bb b/packages/linux/compulab-pxa270_2.6.16.bb
index 0e9a43d9b6..928bde8f6a 100644
--- a/packages/linux/compulab-pxa270_2.6.16.bb
+++ b/packages/linux/compulab-pxa270_2.6.16.bb
@@ -1,7 +1,12 @@
SECTION = "kernel"
DESCRIPTION = "Linux kernel for the Compulab PXA270 system"
LICENSE = "GPL"
-PR = "r2"
+PR = "r3"
+
+# coreutils is required for the stat command which is used
+# to create the programming images used with USB. Version
+# >= 6.0 is required.
+DEPENDS = "coreutils-native"
# Note, the compulab package contains a binary NAND driver that is not
# EABI compatible
@@ -29,8 +34,20 @@ do_configure_prepend() {
}
do_deploy() {
+ KNAME=${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin
install -d ${DEPLOY_DIR_IMAGE}
- install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}-${DATETIME}.bin
+ install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${KNAME}
+ # Create an image file that has the size prepended (used by cm-x270 BL)
+ # The following can only be done on a little endian machine
+ size=$(stat --printf=%s ${KNAME})
+ size_=$(printf '\%03o'\
+ $((size & 0x000000FF))\
+ $((size>>8 & 0x000000FF))\
+ $((size>>16 & 0x000000FF))\
+ $((size>>24 & 0x000000FF)))
+ size_=${size_}'\c'
+ echo -e $size_ > ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}-${DATETIME}.img
+ cat ${KNAME} >> ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}-${DATETIME}.img
}
do_deploy[dirs] = "${S}"