| | |
| | | |
| | | # shell script will exit once get command error |
| | | set -e |
| | | set -u |
| | | |
| | | #+-------------------------+ |
| | | #| Shell script functions | |
| | |
| | | |
| | | pr_info "start install linux kernel images" |
| | | mount -t vfat /dev/mapper/${LOOP_DEV}p1 ${MNT_POINT} |
| | | cp -rf $PRJ_PATH/patches/config-${BOARD}.txt ${MNT_POINT}/config.txt |
| | | cp -rf $KERNEL_BINPATH/$KERNEL_IMAGE ${MNT_POINT}/ |
| | | cp -rf $KERNEL_BINPATH/${BOARD}.dtb ${MNT_POINT}/ |
| | | if [ -d $KERNEL_BINPATH/overlays ] ; then |
| | | cp -rf $KERNEL_BINPATH/overlays ${MNT_POINT}/ |
| | | fi |
| | | |
| | | sync && umount ${MNT_POINT} |
| | | |