summaryrefslogtreecommitdiff
path: root/classes/mlinux-image.bbclass
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2017-10-06 14:21:10 -0500
committerJohn Klug <john.klug@multitech.com>2017-10-06 14:21:10 -0500
commitba58f963b7c9b25c687087df2424409f8c61eaec (patch)
tree7d19a3b1b704c87b0dfb0eb21fd5d9747435de36 /classes/mlinux-image.bbclass
parentceea6086bae74bbdcb2af2b9cd40431b2ec13488 (diff)
downloadmeta-mlinux-ba58f963b7c9b25c687087df2424409f8c61eaec.tar.gz
meta-mlinux-ba58f963b7c9b25c687087df2424409f8c61eaec.tar.bz2
meta-mlinux-ba58f963b7c9b25c687087df2424409f8c61eaec.zip
Add mtcdtip hardware version into model file.
Diffstat (limited to 'classes/mlinux-image.bbclass')
-rw-r--r--classes/mlinux-image.bbclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/classes/mlinux-image.bbclass b/classes/mlinux-image.bbclass
index 6d8ff60..4d8c2fe 100644
--- a/classes/mlinux-image.bbclass
+++ b/classes/mlinux-image.bbclass
@@ -53,7 +53,14 @@ do_firmware () {
cat uImage.bin | md5sum > uImage.bin.md5
cat rootfs.jffs2 | md5sum > rootfs.jffs2.md5
- echo "${MACHINE}" > model
+ case "${MACHINE}" in
+ mtcdt)
+ echo "mtcdt|mtcdtin" >model
+ ;;
+ *)
+ echo "${MACHINE}" > model
+ ;;
+ esac
tar cvf ${IMAGE_BASENAME}-${MACHINE}-upgrade.bin uImage.bin* rootfs.jffs2* model
tar cvf ${IMAGE_BASENAME}-${MACHINE}-upgrade-withboot.bin bstrap.bin* uboot.bin* uImage.bin* rootfs.jffs2* model