svn commit: r368421 - in head/release: . tools

Mitchell Horne mhorne at FreeBSD.org
Tue Dec 8 00:35:13 UTC 2020


Author: mhorne
Date: Tue Dec  8 00:35:13 2020
New Revision: 368421
URL: https://svnweb.freebsd.org/changeset/base/368421

Log:
  release.sh: add support for RISC-V embedded builds
  
  Since the few existing RISC-V hardware platforms are single board
  computers, we can piggyback off of arm/arm64's embedded build support
  for generating SD card images.
  
  I don't see a pressing need to change the naming in this file at this
  time.
  
  Reviewed by:	gjb, manu
  Differential Revision:	https://reviews.freebsd.org/D27043

Modified:
  head/release/release.sh
  head/release/tools/arm.subr

Modified: head/release/release.sh
==============================================================================
--- head/release/release.sh	Tue Dec  8 00:05:43 2020	(r368420)
+++ head/release/release.sh	Tue Dec  8 00:35:13 2020	(r368421)
@@ -144,7 +144,7 @@ env_check() {
 		WITH_COMPRESSED_IMAGES=
 		NODOC=yes
 		case ${EMBEDDED_TARGET}:${EMBEDDED_TARGET_ARCH} in
-			arm:arm*|arm64:aarch64)
+			arm:arm*|arm64:aarch64|riscv:riscv64*)
 				chroot_build_release_cmd="chroot_arm_build_release"
 				;;
 			*)
@@ -400,6 +400,9 @@ efi_boot_name()
 		amd64)
 			echo "bootx64.efi"
 			;;
+		riscv)
+			echo "bootriscv64.efi"
+			;;
 	esac
 }
 
@@ -407,7 +410,7 @@ efi_boot_name()
 chroot_arm_build_release() {
 	load_target_env
 	case ${EMBEDDED_TARGET} in
-		arm|arm64)
+		arm|arm64|riscv)
 			if [ -e "${RELENGDIR}/tools/arm.subr" ]; then
 				. "${RELENGDIR}/tools/arm.subr"
 			fi

Modified: head/release/tools/arm.subr
==============================================================================
--- head/release/tools/arm.subr	Tue Dec  8 00:05:43 2020	(r368420)
+++ head/release/tools/arm.subr	Tue Dec  8 00:35:13 2020	(r368421)
@@ -27,7 +27,7 @@
 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 # SUCH DAMAGE.
 #
-# Common subroutines used to build arm SD card images.
+# Common subroutines used to build arm, arm64, or RISC-V SD card images.
 #
 # $FreeBSD$
 #
@@ -265,11 +265,11 @@ arm_install_boot() {
 }
 
 arm_install_uboot() {
-	# Override in the arm/KERNEL.conf file.
+	# Override in the ${EMBEDDED_TARGET}/${BOARDNAME}.conf file.
 
 	return 0
 }
 
 arm_do_quirk() {
-	# Override in the arm{,64}/BOARD.conf file.
+	# Override in the ${EMBEDDED_TARGET}/${BOARDNAME}.conf file.
 }


More information about the svn-src-head mailing list