summaryrefslogtreecommitdiffstats
path: root/lib/efi_loader/Makefile
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-06-28 12:45:30 +0200
committerAlexander Graf <agraf@suse.de>2018-07-25 14:59:44 +0200
commit0b386537a51d5ac6e2da022ade49424ecc50ffa1 (patch)
treef0c37ee34c1b38bbb956756b1dc20bfbffb2434b /lib/efi_loader/Makefile
parent71c846ab84c81b0ef7786ee5ea02bb05d5ca5bb8 (diff)
downloadu-boot-0b386537a51d5ac6e2da022ade49424ecc50ffa1.tar.gz
u-boot-0b386537a51d5ac6e2da022ade49424ecc50ffa1.tar.xz
u-boot-0b386537a51d5ac6e2da022ade49424ecc50ffa1.zip
efi_loader: provide firmware revision
Provide a firmware revision in the system table using the Makefile variables VERSION and PATCHLEVEL, e.g. 0x20180700 for v2018.07. Correct the type of the firmware vendor. It is a u16* pointer. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib/efi_loader/Makefile')
-rw-r--r--lib/efi_loader/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/efi_loader/Makefile b/lib/efi_loader/Makefile
index d6402c4615..1ffbf52a89 100644
--- a/lib/efi_loader/Makefile
+++ b/lib/efi_loader/Makefile
@@ -6,6 +6,9 @@
# This file only gets included with CONFIG_EFI_LOADER set, so all
# object inclusion implicitly depends on it
+CFLAGS_efi_boottime.o += \
+ -DFW_VERSION="0x$(VERSION)" \
+ -DFW_PATCHLEVEL="0x$(PATCHLEVEL)"
CFLAGS_helloworld.o := $(CFLAGS_EFI) -Os -ffreestanding
CFLAGS_REMOVE_helloworld.o := $(CFLAGS_NON_EFI) -Os