blob: 4bd7d958aedd85354bfbfc82d7cc5439b6c8d0eb [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001From 7036e8b0dca61432970789e5397b6fb02b362c2b Mon Sep 17 00:00:00 2001
2From: Kai Kang <kai.kang@windriver.com>
3Date: Fri, 25 Sep 2015 18:14:31 +0800
4Subject: [PATCH] efivar: fix for cross compile
5
6It builds and calls elf file makeguids to generate a header file which
7doesn't work for cross compile. Fix it.
8
9Signed-off-by: Kai Kang <kai.kang@windriver.com>
10---
11 src/Makefile | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
13
14diff --git a/src/Makefile b/src/Makefile
15index 6eac858..ef4eb1d 100644
16--- a/src/Makefile
17+++ b/src/Makefile
18@@ -65,8 +65,8 @@ makeguids.o : makeguids.c
19 makeguids : makeguids.o fakeguid.o
20 $(CC) $(cflags) -o $@ $^ -ldl
21
22-include/efivar/efivar-guids.h : makeguids guids.txt
23- ./makeguids guids.txt guids.bin names.bin guid-symbols.S $@
24+include/efivar/efivar-guids.h : guids.txt
25+ makeguids guids.txt guids.bin names.bin guid-symbols.S $@
26
27 guidlist.o : guids.S include/efivar/efivar-guids.h
28 $(CC) $(cflags) -c -o guidlist.o guids.S
29--
302.6.0.rc2.10.gf4d9753
31