Date: Fri, 24 Aug 2018 15:01:23 +0000 (UTC) From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r338295 - head/release/tools Message-ID: <201808241501.w7OF1NA4013003@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808241501.w7OF1NA4013003>