aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2024-02-07 16:24:07 +0000
committerMark Johnston <markj@FreeBSD.org>2024-02-07 17:27:10 +0000
commitba5777140ec41aae909456f6da77e1b336f52fcb (patch)
tree728047eac4f487a34c9364301ba8ea809dd5d978
parentc83adb1fd7db642c64f5979be8ebef38e74002eb (diff)
downloadports-ba5777140ec41aae909456f6da77e1b336f52fcb.tar.gz
ports-ba5777140ec41aae909456f6da77e1b336f52fcb.zip
sysutils/u-boot-bhyve-arm64: Fix after the 2024.01 import
Because this config is not yet upstreamed (pending arm64/bhyve/vmm actually landing in main), we have to maintain our own for the time being. Tweak the config to work around two problems which arose after the latest update: - EFI support implies SMBIOS support, which requires that we implement a finalizer, which we don't have. Since SMBIOS support isn't required, just remove it. - Don't configure EVENT, as we don't use it, and its configuration implies that we implement a hook that runs immediately before command processing. While here, incorporate a patch from jrtc27 which permits booting from images formatted using an MBR. Reviewed by: manu, jrtc27 Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D43784 Differential Revision: https://reviews.freebsd.org/D43785
-rw-r--r--sysutils/u-boot-bhyve-arm64/Makefile2
-rw-r--r--sysutils/u-boot-bhyve-arm64/files/patch-configs_bhyve__arm64__defconfig15
2 files changed, 10 insertions, 7 deletions
diff --git a/sysutils/u-boot-bhyve-arm64/Makefile b/sysutils/u-boot-bhyve-arm64/Makefile
index 380254843ab6..9b99853b5f54 100644
--- a/sysutils/u-boot-bhyve-arm64/Makefile
+++ b/sysutils/u-boot-bhyve-arm64/Makefile
@@ -1,5 +1,7 @@
MASTERDIR= ${.CURDIR}/../u-boot-master
+U_BOOT_SLAVE_PORTREVISION_2024.01= 1
+
MODEL= bhyve-arm64
BOARD_CONFIG= bhyve_arm64_defconfig
FAMILY= bhyve
diff --git a/sysutils/u-boot-bhyve-arm64/files/patch-configs_bhyve__arm64__defconfig b/sysutils/u-boot-bhyve-arm64/files/patch-configs_bhyve__arm64__defconfig
index 8a2bfad53b89..2ccbc4478473 100644
--- a/sysutils/u-boot-bhyve-arm64/files/patch-configs_bhyve__arm64__defconfig
+++ b/sysutils/u-boot-bhyve-arm64/files/patch-configs_bhyve__arm64__defconfig
@@ -1,6 +1,6 @@
--- configs/bhyve_arm64_defconfig.orig 2023-11-01 18:14:48 UTC
+++ configs/bhyve_arm64_defconfig
-@@ -0,0 +1,1495 @@
+@@ -0,0 +1,1496 @@
+#
+# Automatically generated file; DO NOT EDIT.
+# U-Boot 2023.07.02 Configuration
@@ -384,8 +384,8 @@
+# Start-up hooks
+#
+# CONFIG_CYCLIC is not set
-+CONFIG_EVENT=y
-+CONFIG_EVENT_DYNAMIC=y
++# CONFIG_EVENT is not set
++# CONFIG_EVENT_DYNAMIC is not set
+# CONFIG_EVENT_DEBUG is not set
+# CONFIG_ARCH_MISC_INIT is not set
+# CONFIG_BOARD_EARLY_INIT_F is not set
@@ -700,8 +700,8 @@
+#
+CONFIG_PARTITIONS=y
+# CONFIG_MAC_PARTITION is not set
-+# CONFIG_DOS_PARTITION is not set
-+# CONFIG_ISO_PARTITION is not set
++CONFIG_DOS_PARTITION=y
++CONFIG_ISO_PARTITION=y
+# CONFIG_AMIGA_PARTITION is not set
+CONFIG_EFI_PARTITION=y
+CONFIG_EFI_PARTITION_ENTRIES_NUMBERS=128
@@ -798,7 +798,7 @@
+# CONFIG_DM_DEBUG is not set
+# CONFIG_DM_STATS is not set
+CONFIG_DM_DEVICE_REMOVE=y
-+CONFIG_DM_EVENT=y
++# CONFIG_DM_EVENT is not set
+CONFIG_DM_STDIO=y
+CONFIG_DM_SEQ_ALIAS=y
+# CONFIG_DM_DMA is not set
@@ -1430,7 +1430,8 @@
+#
+# System tables
+#
-+CONFIG_GENERATE_SMBIOS_TABLE=y
++CONFIG_SMBIOS=n
++# CONFIG_GENERATE_SMBIOS_TABLE is not set
+# CONFIG_LIB_RATIONAL is not set
+# CONFIG_SMBIOS_PARSER is not set
+CONFIG_EFI_LOADER=y