aboutsummaryrefslogtreecommitdiff
path: root/release/release.sh
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2020-12-08 00:35:13 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2020-12-08 00:35:13 +0000
commit86635d499298956e08e9ac8edc4bd8cdfa5e4587 (patch)
tree180b87d0abfda88e13e64d73f01b683a047caaee /release/release.sh
parenta56ac758539049e4de721ff0ec1d57e85f9a2c8a (diff)
downloadsrc-86635d499298956e08e9ac8edc4bd8cdfa5e4587.tar.gz
src-86635d499298956e08e9ac8edc4bd8cdfa5e4587.zip
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
Notes
Notes: svn path=/head/; revision=368421
Diffstat (limited to 'release/release.sh')
-rwxr-xr-xrelease/release.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/release/release.sh b/release/release.sh
index 6e76b0cb37d1..2ed76fa31c61 100755
--- a/release/release.sh
+++ b/release/release.sh
@@ -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