summaryrefslogtreecommitdiffstats
path: root/common/recipes-bsp/gnu-efi/gnu-efi/cross-compile-support.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-bsp/gnu-efi/gnu-efi/cross-compile-support.patch')
-rw-r--r--common/recipes-bsp/gnu-efi/gnu-efi/cross-compile-support.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/common/recipes-bsp/gnu-efi/gnu-efi/cross-compile-support.patch b/common/recipes-bsp/gnu-efi/gnu-efi/cross-compile-support.patch
new file mode 100644
index 0000000..221f80e
--- /dev/null
+++ b/common/recipes-bsp/gnu-efi/gnu-efi/cross-compile-support.patch
@@ -0,0 +1,31 @@
1Add cross compile support
2
3Upstream-Status: Submitted [Maintainer directly]
4
5All the user to specify the build variables in the environment.
6
7Signed-off-by: Darren Hart <dvhart@Linux.intel.com>
8
9Index: gnu-efi-3.0/Make.defaults
10===================================================================
11--- gnu-efi-3.0.orig/Make.defaults
12+++ gnu-efi-3.0/Make.defaults
13@@ -54,12 +55,12 @@ LDFLAGS = -nostdlib
14 INSTALL = install
15 prefix = /usr/bin/
16
17-CC = $(prefix)gcc
18-AS = $(prefix)as
19-LD = $(prefix)ld
20-AR = $(prefix)ar
21-RANLIB = $(prefix)ranlib
22-OBJCOPY = $(prefix)objcopy
23+CC := $(prefix)gcc
24+AS := $(prefix)as
25+LD := $(prefix)ld
26+AR := $(prefix)ar
27+RANLIB := $(prefix)ranlib
28+OBJCOPY := $(prefix)objcopy
29
30 ifeq ($(ARCH),ia64)
31 CFLAGS += -mfixed-range=f32-f127