blob: 96e2f1bd2565e4e93e9593e1709b058a49f24c01 (
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
26
27
28
29
|
MACHINE_POSTPROCESS_COMMAND = "neuros_make_installkit"
EXTRA_IMAGECMD_yaffs2 = "0"
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.yaffs2 ${IMAGE_NAME}-installkit/rootfs.yaffs2
cd ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-installkit/
mkfs.jffs2 -x lzo -d ./temp -o uImage.jffs2 -e 0x20000 -s 0x800 -n
echo "${MACHINE}" > rootfs.version
echo "${MACHINE}" > u-boot.version
echo "${MACHINE}" > uImage.version
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/
}
|