summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/ovmf/ovmf/0003-BaseTools-makefile-adjust-to-build-in-under-bitbake.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/ovmf/ovmf/0003-BaseTools-makefile-adjust-to-build-in-under-bitbake.patch')
-rw-r--r--meta/recipes-core/ovmf/ovmf/0003-BaseTools-makefile-adjust-to-build-in-under-bitbake.patch33
1 files changed, 22 insertions, 11 deletions
diff --git a/meta/recipes-core/ovmf/ovmf/0003-BaseTools-makefile-adjust-to-build-in-under-bitbake.patch b/meta/recipes-core/ovmf/ovmf/0003-BaseTools-makefile-adjust-to-build-in-under-bitbake.patch
index 65b5c16dcb..070b0ac5a6 100644
--- a/meta/recipes-core/ovmf/ovmf/0003-BaseTools-makefile-adjust-to-build-in-under-bitbake.patch
+++ b/meta/recipes-core/ovmf/ovmf/0003-BaseTools-makefile-adjust-to-build-in-under-bitbake.patch
@@ -1,6 +1,6 @@
1From 2320650c6d381b914fe91b2dedaa5870279a8bcf Mon Sep 17 00:00:00 2001 1From 2320650c6d381b914fe91b2dedaa5870279a8bcf Mon Sep 17 00:00:00 2001
2From: Ricardo Neri <ricardo.neri-calderon@linux.intel.com> 2From: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
3Date: Sun, 27 Nov 2016 18:42:55 -0800 3Date: Fri, 26 Jul 2019 17:34:26 -0400
4Subject: [PATCH] BaseTools: makefile: adjust to build in under bitbake 4Subject: [PATCH] BaseTools: makefile: adjust to build in under bitbake
5 5
6Prepend the build flags with those of bitbake. This is to build 6Prepend the build flags with those of bitbake. This is to build
@@ -9,31 +9,42 @@ using the bitbake native sysroot include and library directories.
9Signed-off-by: Ricardo Neri <ricardo.neri@linux.intel.com> 9Signed-off-by: Ricardo Neri <ricardo.neri@linux.intel.com>
10Upstream-Status: Pending 10Upstream-Status: Pending
11--- 11---
12 BaseTools/Source/C/Makefiles/header.makefile | 8 ++++---- 12 BaseTools/Source/C/Makefiles/header.makefile | 10 +++++-----
13 1 file changed, 4 insertions(+), 4 deletions(-) 13 1 file changed, 5 insertions(+), 5 deletions(-)
14 14
15Index: git/BaseTools/Source/C/Makefiles/header.makefile 15Index: git/BaseTools/Source/C/Makefiles/header.makefile
16=================================================================== 16===================================================================
17--- git.orig/BaseTools/Source/C/Makefiles/header.makefile 17--- git.orig/BaseTools/Source/C/Makefiles/header.makefile
18+++ git/BaseTools/Source/C/Makefiles/header.makefile 18+++ git/BaseTools/Source/C/Makefiles/header.makefile
19@@ -44,15 +44,15 @@ ARCH_INCLUDE = -I $(MAKEROOT)/Include/AA 19@@ -62,23 +62,23 @@ $(error Bad HOST_ARCH)
20 endif 20 endif
21 21
22 INCLUDE = $(TOOL_INCLUDE) -I $(MAKEROOT) -I $(MAKEROOT)/Include/Common -I $(MAKEROOT)/Include/ -I $(MAKEROOT)/Include/IndustryStandard -I $(MAKEROOT)/Common/ -I .. -I . $(ARCH_INCLUDE) 22 INCLUDE = $(TOOL_INCLUDE) -I $(MAKEROOT) -I $(MAKEROOT)/Include/Common -I $(MAKEROOT)/Include/ -I $(MAKEROOT)/Include/IndustryStandard -I $(MAKEROOT)/Common/ -I .. -I . $(ARCH_INCLUDE)
23-BUILD_CPPFLAGS = $(INCLUDE) -O2 23-BUILD_CPPFLAGS = $(INCLUDE)
24+BUILD_CPPFLAGS += $(INCLUDE) -O2 24+BUILD_CPPFLAGS += $(INCLUDE)
25
26 # keep EXTRA_OPTFLAGS last
27 BUILD_OPTFLAGS = -O2 $(EXTRA_OPTFLAGS)
28
25 ifeq ($(DARWIN),Darwin) 29 ifeq ($(DARWIN),Darwin)
26 # assume clang or clang compatible flags on OS X 30 # assume clang or clang compatible flags on OS X
27-BUILD_CFLAGS = -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib -c -g 31-BUILD_CFLAGS = -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror \
28+BUILD_CFLAGS += -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib -c -g 32+BUILD_CFLAGS += -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror \
33 -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib -g
29 else 34 else
30-BUILD_CFLAGS = -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-unused-result -nostdlib -c -g 35-BUILD_CFLAGS = -MD -fshort-wchar -fno-strict-aliasing -fwrapv \
31+BUILD_CFLAGS += -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-unused-result -nostdlib -c -g 36+BUILD_CFLAGS += -MD -fshort-wchar -fno-strict-aliasing -fwrapv \
37 -fno-delete-null-pointer-checks -Wall -Werror \
38 -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict \
39 -Wno-unused-result -nostdlib -g
32 endif 40 endif
33-BUILD_LFLAGS = 41-BUILD_LFLAGS =
34-BUILD_CXXFLAGS = -Wno-unused-result 42-BUILD_CXXFLAGS = -Wno-unused-result
35+BUILD_LFLAGS = $(LDFLAGS) 43+BUILD_LFLAGS = $(LDFLAGS)
36+BUILD_CXXFLAGS += -Wno-unused-result 44+BUILD_CXXFLAGS += -Wno-unused-result
37 45
38 ifeq ($(ARCH), IA32) 46 ifeq ($(HOST_ARCH), IA32)
39 # 47 #
48--
492.20.1
50