blob: f6170b9b73cd93afbce6b680c9e37e7c2fd0ca94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
nslu2_pack_image () {
install -d ${DEPLOY_DIR_IMAGE}/slug
install -m 0644 ${STAGING_LIBDIR}/nslu2-binaries/Redboot \
${STAGING_LIBDIR}/nslu2-binaries/Trailer \
${STAGING_LIBDIR}/nslu2-binaries/SysConf \
${DEPLOY_DIR_IMAGE}/slug/
install -m 0644 ${STAGING_KERNEL_DIR}/zImage ${DEPLOY_DIR_IMAGE}/slug/vmlinuz
install -m 0644 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.gz ${DEPLOY_DIR_IMAGE}/slug/ramdisk.gz
cd ${DEPLOY_DIR_IMAGE}/slug
slugtool pack ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.img
rm -f ${DEPLOY_DIR_IMAGE}/zImage* ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.gz
rm -rf ${DEPLOY_DIR_IMAGE}/slug
}
EXTRA_IMAGEDEPENDS += 'slugtool-native nslu2-firmware-binary'
IMAGE_POSTPROCESS_COMMAND += "nslu2_pack_image; "
|