Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame^] | 1 | From a9115d9e6f0f62d6bb735ce3698858d1f89f8d73 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 | Upstream-Status: Pending |
| 12 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
| 13 | |
| 14 | --- |
| 15 | src/Makefile | 4 ++-- |
| 16 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 17 | |
| 18 | diff --git a/src/Makefile b/src/Makefile |
| 19 | index 0c16597..dcc7fc8 100644 |
| 20 | --- a/src/Makefile |
| 21 | +++ b/src/Makefile |
| 22 | @@ -40,8 +40,8 @@ abicheck : $(patsubst %.so,%.abicheck,$(LIBTARGETS)) |
| 23 | ./guid-symbols.c : include/efivar/efivar-guids.h |
| 24 | ./guids.bin : include/efivar/efivar-guids.h |
| 25 | ./names.bin : include/efivar/efivar-guids.h |
| 26 | -include/efivar/efivar-guids.h : makeguids guids.txt |
| 27 | - ./makeguids guids.txt guids.bin names.bin \ |
| 28 | +include/efivar/efivar-guids.h : guids.txt |
| 29 | + makeguids guids.txt guids.bin names.bin \ |
| 30 | guid-symbols.c include/efivar/efivar-guids.h |
| 31 | |
| 32 | makeguids : CPPFLAGS+=-DEFIVAR_BUILD_ENVIRONMENT |