[oe-commits] org.oe.dev compulab-pxa270 2.6.16: remove image creation code as it does not work on all distros
cbrake commit
openembedded-commits at lists.openembedded.org
Wed Apr 4 12:58:41 UTC 2007
compulab-pxa270 2.6.16: remove image creation code as it does not work on all distros
Author: cbrake at openembedded.org
Branch: org.openembedded.dev
Revision: 2c22bea4b2d6d4e0ad169b4d539960696bad4584
ViewMTN: http://monotone.openembedded.org/revision.psp?id=2c22bea4b2d6d4e0ad169b4d539960696bad4584
Files:
1
packages/linux/compulab-pxa270_2.6.16.bb
Diffs:
#
# mt diff -r6cded7d21d128219a1394ab68b32c4932149196c -r2c22bea4b2d6d4e0ad169b4d539960696bad4584
#
#
#
# patch "packages/linux/compulab-pxa270_2.6.16.bb"
# from [92c431b543ca2bced978883fa8795cc6bb0399f9]
# to [1b36f665982ec12f080f168061849198c405cfdd]
#
============================================================
--- packages/linux/compulab-pxa270_2.6.16.bb 92c431b543ca2bced978883fa8795cc6bb0399f9
+++ packages/linux/compulab-pxa270_2.6.16.bb 1b36f665982ec12f080f168061849198c405cfdd
@@ -1,13 +1,8 @@ PR = "r3"
SECTION = "kernel"
DESCRIPTION = "Linux kernel for the Compulab PXA270 system"
LICENSE = "GPL"
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
@@ -39,15 +34,18 @@ do_deploy() {
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
+ # the following does not work on all computers as it requires a recent
+ # version of coreutils (>= 6.0). We will eventually replace the following
+ # with python code.
+ #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}"
More information about the Openembedded-commits
mailing list