Strip the KERNEL from the mount paths, working around the following
error: root@releng2:/ # mount_msdosfs /dev/md5s1 /usr/obj/usr/src/release/WANDBOARD-QUAD/fat mount_msdosfs: /dev/md5s1: File name too long Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
eff85709da
commit
83dbcdd679
@ -18,8 +18,8 @@ NODOC=1
|
|||||||
|
|
||||||
arm_install_uboot() {
|
arm_install_uboot() {
|
||||||
UBOOT_DIR="${CHROOTDIR}/usr/local/share/u-boot/u-boot-beaglebone"
|
UBOOT_DIR="${CHROOTDIR}/usr/local/share/u-boot/u-boot-beaglebone"
|
||||||
FATMOUNT="${DESTDIR}/fat"
|
FATMOUNT="${DESTDIR##${KERNEL}}/fat"
|
||||||
UFSMOUNT="${DESTDIR}/ufs"
|
UFSMOUNT="${DESTDIR##${KERNEL}}/ufs"
|
||||||
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
|
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
|
||||||
chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
|
chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
|
||||||
chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${UFSMOUNT}
|
chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${UFSMOUNT}
|
||||||
|
@ -18,8 +18,8 @@ MD_ARGS="-x 63 -y 255"
|
|||||||
|
|
||||||
arm_install_uboot() {
|
arm_install_uboot() {
|
||||||
UBOOT_DIR="${CHROOTDIR}/usr/local/share/u-boot/u-boot-pandaboard"
|
UBOOT_DIR="${CHROOTDIR}/usr/local/share/u-boot/u-boot-pandaboard"
|
||||||
FATMOUNT="${DESTDIR}/fat"
|
FATMOUNT="${DESTDIR##${KERNEL}}/fat"
|
||||||
UFSMOUNT="${DESTDIR}/ufs"
|
UFSMOUNT="${DESTDIR##${KERNEL}}/ufs"
|
||||||
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
|
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
|
||||||
chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
|
chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
|
||||||
chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${UFSMOUNT}
|
chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${UFSMOUNT}
|
||||||
|
@ -20,8 +20,8 @@ arm_install_uboot() {
|
|||||||
UBOOT_DIR="${CHROOTDIR}/usr/local/share/u-boot/u-boot-rpi"
|
UBOOT_DIR="${CHROOTDIR}/usr/local/share/u-boot/u-boot-rpi"
|
||||||
UBOOT_FILES="bootcode.bin config.txt fixup.dat fixup_cd.dat \
|
UBOOT_FILES="bootcode.bin config.txt fixup.dat fixup_cd.dat \
|
||||||
start.elf start_cd.elf u-boot.img"
|
start.elf start_cd.elf u-boot.img"
|
||||||
FATMOUNT="${DESTDIR}/fat"
|
FATMOUNT="${DESTDIR##${KERNEL}}/fat"
|
||||||
UFSMOUNT="${DESTDIR}/ufs"
|
UFSMOUNT="${DESTDIR##${KERNEL}}/ufs"
|
||||||
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
|
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
|
||||||
chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
|
chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
|
||||||
chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${UFSMOUNT}
|
chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${UFSMOUNT}
|
||||||
|
@ -20,8 +20,8 @@ arm_install_uboot() {
|
|||||||
UBOOT_DIR="${CHROOTDIR}/usr/local/share/u-boot/u-boot-rpi2"
|
UBOOT_DIR="${CHROOTDIR}/usr/local/share/u-boot/u-boot-rpi2"
|
||||||
UBOOT_FILES="bootcode.bin config.txt fixup.dat fixup_cd.dat \
|
UBOOT_FILES="bootcode.bin config.txt fixup.dat fixup_cd.dat \
|
||||||
fixup_x.dat start.elf start_cd.elf start_x.elf u-boot.bin"
|
fixup_x.dat start.elf start_cd.elf start_x.elf u-boot.bin"
|
||||||
FATMOUNT="${DESTDIR}/fat"
|
FATMOUNT="${DESTDIR##${KERNEL}}/fat"
|
||||||
UFSMOUNT="${DESTDIR}/ufs"
|
UFSMOUNT="${DESTDIR##${KERNEL}}/ufs"
|
||||||
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
|
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
|
||||||
chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
|
chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
|
||||||
chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${UFSMOUNT}
|
chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${UFSMOUNT}
|
||||||
|
@ -19,8 +19,8 @@ NODOC=1
|
|||||||
arm_install_uboot() {
|
arm_install_uboot() {
|
||||||
UBOOT_DIR="${CHROOTDIR}/usr/local/share/u-boot/u-boot-wandboard"
|
UBOOT_DIR="${CHROOTDIR}/usr/local/share/u-boot/u-boot-wandboard"
|
||||||
UBOOT_FILES="u-boot.imx"
|
UBOOT_FILES="u-boot.imx"
|
||||||
FATMOUNT="${DESTDIR}/fat"
|
FATMOUNT="${DESTDIR##${KERNEL}}/fat"
|
||||||
UFSMOUNT="${DESTDIR}/ufs"
|
UFSMOUNT="${DESTDIR##${KERNEL}}/ufs"
|
||||||
chroot ${CHROOTDIR} dd if=${UBOOT_DIR##${CHROOTDIR}}/${UBOOT_FILES} \
|
chroot ${CHROOTDIR} dd if=${UBOOT_DIR##${CHROOTDIR}}/${UBOOT_FILES} \
|
||||||
of=/dev/${mddev} bs=512 seek=2
|
of=/dev/${mddev} bs=512 seek=2
|
||||||
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
|
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
|
||||||
|
@ -19,8 +19,8 @@ NODOC=1
|
|||||||
arm_install_uboot() {
|
arm_install_uboot() {
|
||||||
UBOOT_DIR="${CHROOTDIR}/usr/local/share/u-boot/u-boot-wandboard"
|
UBOOT_DIR="${CHROOTDIR}/usr/local/share/u-boot/u-boot-wandboard"
|
||||||
UBOOT_FILES="u-boot.imx"
|
UBOOT_FILES="u-boot.imx"
|
||||||
FATMOUNT="${DESTDIR}/fat"
|
FATMOUNT="${DESTDIR##${KERNEL}}/fat"
|
||||||
UFSMOUNT="${DESTDIR}/ufs"
|
UFSMOUNT="${DESTDIR##${KERNEL}}/ufs"
|
||||||
chroot ${CHROOTDIR} dd if=${UBOOT_DIR##${CHROOTDIR}}/${UBOOT_FILES} \
|
chroot ${CHROOTDIR} dd if=${UBOOT_DIR##${CHROOTDIR}}/${UBOOT_FILES} \
|
||||||
of=/dev/${mddev} bs=512 seek=2
|
of=/dev/${mddev} bs=512 seek=2
|
||||||
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
|
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
|
||||||
|
@ -19,8 +19,8 @@ NODOC=1
|
|||||||
arm_install_uboot() {
|
arm_install_uboot() {
|
||||||
UBOOT_DIR="${CHROOTDIR}/usr/local/share/u-boot/u-boot-wandboard"
|
UBOOT_DIR="${CHROOTDIR}/usr/local/share/u-boot/u-boot-wandboard"
|
||||||
UBOOT_FILES="u-boot.imx"
|
UBOOT_FILES="u-boot.imx"
|
||||||
FATMOUNT="${DESTDIR}/fat"
|
FATMOUNT="${DESTDIR##${KERNEL}}/fat"
|
||||||
UFSMOUNT="${DESTDIR}/ufs"
|
UFSMOUNT="${DESTDIR##${KERNEL}}/ufs"
|
||||||
chroot ${CHROOTDIR} dd if=${UBOOT_DIR##${CHROOTDIR}}/${UBOOT_FILES} \
|
chroot ${CHROOTDIR} dd if=${UBOOT_DIR##${CHROOTDIR}}/${UBOOT_FILES} \
|
||||||
of=/dev/${mddev} bs=512 seek=2
|
of=/dev/${mddev} bs=512 seek=2
|
||||||
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
|
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user