mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-08-04 21:59:11 +00:00
Make the build failed with objcopy < 2.24
The wildcard support was introduced in objcopy since binutils 2.24. However, objcopy < 2.24 never issues any warning message with the wildcard and a faulty binary will be generated. This commit makes the build failed as a notification for the usage of binutils < 2.24. Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
This commit is contained in:
parent
3285f53941
commit
929b5b762b
4
Makefile
4
Makefile
@ -3,6 +3,7 @@ LD = $(CROSS_COMPILE)ld
|
||||
OBJCOPY = $(CROSS_COMPILE)objcopy
|
||||
|
||||
ARCH = $(shell $(CC) -dumpmachine | cut -f1 -d- | sed s,i[3456789]86,ia32,)
|
||||
OBJCOPY_GTE224 = $(shell expr `$(OBJCOPY) --version |grep ^"GNU objcopy" | sed 's/^.* //g' | cut -f1-2 -d.` \>= 2.24)
|
||||
|
||||
SUBDIRS = Cryptlib lib
|
||||
|
||||
@ -127,6 +128,9 @@ endif
|
||||
FORMAT ?= --target efi-app-$(ARCH)
|
||||
|
||||
%.efi: %.so
|
||||
ifneq ($(OBJCOPY_GTE224),1)
|
||||
$(error objcopy >= 2.24 is required)
|
||||
endif
|
||||
$(OBJCOPY) -j .text -j .sdata -j .data \
|
||||
-j .dynamic -j .dynsym -j .rel* \
|
||||
-j .rela* -j .reloc -j .eh_frame \
|
||||
|
Loading…
Reference in New Issue
Block a user