head	1.10;
access;
symbols
	netbsd-11-0-RC3:1.9.12.1
	netbsd-11-0-RC2:1.9
	netbsd-11-0-RC1:1.9
	perseant-exfatfs-base-20250801:1.9
	netbsd-11:1.9.0.12
	netbsd-11-base:1.9
	netbsd-10-1-RELEASE:1.9
	perseant-exfatfs-base-20240630:1.9
	perseant-exfatfs:1.9.0.10
	perseant-exfatfs-base:1.9
	netbsd-9-4-RELEASE:1.1.6.1
	netbsd-10-0-RELEASE:1.9
	netbsd-10-0-RC6:1.9
	netbsd-10-0-RC5:1.9
	netbsd-10-0-RC4:1.9
	netbsd-10-0-RC3:1.9
	netbsd-10-0-RC2:1.9
	thorpej-ifq:1.9.0.8
	thorpej-ifq-base:1.9
	thorpej-altq-separation:1.9.0.6
	thorpej-altq-separation-base:1.9
	netbsd-10-0-RC1:1.9
	netbsd-10:1.9.0.4
	netbsd-10-base:1.9
	bouyer-sunxi-drm:1.9.0.2
	bouyer-sunxi-drm-base:1.9
	netbsd-9-3-RELEASE:1.1.6.1
	thorpej-i2c-spi-conf2:1.6.0.16
	thorpej-i2c-spi-conf2-base:1.6
	thorpej-futex2:1.6.0.14
	thorpej-futex2-base:1.6
	thorpej-cfargs2:1.6.0.12
	thorpej-cfargs2-base:1.6
	cjep_sun2x-base1:1.6
	cjep_sun2x:1.6.0.10
	cjep_sun2x-base:1.6
	cjep_staticlib_x-base1:1.6
	netbsd-9-2-RELEASE:1.1.6.1
	cjep_staticlib_x:1.6.0.8
	cjep_staticlib_x-base:1.6
	thorpej-i2c-spi-conf:1.6.0.6
	thorpej-i2c-spi-conf-base:1.6
	thorpej-cfargs:1.6.0.4
	thorpej-cfargs-base:1.6
	thorpej-futex:1.6.0.2
	thorpej-futex-base:1.6
	netbsd-9-1-RELEASE:1.1.6.1
	bouyer-xenpvh-base2:1.4
	phil-wifi-20200421:1.4
	bouyer-xenpvh-base1:1.4
	phil-wifi-20200411:1.4
	bouyer-xenpvh:1.4.0.4
	bouyer-xenpvh-base:1.4
	is-mlppp:1.4.0.2
	is-mlppp-base:1.4
	phil-wifi-20200406:1.4
	ad-namecache-base3:1.4
	netbsd-9-0-RELEASE:1.1.6.1
	netbsd-9-0-RC2:1.1.6.1
	ad-namecache-base2:1.4
	ad-namecache-base1:1.3
	ad-namecache:1.3.0.2
	ad-namecache-base:1.3
	netbsd-9-0-RC1:1.1
	phil-wifi-20191119:1.2
	netbsd-9:1.1.0.6
	netbsd-9-base:1.1
	phil-wifi:1.1.0.4
	phil-wifi-20190609:1.1
	isaki-audio2:1.1.0.2
	isaki-audio2-base:1.1;
locks; strict;
comment	@# @;


1.10
date	2026.03.20.16.24.20;	author skrll;	state Exp;
branches;
next	1.9;
commitid	wWwCVWieDLrusJyG;

1.9
date	2022.04.02.11.16.08;	author skrll;	state Exp;
branches
	1.9.4.1
	1.9.12.1;
next	1.8;
commitid	BKaSFdcyvRWOfCyD;

1.8
date	2021.10.06.10.15.20;	author jmcneill;	state Exp;
branches;
next	1.7;
commitid	SrMnoIoIJIMiHJbD;

1.7
date	2021.10.06.10.13.20;	author jmcneill;	state Exp;
branches;
next	1.6;
commitid	nKGy0D9CEhJjGJbD;

1.6
date	2020.09.08.15.36.37;	author jmcneill;	state Exp;
branches;
next	1.5;
commitid	DftEBWcp4fez6gnC;

1.5
date	2020.06.21.17.24.26;	author jmcneill;	state Exp;
branches;
next	1.4;
commitid	CDskb5QEyTf9f7dC;

1.4
date	2020.01.25.11.24.20;	author jmcneill;	state Exp;
branches;
next	1.3;
commitid	BupAYHNbX07r04UB;

1.3
date	2020.01.03.11.44.33;	author skrll;	state Exp;
branches
	1.3.2.1;
next	1.2;
commitid	AiWaLDI8KWP7PeRB;

1.2
date	2019.09.23.13.42.37;	author christos;	state Exp;
branches;
next	1.1;
commitid	6ImXbYN9X0dSK8EB;

