lh_binary_rootfs: add support to generate jffs2 filesystem
This commit is contained in:
parent
774aebab84
commit
20ffe176ed
|
@ -140,6 +140,43 @@ case "${LH_CHROOT_FILESYSTEM}" in
|
||||||
Remove_package
|
Remove_package
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
jffs2)
|
||||||
|
# Checking depends
|
||||||
|
Check_package chroot/usr/sbin/mkfs.jffs2 mtd-tools
|
||||||
|
|
||||||
|
# Restoring cache
|
||||||
|
Restore_cache cache/packages_binary
|
||||||
|
|
||||||
|
# Installing depends
|
||||||
|
Install_package
|
||||||
|
|
||||||
|
# Remove old ext2 image
|
||||||
|
if [ -f binary/${INITFS}/filesystem.jffs2 ]
|
||||||
|
then
|
||||||
|
rm -f binary/${INITFS}/filesystem.jffs2
|
||||||
|
fi
|
||||||
|
|
||||||
|
case "${LH_CHROOT_BUILD}" in
|
||||||
|
enabled)
|
||||||
|
Chroot "mkfs.jffs2 --root=chroot --output filesystem.jffs2"
|
||||||
|
|
||||||
|
# Move image
|
||||||
|
mv chroot/filesystem.jffs2 binary/${INITFS}
|
||||||
|
rm -rf chroot/chroot
|
||||||
|
;;
|
||||||
|
|
||||||
|
disabled)
|
||||||
|
mkfs.jffs2 --root=chroot --output binary/${INITFS}/filesystem.jffs2
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Saving cache
|
||||||
|
Save_cache cache/packages_binary
|
||||||
|
|
||||||
|
# Removing depends
|
||||||
|
Remove_package
|
||||||
|
;;
|
||||||
|
|
||||||
plain)
|
plain)
|
||||||
if [ -d binary/${INITFS}/filesystem.dir ]
|
if [ -d binary/${INITFS}/filesystem.dir ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue