sg3-utils: add newer buildable version
[openembedded.git] / classes / n2100-image.bbclass
index 519be21..b74e74c 100644 (file)
@@ -1,6 +1,6 @@
 n2100_pack_image() {
         # find latest kernel
-        KERNEL=`ls -tr ${DEPLOY_DIR_IMAGE}/zImage* | tail -1`
+        KERNEL=`ls -tr ${DEPLOY_DIR_IMAGE}/zImage* | tail -1`
         if [ -z "$KERNEL" ]; then
                 oefatal "No kernel found in ${DEPLOY_DIR_IMAGE}. Bitbake linux to create one."
                 exit 1
@@ -26,5 +26,7 @@ n2100_pack_image() {
         dd if=/dev/zero of=$PADFILE bs=$PAD_SIZE count=1 2>>/dev/null
         cat $KERNEL $PADFILE $ROOTFS > $OUTPUT
         rm -f $PADFILE
-        ls -l $OUTPUT
+       ls -l $OUTPUT
 }
+
+IMAGE_POSTPROCESS_COMMAND += "n2100_pack_image; "