1.1
date	2019.03.30.12.48.50;	author jmcneill;	state Exp;
branches
	1.1.4.1
	1.1.6.1;
next	;
commitid	VdMGSrMPplUm9ohB;

1.9.4.1
date	2026.04.02.18.43.45;	author martin;	state Exp;
branches;
next	;
commitid	djfSf4NabgboPpAG;

1.9.12.1
date	2026.04.02.18.39.54;	author martin;	state Exp;
branches;
next	;
commitid	ot1RI6cHhK54OpAG;

1.3.2.1
date	2020.01.25.22.38.53;	author ad;	state Exp;
branches;
next	;
commitid	ethRERRmx7bMJ7UB;

1.1.4.1
date	2019.03.30.12.48.50;	author christos;	state dead;
branches;
next	1.1.4.2;
commitid	jtc8rnCzWiEEHGqB;

1.1.4.2
date	2019.06.10.22.09.56;	author christos;	state Exp;
branches;
next	1.1.4.3;
commitid	jtc8rnCzWiEEHGqB;

1.1.4.3
date	2020.04.08.14.09.03;	author martin;	state Exp;
branches;
next	1.1.4.4;
commitid	Qli2aW9E74UFuA3C;

1.1.4.4
date	2020.04.13.08.05.20;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.1.6.1
date	2020.01.26.11.21.59;	author martin;	state Exp;
branches;
next	;
commitid	gkv5hVV0e8ANXbUB;


desc
@@


1.10
log
@PR/60069 NetBSD non booting on H3 Allwinner

Disable EFI runtime support on arm as it doesn't play nicely with many
FWs where things go south after/during the call to SetVirtualAddressMap

Also seen by cp- on Odriod-XU4
@
text
@# $NetBSD: Makefile,v 1.9 2022/04/02 11:16:08 skrll Exp $

PROG=		bootarm.efi
OBJFMT=		binary
NEWVERSWHAT=	"efiboot (arm)"
GNUEFIARCH=	arm
LIBGNUEFI_ARCH=	arm
OBJCOPY_FORMAT=	-O binary

EFIBOOT_FDT=	yes

EXTRA_SOURCES=	efibootarm.c
EXTRA_SOURCES+=	cache.S

COPTS+=		-mfloat-abi=soft -mno-unaligned-access -mlittle-endian
COPTS+=		-ffreestanding -fno-unwind-tables
AFLAGS+=	-mlittle-endian
CFLAGS+=	-DEFIBOOT_ALIGN=0x1000000
#CFLAGS+=	-DEFIBOOT_RUNTIME_ADDRESS=0x00010000U
#CFLAGS+=	-DEFIBOOT_RUNTIME_SIZE=0x7ff0000U
CFLAGS+=	-DEFIBOOT_MODULE_MACHINE=\"evbarm\"
#CPPFLAGS.efifdt.c+=   -Wconversion
LDFLAGS+=	-N -EL

.include "${.CURDIR}/../Makefile.efiboot"

