efibootmgr: Pass correct flags to compiler from pkg-config
PATCH 1/1 efibootmgr: Pass correct flags to compiler from pkg-config
efivar.h is in usr/include/efirvar directory so it should be added to include search path via -I to compiler cmdline to fix
make[1]: *** No rule to make target 'efivar.h', needed by 'efibootmgr.o'. Stop. | make[1]: *** Waiting for unfinished jobs....
--- meta/recipes-bsp/efibootmgr/efibootmgr_17.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
meta/recipes-bsp/efibootmgr/efibootmgr_17.bb +1 -2
@@ -22,8 +22,7 @@ inherit pkgconfig # The directory under the ESP that the default bootloader is found in. When # wic uses a subdirectory, this should use the same one too. EFIDIR ?= "/" - -EXTRA_OEMAKE += "'EFIDIR=${EFIDIR}'" +EXTRA_OEMAKE += "'EFIDIR=${EFIDIR}' 'CFLAGS=${CFLAGS} `pkg-config --cflags efivar`'" CFLAGS += " -Wno-error"
Signature · 1 line
2.22.0
So why does this build for me?
Ross
Quoted 34 lines · Khem Raj
efivar.his inusr/include/efirvardirectory so it should be added to include search path via -I to compiler cmdline to fixmake[1]: *** No rule to make target '
efivar.h', needed by 'efibootmgr.o'. Stop. | make[1]: *** Waiting for unfinished jobs....Signed-off-by Khem Raj <[email protected]>--- meta/recipes-bsp/efibootmgr/efibootmgr_17.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)meta/recipes-bsp/efibootmgr/efibootmgr_17.bb +1
-3@@ -22,8 +22,7 @@ inherit pkgconfig # The directory under the ESP that the default bootloader is found in. When # wic uses a subdirectory, this should use the same one too. EFIDIR ?= "/" - -EXTRA_OEMAKE += "'EFIDIR=${EFIDIR}'" +EXTRA_OEMAKE += "'EFIDIR=${EFIDIR}' 'CFLAGS=${CFLAGS} `pkg-config --cflags efivar`'" CFLAGS += " -Wno-error" --2.22.0
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 2 lines · Ross
So why does this build for me?
This happens when TOOLCHAIN = "clang" which is when using meta-clang when using TOOLCHAIN = "gcc" all works
Quoted 38 lines
Ross
Quoted 34 lines · Khem Raj
efivar.his inusr/include/efirvardirectory so it should be added to include search path via -I to compiler cmdline to fixmake[1]: *** No rule to make target '
efivar.h', needed by 'efibootmgr.o'. Stop. | make[1]: *** Waiting for unfinished jobs....Signed-off-by Khem Raj <[email protected]>--- meta/recipes-bsp/efibootmgr/efibootmgr_17.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)meta/recipes-bsp/efibootmgr/efibootmgr_17.bb +1
-3@@ -22,8 +22,7 @@ inherit pkgconfig # The directory under the ESP that the default bootloader is found in. When # wic uses a subdirectory, this should use the same one too. EFIDIR ?= "/" - -EXTRA_OEMAKE += "'EFIDIR=${EFIDIR}'" +EXTRA_OEMAKE += "'EFIDIR=${EFIDIR}' 'CFLAGS=${CFLAGS} `pkg-config --cflags efivar`'" CFLAGS += " -Wno-error" --2.22.0
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core