merge of '1da81118402f312c1b90e65968cd0a7f76696542'
[openembedded.git] / classes / nslu2-image.bbclass
1 nslu2_pack_image () {
2         slugimage -p \
3                 -b ${STAGING_LIBDIR}/nslu2-binaries/RedBoot \
4                 -s ${STAGING_LIBDIR}/nslu2-binaries/SysConf \
5                 -k ${DEPLOY_DIR_IMAGE}/zImage-${MACHINE}.bin \
6                 -L ${STAGING_LOADER_DIR}/apex-nslu2.bin \
7                 -r Flashdisk:${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \
8                 -m ${STAGING_FIRMWARE_DIR}/NPE-B \
9                 -t ${STAGING_LIBDIR}/nslu2-binaries/Trailer \
10                 -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-nslu2.bin
11         slugimage -F -p \
12                 -b ${STAGING_LIBDIR}/nslu2-binaries/RedBoot \
13                 -s ${STAGING_LIBDIR}/nslu2-binaries/SysConf \
14                 -k ${DEPLOY_DIR_IMAGE}/zImage-${MACHINE}.bin \
15                 -L ${STAGING_LOADER_DIR}/apex-nslu2-16mb.bin \
16                 -r Flashdisk:${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \
17                 -m ${STAGING_FIRMWARE_DIR}/NPE-B \
18                 -t ${STAGING_LIBDIR}/nslu2-binaries/Trailer \
19                 -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-nslu2-16mb.bin
20 }
21
22 EXTRA_IMAGEDEPENDS += 'slugimage-native nslu2-linksys-firmware ixp4xx-npe apex-nslu2 apex-nslu2-16mb'
23 IMAGE_POSTPROCESS_COMMAND += "nslu2_pack_image; "