Skip to contentSkip to conversation

efivar: make CC_FOR_BUILD value complete

PATCH Superseded [email protected] 1 participant 2 messages Sep 27, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 efivar: make CC_FOR_BUILD value complete

From: Mingli Yu <[email protected]>

Issue: LIN1018-2452

Update CC_FOR_BUILD=${BUILD_CC} to
CC_FOR_BUILD="${BUILD_CC}" to guarantee
the BUILD_CC value passed to CC_FOR_BUILD
completely to avoid below build failure
when ccache enabled:

| NOTE: make -j 48 -C src makeguids CC_FOR_BUILD=ccache gcc
| make: Entering directory '/mybuild/tmp-glibc/work/x86_64-linux/efivar-native/0.36-r0/git/src'
| ccache -isystem/mybuild/tmp-glibc/work/x86_64-linux/efivar-native/0.36-r0/recipe-sysroot-native/usr/include -O2 -pipe ... -DEFIVAR_BUILD_ENVIRONMENT -o makeguids makeguids.c guid.c -ldl
| ccache: invalid option -- 'i'

(LOCAL REV: NOT UPSTREAM) -- Send to oe-devel 20180927

---
 meta-oe/recipes-bsp/efivar/efivar_0.36.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-bsp/efivar/efivar_0.36.bb +1 -1
index dfb46c2..20588ee 100644
@@ -29,7 +29,7 @@ do_compile_prepend() {
 }
 
 do_compile_class-native() {
-    oe_runmake -C src makeguids CC_FOR_BUILD=${BUILD_CC}
+    oe_runmake -C src makeguids CC_FOR_BUILD="${BUILD_CC}"
 }
 
 do_install() {
Signature · 1 line
2.7.4
#1 lore raw

PATCH v2 1/1 efivar: make CC_FOR_BUILD value complete

From: Mingli Yu <[email protected]>

Update CC_FOR_BUILD=${BUILD_CC} to
CC_FOR_BUILD="${BUILD_CC}" to guarantee
the BUILD_CC value passed to CC_FOR_BUILD
completely to avoid below build failure
when ccache enabled:

| NOTE: make -j 48 -C src makeguids CC_FOR_BUILD=ccache gcc
| make: Entering directory '/mybuild/tmp-glibc/work/x86_64-linux/efivar-native/0.36-r0/git/src'
| ccache -isystem/mybuild/tmp-glibc/work/x86_64-linux/efivar-native/0.36-r0/recipe-sysroot-native/usr/include -O2 -pipe ... -DEFIVAR_BUILD_ENVIRONMENT -o makeguids makeguids.c guid.c -ldl
| ccache: invalid option -- 'i'
---
 meta-oe/recipes-bsp/efivar/efivar_0.36.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-bsp/efivar/efivar_0.36.bb +1 -1
index dfb46c2..20588ee 100644
@@ -29,7 +29,7 @@ do_compile_prepend() {
 }
 
 do_compile_class-native() {
-    oe_runmake -C src makeguids CC_FOR_BUILD=${BUILD_CC}
+    oe_runmake -C src makeguids CC_FOR_BUILD="${BUILD_CC}"
 }
 
 do_install() {
Signature · 1 line
2.7.4