summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorTom Rini <tom_rini@mentor.com>2010-08-20 10:48:09 -0700
committerTom Rini <tom_rini@mentor.com>2010-08-20 10:49:24 -0700
commite3e199113301021746dc99e513744e05b610cac2 (patch)
treed9170736eb4eacfc1350e85649b9cf5d5b82576c /classes
parentd6f49fe115206047b41b0195724ba872897ef531 (diff)
magicbox-image.bbclass: Call uboot-mkimage not mkimage, add DEPENDS
Signed-off-by: Tom Rini <tom_rini@mentor.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/magicbox-image.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/classes/magicbox-image.bbclass b/classes/magicbox-image.bbclass
index c75e69cac2..37f4c7947f 100644
--- a/classes/magicbox-image.bbclass
+++ b/classes/magicbox-image.bbclass
@@ -1,3 +1,5 @@
+DEPENDS += "u-boot-mkimage-native"
+
magicbox_gen_images() {
# find latest kernel
KERNEL=`ls -tr ${DEPLOY_DIR_IMAGE}/uImage* | tail -n 1`
@@ -9,7 +11,7 @@ magicbox_gen_images() {
#squashfs
#We need to prep the image so that u-boot recognizes it
mv ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.squashfs.bin
- ${STAGING_BINDIR_NATIVE}/mkimage -A ppc -O linux -T ramdisk -C none -n "OPLinux-uclibc-squashfs" \
+ ${STAGING_BINDIR_NATIVE}/uboot-mkimage -A ppc -O linux -T ramdisk -C none -n "OPLinux-uclibc-squashfs" \
-d ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.squashfs.bin ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs
rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.squashfs.bin
@@ -17,7 +19,7 @@ magicbox_gen_images() {
#squashfs-lzma
#same as squashfs
mv ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs-lzma ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.squashfs-lzma.bin
- ${STAGING_BINDIR_NATIVE}/mkimage -A ppc -O linux -T ramdisk -C none -n "OPLinux-uclibc-squashfs-lzma" \
+ ${STAGING_BINDIR_NATIVE}/uboot-mkimage -A ppc -O linux -T ramdisk -C none -n "OPLinux-uclibc-squashfs-lzma" \
-d ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.squashfs-lzma.bin ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs-lzma
rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.squashfs-lzma.bin