summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2015-06-30 13:24:56 -0400
committerPeter Jones <pjones@redhat.com>2015-06-30 14:19:57 -0400
commit70ce2c420484ef964b6443c102bfd78c29965e10 (patch)
treeb06581a9d6522e8f442c03f93eb6fae6aef1b786 /Makefile
parent60577689ba5485ed1931752c341ec25522bb8e8a (diff)
downloadefi-boot-shim-70ce2c420484ef964b6443c102bfd78c29965e10.tar.gz
efi-boot-shim-70ce2c420484ef964b6443c102bfd78c29965e10.zip
Improve our debuginfo path print
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 547cec5e..abf34287 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,9 @@
+VERSION = 0.8
+RELEASE :=
+ifneq ($(RELEASE),"")
+ RELEASE="-$(RELEASE)"
+endif
+
CC = $(CROSS_COMPILE)gcc
LD = $(CROSS_COMPILE)ld
OBJCOPY = $(CROSS_COMPILE)objcopy
@@ -36,15 +42,18 @@ ifeq ($(ARCH),x86_64)
CFLAGS += -mno-mmx -mno-sse -mno-red-zone -nostdinc \
-maccumulate-outgoing-args \
-DEFI_FUNCTION_WRAPPER -DGNU_EFI_USE_MS_ABI \
- "-DEFI_ARCH=L\"x64\""
+ "-DEFI_ARCH=L\"x64\"" \
+ "-DDEBUGDIR=L\"/usr/lib/debug/usr/share/shim/x64-$(VERSION)$(RELEASE)/\""
endif
ifeq ($(ARCH),ia32)
CFLAGS += -mno-mmx -mno-sse -mno-red-zone -nostdinc \
-maccumulate-outgoing-args -m32 \
- "-DEFI_ARCH=L\"ia32\""
+ "-DEFI_ARCH=L\"ia32\"" \
+ "-DDEBUGDIR=L\"/usr/lib/debug/usr/share/shim/ia32-$(VERSION)$(RELEASE)/\""
endif
ifeq ($(ARCH),aarch64)
CFLAGS += "-DEFI_ARCH=L\"aa64\""
+ "-DDEBUGDIR=L\"/usr/lib/debug/usr/share/shim/aa64-$(VERSION)$(RELEASE)/\""
endif
ifneq ($(origin VENDOR_CERT_FILE), undefined)
@@ -56,8 +65,6 @@ endif
LDFLAGS = --hash-style=sysv -nostdlib -znocombreloc -T $(EFI_LDS) -shared -Bsymbolic -L$(EFI_PATH) -L$(LIB_PATH) -LCryptlib -LCryptlib/OpenSSL $(EFI_CRT_OBJS) --build-id=sha1
-VERSION = 0.8
-
TARGET = shim.efi MokManager.efi.signed fallback.efi.signed
OBJS = shim.o netboot.o cert.o replacements.o version.o
KEYS = shim_cert.h ocsp.* ca.* shim.crt shim.csr shim.p12 shim.pem shim.key shim.cer