mirror of https://github.com/OpenIPC/composer.git
28 lines
578 B
Bash
Executable File
28 lines
578 B
Bash
Executable File
#!/bin/bash
|
|
|
|
MODEL=t31
|
|
FLAVOR=lite
|
|
|
|
|
|
cd ../../openipc/output/images
|
|
pwd
|
|
|
|
|
|
if [ -e uImage ]; then
|
|
mv uImage uImage.${MODEL}
|
|
md5sum uImage.${MODEL} > uImage.${MODEL}.md5sum
|
|
fi
|
|
|
|
if [ -e rootfs.squashfs ]; then
|
|
mv rootfs.squashfs rootfs.squashfs.${MODEL}
|
|
md5sum rootfs.squashfs.${MODEL} > rootfs.squashfs.${MODEL}.md5sum
|
|
fi
|
|
|
|
tar czf openipc.${MODEL}-nor-${FLAVOR}.tgz \
|
|
uImage.${MODEL} uImage.${MODEL}.md5sum \
|
|
rootfs.squashfs.${MODEL} rootfs.squashfs.${MODEL}.md5sum
|
|
|
|
ls -la uImage.${MODEL} rootfs.squashfs.${MODEL} openipc.${MODEL}-nor-${FLAVOR}.tgz
|
|
|
|
cd -
|