svn commit: r338295 - head/release/tools
Emmanuel Vadot
manu at FreeBSD.org
Fri Aug 24 15:01:23 UTC 2018
Author: manu
Date: Fri Aug 24 15:01:22 2018
New Revision: 338295
URL: https://svnweb.freebsd.org/changeset/base/338295
Log:
release: arm: Setup overlays if board config defines some
Approved by: re (gjb)
Modified:
head/release/tools/arm.subr
Modified: head/release/tools/arm.subr
==============================================================================
--- head/release/tools/arm.subr Fri Aug 24 15:00:36 2018 (r338294)
+++ head/release/tools/arm.subr Fri Aug 24 15:01:22 2018 (r338295)
@@ -140,6 +140,17 @@ arm64_setup_multicons() {
>> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf
}
+arm_setup_fdt_overlays() {
+ if [ -z "${FDT_OVERLAYS}" ]; then
+ return
+ fi
+
+ echo '# DTB OVERLAYS' \
+ >> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf
+ echo "fdt_overlays=\"${FDT_OVERLAYS}\"" \
+ >> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf
+}
+
arm_install_base() {
chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${DESTDIR}
eval chroot ${CHROOTDIR} make -C ${WORLDDIR} \
@@ -152,6 +163,7 @@ arm_install_base() {
arm_create_user
arm_setup_usb_otg
arm64_setup_multicons
+ arm_setup_fdt_overlays
echo '# Custom /etc/fstab for FreeBSD embedded images' \
> ${CHROOTDIR}/${DESTDIR}/etc/fstab
More information about the svn-src-all
mailing list