release: check_RELEASEDIR
	${HOST_INSTALL_FILE} -m ${BINMODE} ${PROG} \
		${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/misc
@


1.9
log
@Update to support EFI runtime outside the kernel virtual address space
by creating an EFI RT pmap that can be activated / deactivated when
required.

Adds support for EFI RT to ARM_MMU_EXTENDED (ASID) 32-bit Arm machines.

On Arm64 the usage of pmapboot_enter is reduced and the mappings are
created much later in the boot process -- now in cpu_startup_hook.
Backward compatiblity for KVA mapped RT from old bootaa64.efi is
maintained.

Adding support to other platforms should be easier as a result.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2021/10/06 10:15:20 jmcneill Exp $
d19 2
a20 2
CFLAGS+=	-DEFIBOOT_RUNTIME_ADDRESS=0x00010000U
CFLAGS+=	-DEFIBOOT_RUNTIME_SIZE=0x7ff0000U
@


1.9.4.1
log
@Pull up following revision(s) (requested by skrll in ticket #1252):

	sys/stand/efiboot/version: revision 1.34 (patch)
	sys/stand/efiboot/bootarm/Makefile: revision 1.10

PR/60069 NetBSD non booting on H3 Allwinner

Disable EFI runtime support on arm as it doesn't play nicely with many
FWs where things go south after/during the call to SetVirtualAddressMap

Also seen by cp- on Odriod-XU4
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2022/04/02 11:16:08 skrll Exp $
d19 2
a20 2
#CFLAGS+=	-DEFIBOOT_RUNTIME_ADDRESS=0x00010000U
#CFLAGS+=	-DEFIBOOT_RUNTIME_SIZE=0x7ff0000U
@


1.9.12.1
log
@Pull up following revision(s) (requested by skrll in ticket #227):

	sys/stand/efiboot/version: revision 1.34
	sys/stand/efiboot/bootarm/Makefile: revision 1.10

PR/60069 NetBSD non booting on H3 Allwinner

Disable EFI runtime support on arm as it doesn't play nicely with many
FWs where things go south after/during the call to SetVirtualAddressMap

Also seen by cp- on Odriod-XU4
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2022/04/02 11:16:08 skrll Exp $
d19 2
a20 2
#CFLAGS+=	-DEFIBOOT_RUNTIME_ADDRESS=0x00010000U
#CFLAGS+=	-DEFIBOOT_RUNTIME_SIZE=0x7ff0000U
@


1.8
log
@Fix bootarm build.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2021/10/06 10:13:20 jmcneill Exp $
d19 2
d22 1
@


1.7
log
@efiboot: Make FDT support optional on a per-arch basis.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2020/09/08 15:36:37 jmcneill Exp $
d10 2
@


1.6
log
@Be explicit about building for little endian. This allows efiboot to be
built with the armv7be toolchain.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2020/06/21 17:24:26 jmcneill Exp $
d8 1
@


1.5
log
@Add module support.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2020/01/25 11:24:20 jmcneill Exp $
d12 3
a14 1
COPTS+=		-mfloat-abi=soft -mno-unaligned-access -ffreestanding -fno-unwind-tables
d17 1
a17 1
LDFLAGS+=	-N
@


1.4
log
@Clean up the banner so it fits in 80 columns and add some extra details
to the "version" command output.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2020/01/03 11:44:33 skrll Exp $
d14 1
@


1.3
log
@Add -mfloat-abi=soft so that gcc 8 doesn't emit FP instructions.  This
fixes bootarm.efi compiled by gcc 8.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2019/09/23 13:42:37 christos Exp $
d5 1
a5 1
NEWVERSWHAT=	"EFI Boot (arm)"
@


1.3.2.1
log
@Sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2020/01/25 11:24:20 jmcneill Exp $
d5 1
a5 1
NEWVERSWHAT=	"efiboot (arm)"
@


1.2
log
@Consistently use ${RELEASEDIR}/${RELEASEMACHINE} instead of
${RELEASEDIR}/${MACHINE} (Paul Ripke)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2019/03/30 12:48:50 jmcneill Exp $
d12 1
a12 1
COPTS+=		-mno-unaligned-access -ffreestanding -fno-unwind-tables
@


1.1
log
@Add efiboot support for 32-bit ARM targets.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2018/10/28 10:17:47 jmcneill Exp $
d20 1
a20 1
		${RELEASEDIR}/${MACHINE}/installation/misc
@


1.1.6.1
log
@Pull up following revision(s) (requested by jmcneill in ticket #653):

	sys/stand/efiboot/prompt.c: revision 1.6
	sys/stand/efiboot/boot.c: revision 1.20
	sys/stand/efiboot/bootarm/Makefile: revision 1.4
	sys/stand/efiboot/efiacpi.c: revision 1.6
	sys/stand/efiboot/exec.c: revision 1.13
	sys/stand/efiboot/Makefile.efiboot: revision 1.10
	sys/stand/efiboot/bootaa64/Makefile: revision 1.7

Fix for disappearing counters on graphics consoles

Hide the twiddle while loading efiboot plist

Clean up the banner so it fits in 80 columns and add some extra details
to the "version" command output.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2019/03/30 12:48:50 jmcneill Exp $
d5 1
a5 1
NEWVERSWHAT=	"efiboot (arm)"
@


1.1.4.1
log
@file Makefile was added on branch phil-wifi on 2019-06-10 22:09:56 +0000
@
text
@d1 20
@


1.1.4.2
log
@Sync with HEAD
@
text
@a0 20
# $NetBSD: Makefile,v 1.1 2019/03/30 12:48:50 jmcneill Exp $

PROG=		bootarm.efi
OBJFMT=		binary
NEWVERSWHAT=	"EFI Boot (arm)"
GNUEFIARCH=	arm
LIBGNUEFI_ARCH=	arm

EXTRA_SOURCES=	efibootarm.c
EXTRA_SOURCES+=	cache.S

COPTS+=		-mno-unaligned-access -ffreestanding -fno-unwind-tables
CFLAGS+=	-DEFIBOOT_ALIGN=0x1000000
LDFLAGS+=	-N

.include "${.CURDIR}/../Makefile.efiboot"

release: check_RELEASEDIR
	${HOST_INSTALL_FILE} -m ${BINMODE} ${PROG} \
		${RELEASEDIR}/${MACHINE}/installation/misc
@


1.1.4.3
log
@Merge changes from current as of 20200406
@
text
@d1 1
a1 1
# $NetBSD$
d5 1
a5 1
NEWVERSWHAT=	"efiboot (arm)"
d12 1
a12 1
COPTS+=		-mfloat-abi=soft -mno-unaligned-access -ffreestanding -fno-unwind-tables
@


1.1.4.4
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d20 1
a20 1
		${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/misc
@


