diff options
author | jhb <jhb@FreeBSD.org> | 2016-08-19 23:31:56 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2016-08-19 23:31:56 +0000 |
commit | c79b77667f995d731fc154644168549853d1e586 (patch) | |
tree | 8625e3f75da6b1bc8d9cabc3d0a63838648a1055 /sys/boot | |
parent | c9c29af8f1b4e33db84e9f99dba31cbb3930ce27 (diff) | |
download | FreeBSD-src-c79b77667f995d731fc154644168549853d1e586.zip FreeBSD-src-c79b77667f995d731fc154644168549853d1e586.tar.gz |
MFC 304018: Add defines needed to export SMBIOS serial numbers
Some defines needed for exporting serial numbers from the SMBIOS were
missed during integration of SMBIOS support in the EFI boot loader (r281138).
This is needed for getting the hostid set from the system hardware UUID.
PR: 206031
Diffstat (limited to 'sys/boot')
-rw-r--r-- | sys/boot/efi/loader/Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/boot/efi/loader/Makefile b/sys/boot/efi/loader/Makefile index bc38ea6..2c430ec 100644 --- a/sys/boot/efi/loader/Makefile +++ b/sys/boot/efi/loader/Makefile @@ -50,6 +50,18 @@ CFLAGS+= -DEFI_ZFS_BOOT .endif CFLAGS+= -DNO_PCI -DEFI +.if !defined(BOOT_HIDE_SERIAL_NUMBERS) +# Export serial numbers, UUID, and asset tag from loader. +CFLAGS+= -DSMBIOS_SERIAL_NUMBERS +.if defined(BOOT_LITTLE_ENDIAN_UUID) +# Use little-endian UUID format as defined in SMBIOS 2.6. +CFLAGS+= -DSMBIOS_LITTLE_ENDIAN_UUID +.elif defined(BOOT_NETWORK_ENDIAN_UUID) +# Use network-endian UUID format for backward compatibility. +CFLAGS+= -DSMBIOS_NETWORK_ENDIAN_UUID +.endif +.endif + .if ${MK_FORTH} != "no" BOOT_FORTH= yes CFLAGS+= -DBOOT_FORTH |