include u-boot-environment.inc
-do_deploy_baikal () {
+baikal_deploy () {
if [ ! -d ${BAIKAL_IMAGES} ]; then
mkdir -p ${BAIKAL_IMAGES}
fi
else
install -D -m 644 ${B}/${UBOOT_BINARY} ${BAIKAL_IMAGES}/${MACHINE}.${UBOOT_BINARY}
fi
+ if [ -f ${WORKDIR}/${MACHINE}.bin ]; then
+ cp -f ${WORKDIR}/${MACHINE}.bin ${BAIKAL_IMAGES}/${MACHINE}.bin
+ fi
}
-addtask deploy_baikal after do_deploy
+
+do_deploy[postfuncs] += "baikal_deploy"
deltask package_qa
-do_deploy_baikal () {
+baikal_deploy () {
if [ ! -d ${BAIKAL_IMAGES} ]; then
mkdir -p ${BAIKAL_IMAGES}
fi
install -m 0644 ${B}/${KERNEL_OUTPUT_DIR}/$imageType ${BAIKAL_IMAGES}/${MACHINE}.$imageType
done
}
-addtask deploy_baikal after do_deploy
+
+baikal_deploy_vmlinux () {
+ if [ ! -d ${BAIKAL_IMAGES} ]; then
+ mkdir -p ${BAIKAL_IMAGES}
+ fi
+ cp -f ${B}/System.map ${BAIKAL_IMAGES}/${MACHINE}.System.map
+ cp -f ${B}/${KERNEL_OUTPUT_DIR}/vmlinux.bin ${BAIKAL_IMAGES}/${MACHINE}.vmlinux.bin
+ cp -f ${B}/${KERNEL_OUTPUT_DIR}/vmlinux.bin.gz ${BAIKAL_IMAGES}/${MACHINE}.vmlinux.bin.gz
+ cat ${BAIKAL_IMAGES}/${MACHINE}.vmlinux.bin | lzma -f -9 > ${BAIKAL_IMAGES}/${MACHINE}.vmlinux.bin.lzma
+}
+
+do_deploy[postfuncs] += "baikal_deploy"
+do_deploy[postfuncs] += "baikal_deploy_vmlinux"