aboutsummaryrefslogtreecommitdiff
path: root/release/tools
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2018-08-24 15:01:22 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2018-08-24 15:01:22 +0000
commit66e380123e9dc8fa4ddead9f3361b0a7cbe68de9 (patch)
tree2905f5357d48c6d0d19a2de124749c4cc7913aa8 /release/tools
parenta9e5047fa679232941e8f21ee74abb8a837af59f (diff)
downloadsrc-66e380123e9dc8fa4ddead9f3361b0a7cbe68de9.tar.gz
src-66e380123e9dc8fa4ddead9f3361b0a7cbe68de9.zip
release: arm: Setup overlays if board config defines some
Approved by: re (gjb)
Notes
Notes: svn path=/head/; revision=338295
Diffstat (limited to 'release/tools')
-rw-r--r--release/tools/arm.subr12
1 files changed, 12 insertions, 0 deletions
diff --git a/release/tools/arm.subr b/release/tools/arm.subr
index 48211d859d33..b39f140b18b0 100644
--- a/release/tools/arm.subr
+++ b/release/tools/arm.subr
@@ -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