jiazhang0/meta-secure-core

shim_git.bb & efitools.inc Compile Failing

TheNageek opened this issue · 0 comments

Patch file://0001-console.c-Fix-compilation-against-latest-usr-include.patch not being applied correctly resulting in the below error.

| console.c:363:5: error: 'EFI_WARN_UNKNOWN_GLYPH' undeclared here (not in a function); did you mean 'EFI_WARN_UNKOWN_GLYPH'?
|   {  EFI_WARN_UNKNOWN_GLYPH,     L"Warning Unknown Glyph"},
|      ^~~~~~~~~~~~~~~~~~~~~~
|      EFI_WARN_UNKOWN_GLYPH
| <builtin>: recipe for target 'console.o' failed
| make[1]: *** [console.o] Error 1
| make[1]: Leaving directory '/home/kwalsh/workspace/images/hawkeye_secure/build/tmp/work/corei7-64-poky-linux/shim/12+gitAUTOINC+5202f80c32-r0/git/lib'
| Makefile:223: recipe for target 'lib/lib.a' failed
| make: *** [lib/lib.a] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/kwalsh/workspace/images/hawkeye_secure/build/tmp/work/corei7-64-poky-linux/shim/12+gitAUTOINC+5202f80c32-r0/temp/log.do_compile.24762)
ERROR: Task (/home/kwalsh/workspace/images/hawkeye_secure/sources/meta-secure-core/meta-efi-secure-boot/recipes-bsp/shim/shim_git.bb:do_compile) failed with exit code '1'

However the following works file://0001-console.c-Fix-compilation-against-latest-usr-include.patch;apply=0 when used in shim_git.bb and efitools.inc. Also 100% sure what apply=0 syntax means, maybe don't apply this patch? If so, not sure this workaround is valid.

Note on build, attempting to build a warrior build using the gatesgarth branch from this repository.