Merge the following from ^/projects/release-noxdev:
r269549, r269551, r269552, r269553, r269554, r269555, r269558, r269559,
r269560, r269561, r269628, r269629, r269630, r269635, r269637:
r269549:
Create a new project branch, release-noxdev, for
a sandbox workspace outside of head/ to update the
release bits for arm builds since the deprecation of
the XDEV and XDEV_ARCH make(1) variables.
r269551:
Define load_chroot_env() and load_target_env()
prototypes.
r269552:
Call load_chroot_env() and load_target_env() where
they can be mutually conflicting with regard to
TARGET, TARGET_ARCH, XDEV, and XDEV_ARCH.
r269553:
Add shebang line to arm/*.conf files since these
should be considered to be executable (albeit not
on their own) shell scripts.
r269554:
Redefine load_chroot_env() and load_target_env() in
the arm/*.conf files, and reindent.
r269555:
Simplify where load_chroot_env() and load_target_env() are
called.
r269558:
Provide example in release.conf.sample for overriding the
load_chroot_env() and load_target_env() prototypes.
r269559:
Remove a gratuitous newline.
r269560:
Unset potentially conflicting variables in load_chroot_env()
and load_target_env().
r269561:
Make global variables global, and accessible outside of
the functions within which they were once defined.
r269628:
Remove XDEV/XDEV_ARCH evaluation if EMBEDDEDBUILD is set.
r269629:
In arm/release.sh, switch TARGET/TARGET_ARCH back to the
original XDEV/XDEV_ARCH make(1) variables.
In theory, this should have been a no-op, but the TARGET and
TARGET_ARCH are now unset in load_target_env() to avoid
collision with the chroot userland.
r269630:
Export variables in the arm/*.conf files because they
need to be passed through release.sh to arm/release.sh.
Set MK_TESTS=no for the xdev target.
r269635:
As part of the XDEV/XDEV_ARCH deprecation, the
'xdev-links' target was intentionally no longer
invoked automatically.
Invoke the xdev-links target after xdev, which
creates, for example, /usr/bin/armv6-freebsd-cc
symlink to /usr/armv6-freebsd/usr/bin/cc.
r269637:
Set TARGET and TARGET_ARCH to the XDEV and XDEV_ARCH
counterparts for the xdev and xdev-links make(1)
targets.
Sponsored by: The FreeBSD Foundation
2014-08-06 19:04:05 +00:00
|
|
|
#!/bin/sh
|
2013-12-28 02:27:06 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2015-05-06 15:58:21 +00:00
|
|
|
EMBEDDED_TARGET_ARCH="armv6"
|
2017-11-17 17:36:45 +00:00
|
|
|
EMBEDDED_TARGET="arm"
|
|
|
|
EMBEDDEDBUILD=1
|
2017-11-15 19:03:06 +00:00
|
|
|
EMBEDDEDPORTS="sysutils/u-boot-rpi sysutils/rpi-firmware"
|
2018-07-22 12:02:07 +00:00
|
|
|
FAT_SIZE="50m"
|
2015-05-07 18:47:59 +00:00
|
|
|
FAT_TYPE="16"
|
2017-11-17 17:36:45 +00:00
|
|
|
IMAGE_SIZE="3072M"
|
|
|
|
KERNEL="RPI-B"
|
2015-05-07 18:47:59 +00:00
|
|
|
MD_ARGS="-x 63 -y 255"
|
2015-05-07 18:48:47 +00:00
|
|
|
NODOC=1
|
2018-07-25 17:45:56 +00:00
|
|
|
UBOOT_DIR="/usr/local/share/u-boot/u-boot-rpi"
|
|
|
|
RPI_FIRMWARE_DIR="/usr/local/share/rpi-firmware"
|
2018-07-26 19:42:23 +00:00
|
|
|
OL_DIR="${RPI_FIRMWARE_DIR}/overlays"
|
2018-07-22 12:04:21 +00:00
|
|
|
OVERLAYS="mmc.dtbo pi3-disable-bt.dtbo"
|
2017-11-17 17:36:45 +00:00
|
|
|
PART_SCHEME="MBR"
|
Merge the following from ^/projects/release-noxdev:
r269549, r269551, r269552, r269553, r269554, r269555, r269558, r269559,
r269560, r269561, r269628, r269629, r269630, r269635, r269637:
r269549:
Create a new project branch, release-noxdev, for
a sandbox workspace outside of head/ to update the
release bits for arm builds since the deprecation of
the XDEV and XDEV_ARCH make(1) variables.
r269551:
Define load_chroot_env() and load_target_env()
prototypes.
r269552:
Call load_chroot_env() and load_target_env() where
they can be mutually conflicting with regard to
TARGET, TARGET_ARCH, XDEV, and XDEV_ARCH.
r269553:
Add shebang line to arm/*.conf files since these
should be considered to be executable (albeit not
on their own) shell scripts.
r269554:
Redefine load_chroot_env() and load_target_env() in
the arm/*.conf files, and reindent.
r269555:
Simplify where load_chroot_env() and load_target_env() are
called.
r269558:
Provide example in release.conf.sample for overriding the
load_chroot_env() and load_target_env() prototypes.
r269559:
Remove a gratuitous newline.
r269560:
Unset potentially conflicting variables in load_chroot_env()
and load_target_env().
r269561:
Make global variables global, and accessible outside of
the functions within which they were once defined.
r269628:
Remove XDEV/XDEV_ARCH evaluation if EMBEDDEDBUILD is set.
r269629:
In arm/release.sh, switch TARGET/TARGET_ARCH back to the
original XDEV/XDEV_ARCH make(1) variables.
In theory, this should have been a no-op, but the TARGET and
TARGET_ARCH are now unset in load_target_env() to avoid
collision with the chroot userland.
r269630:
Export variables in the arm/*.conf files because they
need to be passed through release.sh to arm/release.sh.
Set MK_TESTS=no for the xdev target.
r269635:
As part of the XDEV/XDEV_ARCH deprecation, the
'xdev-links' target was intentionally no longer
invoked automatically.
Invoke the xdev-links target after xdev, which
creates, for example, /usr/bin/armv6-freebsd-cc
symlink to /usr/armv6-freebsd/usr/bin/cc.
r269637:
Set TARGET and TARGET_ARCH to the XDEV and XDEV_ARCH
counterparts for the xdev and xdev-links make(1)
targets.
Sponsored by: The FreeBSD Foundation
2014-08-06 19:04:05 +00:00
|
|
|
|
2015-05-07 18:47:59 +00:00
|
|
|
arm_install_uboot() {
|
2017-11-15 19:03:06 +00:00
|
|
|
UBOOT_FILES="u-boot.bin"
|
|
|
|
RPI_FIRMWARE_FILES="bootcode.bin config.txt \
|
|
|
|
fixup.dat fixup_cd.dat fixup_db.dat fixup_x.dat \
|
2018-07-22 12:04:21 +00:00
|
|
|
start.elf start_cd.elf start_db.elf start_x.elf \
|
|
|
|
bcm2708-rpi-0-w.dtb bcm2708-rpi-b-plus.dtb bcm2708-rpi-b.dtb \
|
|
|
|
bcm2708-rpi-cm.dtb"
|
2015-05-09 21:08:12 +00:00
|
|
|
FATMOUNT="${DESTDIR%${KERNEL}}/fat"
|
2018-07-22 12:03:17 +00:00
|
|
|
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}"
|
2015-05-07 18:47:59 +00:00
|
|
|
chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
|
|
|
|
for _UF in ${UBOOT_FILES}; do
|
2015-05-09 21:08:12 +00:00
|
|
|
chroot ${CHROOTDIR} cp -p ${UBOOT_DIR}/${_UF} \
|
|
|
|
${FATMOUNT}/${_UF}
|
2015-05-07 18:47:59 +00:00
|
|
|
done
|
2017-11-15 19:03:06 +00:00
|
|
|
for _UF in ${RPI_FIRMWARE_FILES}; do
|
|
|
|
chroot ${CHROOTDIR} cp -p ${RPI_FIRMWARE_DIR}/${_UF} \
|
|
|
|
${FATMOUNT}/${_UF}
|
|
|
|
done
|
2018-07-22 12:04:21 +00:00
|
|
|
chroot ${CHROOTDIR} mkdir -p ${FATMOUNT}/overlays
|
|
|
|
for _OL in ${OVERLAYS}; do
|
|
|
|
chroot ${CHROOTDIR} cp -p ${OL_DIR}/${_OL} \
|
|
|
|
${FATMOUNT}/overlays/${_OL}
|
|
|
|
done
|
2018-03-26 18:39:38 +00:00
|
|
|
chroot ${CHROOTDIR} cp ${UBOOT_DIR}/boot.scr ${FATMOUNT}/boot.scr
|
2015-05-07 18:47:59 +00:00
|
|
|
sync
|
|
|
|
umount_loop ${CHROOTDIR}/${FATMOUNT}
|
2015-05-09 21:08:12 +00:00
|
|
|
chroot ${CHROOTDIR} rmdir ${FATMOUNT}
|
2015-05-07 18:47:59 +00:00
|
|
|
|
|
|
|
return 0
|
Merge the following from ^/projects/release-noxdev:
r269549, r269551, r269552, r269553, r269554, r269555, r269558, r269559,
r269560, r269561, r269628, r269629, r269630, r269635, r269637:
r269549:
Create a new project branch, release-noxdev, for
a sandbox workspace outside of head/ to update the
release bits for arm builds since the deprecation of
the XDEV and XDEV_ARCH make(1) variables.
r269551:
Define load_chroot_env() and load_target_env()
prototypes.
r269552:
Call load_chroot_env() and load_target_env() where
they can be mutually conflicting with regard to
TARGET, TARGET_ARCH, XDEV, and XDEV_ARCH.
r269553:
Add shebang line to arm/*.conf files since these
should be considered to be executable (albeit not
on their own) shell scripts.
r269554:
Redefine load_chroot_env() and load_target_env() in
the arm/*.conf files, and reindent.
r269555:
Simplify where load_chroot_env() and load_target_env() are
called.
r269558:
Provide example in release.conf.sample for overriding the
load_chroot_env() and load_target_env() prototypes.
r269559:
Remove a gratuitous newline.
r269560:
Unset potentially conflicting variables in load_chroot_env()
and load_target_env().
r269561:
Make global variables global, and accessible outside of
the functions within which they were once defined.
r269628:
Remove XDEV/XDEV_ARCH evaluation if EMBEDDEDBUILD is set.
r269629:
In arm/release.sh, switch TARGET/TARGET_ARCH back to the
original XDEV/XDEV_ARCH make(1) variables.
In theory, this should have been a no-op, but the TARGET and
TARGET_ARCH are now unset in load_target_env() to avoid
collision with the chroot userland.
r269630:
Export variables in the arm/*.conf files because they
need to be passed through release.sh to arm/release.sh.
Set MK_TESTS=no for the xdev target.
r269635:
As part of the XDEV/XDEV_ARCH deprecation, the
'xdev-links' target was intentionally no longer
invoked automatically.
Invoke the xdev-links target after xdev, which
creates, for example, /usr/bin/armv6-freebsd-cc
symlink to /usr/armv6-freebsd/usr/bin/cc.
r269637:
Set TARGET and TARGET_ARCH to the XDEV and XDEV_ARCH
counterparts for the xdev and xdev-links make(1)
targets.
Sponsored by: The FreeBSD Foundation
2014-08-06 19:04:05 +00:00
|
|
|
}
|