2019-11-14 14:35:45 +00:00
|
|
|
From 16d17b0d947b66ce76f79749123431b678f998df Mon Sep 17 00:00:00 2001
|
2019-11-14 14:35:45 +00:00
|
|
|
From: Peter Jones <pjones@redhat.com>
|
|
|
|
Date: Fri, 25 Oct 2019 15:42:10 -0400
|
|
|
|
Subject: [PATCH 37/45] Install all headers for all arches.
|
|
|
|
|
|
|
|
This further enables cross-builds by installing all the arches headers.
|
|
|
|
|
|
|
|
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
|
|
---
|
2019-11-14 14:35:45 +00:00
|
|
|
inc/Makefile | 17 ++++++++++-------
|
|
|
|
1 file changed, 10 insertions(+), 7 deletions(-)
|
2019-11-14 14:35:45 +00:00
|
|
|
|
|
|
|
diff --git a/inc/Makefile b/inc/Makefile
|
2019-11-14 14:35:45 +00:00
|
|
|
index 445d340f0fa..e8123fd3115 100644
|
2019-11-14 14:35:45 +00:00
|
|
|
--- a/inc/Makefile
|
|
|
|
+++ b/inc/Makefile
|
2019-11-14 14:35:45 +00:00
|
|
|
@@ -9,15 +9,18 @@ all:
|
2019-11-14 14:35:45 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
|
|
|
|
+SOURCE=$(realpath $(SRCDIR))
|
|
|
|
+DEST=$(INSTALLROOT)$(PREFIX)/include/efi
|
|
|
|
+INCLUDEDIRS=$(sort $(shell find $(SOURCE) -type d))
|
|
|
|
+
|
|
|
|
install:
|
|
|
|
- mkdir -p $(INSTALLROOT)$(PREFIX)/include/efi
|
|
|
|
- mkdir -p $(INSTALLROOT)$(PREFIX)/include/efi/protocol
|
|
|
|
- mkdir -p $(INSTALLROOT)$(PREFIX)/include/efi/$(ARCH)
|
|
|
|
- $(INSTALL) -m 644 $(SRCDIR)/*.h $(INSTALLROOT)$(PREFIX)/include/efi
|
|
|
|
- $(INSTALL) -m 644 $(SRCDIR)/protocol/*.h $(INSTALLROOT)$(PREFIX)/include/efi/protocol
|
|
|
|
- $(INSTALL) -m 644 $(SRCDIR)/$(ARCH)/*.h $(INSTALLROOT)$(PREFIX)/include/efi/$(ARCH)
|
|
|
|
+ @$(foreach d,$(INCLUDEDIRS), \
|
|
|
|
+ $(INSTALL) -v -m 755 -d $(subst $(SOURCE),$(DEST),$(d)); \
|
|
|
|
+ $(INSTALL) -v -m 644 -t $(subst $(SOURCE),$(DEST),$(d)) $(wildcard $(d)/*.h); \
|
|
|
|
+ )
|
|
|
|
|
2019-11-14 14:35:45 +00:00
|
|
|
install_compat: install
|
|
|
|
- @if [ ! -h $(DEST)/$(BFD_ARCH) ]; then $(SYMLINK) $(ARCH) $(INSTALLROOT)$(PREFIX)/include/efi/$(BFD_ARCH) ; fi
|
|
|
|
+ @if [ ! -h $(DEST)/x86_64 ]; then $(SYMLINK) x64/ $(DEST)/x86_64 ; fi
|
|
|
|
+ @if [ ! -h $(DEST)/aarch64 ]; then $(SYMLINK) aa64/ $(DEST)/aarch64 ; fi
|
|
|
|
|
2019-11-14 14:35:45 +00:00
|
|
|
include $(SRCDIR)/../Make.rules
|
|
|
|
--
|
|
|
|
2.24.1
|
|
|
|
|