blob: fd74ab614ec2d42ff4f5920b1565456a50ed6918 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
MACHINE_POSTPROCESS_COMMAND = "neuros_make_installkit"
EXTRA_IMAGEDEPENDS += "u-boot u-boot-env virtual/kernel neuros-pkggen-native"
neuros_make_installkit () {
cd ${DEPLOY_DIR_IMAGE}
rm -rf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-installkit/
mkdir -p ${IMAGE_NAME}-installkit/temp
# Get the latest kernel and u-boot using the foo-<machine>.bin symlinks
cp uImage-${MACHINE}.bin ${IMAGE_NAME}-installkit/temp/uImage
[ -f u-boot-${MACHINE}.bin ] && cp u-boot-${MACHINE}.bin ${IMAGE_NAME}-installkit/u-boot.bin
[ -f default_env.img ] && cp default_env.img ${IMAGE_NAME}-installkit/
cp ${IMAGE_NAME}.rootfs.jffs2 ${IMAGE_NAME}-installkit/initrd.bin
cd ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-installkit/
mkfs.jffs2 -d ./temp -o uImage.jffs2 -e 0x20000 -s 0x800 -n
packet_osd2 osd20.pkg '${DISTRO} Developer UPK' default_env.img u-boot.bin uImage.jffs2 rootfs.yaffs2
cd ${DEPLOY_DIR_IMAGE}
cp ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-installkit/osd20.pkg ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-osd20.pkg
rm -rf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-installkit/
}
|