Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/evbarm Create a bootable El Torito installation ISO.
details: https://anonhg.NetBSD.org/src/rev/bcd50c15d418
branches: trunk
changeset: 977002:bcd50c15d418
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Oct 11 14:24:50 2020 +0000
description:
Create a bootable El Torito installation ISO.
diffstat:
distrib/evbarm/Makefile | 8 +++++++-
distrib/evbarm/isoimage/Makefile | 15 +++++++++++++++
distrib/evbarm/isoimage/Makefile.cdrom | 33 +++++++++++++++++++++++++++++++++
distrib/evbarm/isoimage/boot.cfg.in | 8 ++++++++
4 files changed, 63 insertions(+), 1 deletions(-)
diffs (97 lines):
diff -r 8664c72e7bc3 -r bcd50c15d418 distrib/evbarm/Makefile
--- a/distrib/evbarm/Makefile Sun Oct 11 14:24:31 2020 +0000
+++ b/distrib/evbarm/Makefile Sun Oct 11 14:24:50 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2020/05/28 15:27:59 jmcneill Exp $
+# $NetBSD: Makefile,v 1.13 2020/10/11 14:24:50 jmcneill Exp $
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
@@ -9,6 +9,9 @@
.if ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "earmv7hf"
SUBDIR+= installimage
.endif
+.if ${MACHINE_ARCH} == "aarch64"
+SUBDIR+= isoimage
+.endif
TARGETS+= release
.if ${MACHINE_CPU} == "arm"
@@ -19,6 +22,9 @@
${RELEASE_INSTALL} ${MDECBOOT} ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation
.endif
+iso_image:
+ ${MAKEDIRTARGET} isoimage iso_image
+
install_image:
${MAKEDIRTARGET} installimage install_image
diff -r 8664c72e7bc3 -r bcd50c15d418 distrib/evbarm/isoimage/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/evbarm/isoimage/Makefile Sun Oct 11 14:24:50 2020 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2020/10/11 14:24:50 jmcneill Exp $
+
+.include <bsd.own.mk>
+.include "${.CURDIR}/Makefile.cdrom"
+
+CDBASE= evbarm-${MACHINE_ARCH}cd # gives ${CDBASE}.iso
+CDRELEASE= true # include $RELEASEDIR/$RELEASEMACHINEDIR
+CDRELEASE_NODEBUG= true
+CLEANFILES+= boot.cfg
+
+prepare_md_post:
+ ${TOOL_SED} "s/@@VERSION@@/${DISTRIBVER}/" \
+ < ${.CURDIR}/boot.cfg.in > boot.cfg
+
+.include "${.CURDIR}/../../common/Makefile.bootcd"
diff -r 8664c72e7bc3 -r bcd50c15d418 distrib/evbarm/isoimage/Makefile.cdrom
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/evbarm/isoimage/Makefile.cdrom Sun Oct 11 14:24:50 2020 +0000
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile.cdrom,v 1.1 2020/10/11 14:24:50 jmcneill Exp $
+
+.include <bsd.own.mk>
+.include <bsd.endian.mk>
+
+SYSINSTDIR!= cd ${.CURDIR}/../../../usr.sbin/sysinst/arch/${MACHINE} && ${PRINTOBJDIR}
+
+EFIBOOTIMG= efiboot.img
+CLEANFILES+= ${EFIBOOTIMG}
+.if ${MKREPRO_TIMESTAMP:Uno} != "no"
+MAKEFS_TIMESTAMP=-T "${MKREPRO_TIMESTAMP}"
+.endif
+
+# Need multidot for the boot loader to read kernel modules as it doesn't
+# understand rockridge.
+CDMAKEFSOPTIONS= bootimage=i386;${EFIBOOTIMG},platformid=efi,no-emul-boot
+CDRELEASE_NOISOS= true
+CD_SETS=
+
+${EFIBOOTIMG}: ${DESTDIR}/usr/mdec/bootaa64.efi
+ ${RM} -f ${EFIBOOTIMG}
+ ${RM} -rf efiboot/EFI/boot efiboot/netbsd efiboot/ramdisk.fs
+ ${MKDIR} ${MKDIRPERM} efiboot/EFI/boot
+ ${INSTALL} ${COPY} -m 0444 ${DESTDIR}/usr/mdec/bootaa64.efi efiboot/EFI/boot/
+ ${TOOL_MAKEFS} -M 1m -m 1m -B ${TARGET_ENDIANNESS} ${MAKEFS_TIMESTAMP} \
+ -t msdos -o F=12,c=1 ${EFIBOOTIMG} efiboot
+
+image_md_pre: ${EFIBOOTIMG}
+ ${RM} -f cdrom/netbsd
+ ${INSTALL} ${COPY} -m 0444 ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/netbsd-GENERIC64.gz cdrom/netbsd.gz
+ ${INSTALL} ${COPY} -m 0444 boot.cfg cdrom/boot.cfg
+ ${TOOL_GZIP_N} -d cdrom/netbsd.gz
+ ${INSTALL} ${COPY} -m 0444 ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/ramdisk/ramdisk.fs cdrom/ramdisk.fs
diff -r 8664c72e7bc3 -r bcd50c15d418 distrib/evbarm/isoimage/boot.cfg.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/evbarm/isoimage/boot.cfg.in Sun Oct 11 14:24:50 2020 +0000
@@ -0,0 +1,8 @@
+banner=Welcome to the NetBSD @@VERSION@@ installation CD
+banner================================================================================
+banner=
+banner=If you encounter a problem while booting, report a bug at
+banner=https://www.NetBSD.org/.
+menu=Install NetBSD:initrd ramdisk.fs;boot netbsd
+menu=Drop to boot prompt:prompt
+timeout=30
Home |
Main Index |
Thread Index |
Old Index