Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | From 7036e8b0dca61432970789e5397b6fb02b362c2b Mon Sep 17 00:00:00 2001 |
| 2 | From: Kai Kang <kai.kang@windriver.com> |
| 3 | Date: Fri, 25 Sep 2015 18:14:31 +0800 |
| 4 | Subject: [PATCH] efivar: fix for cross compile |
| 5 | |
| 6 | It builds and calls elf file makeguids to generate a header file which |
| 7 | doesn't work for cross compile. Fix it. |
| 8 | |
| 9 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
| 10 | --- |
| 11 | src/Makefile | 4 ++-- |
| 12 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 13 | |
| 14 | diff --git a/src/Makefile b/src/Makefile |
| 15 | index 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 | -- |
| 30 | 2.6.0.rc2.10.gf4d9753 |
| 31 | |