efi_selftest: Ensure we include the object directory for generated headers
PATCH 1/1 efi_selftest: Ensure we include the object directory for generated headers
The current rules for generating -I lines for objects gives us both -I/full/src/path/lib/efi_selftest and -Ilib/efi_selftest. However, if we re-sync the Kbuild logic we no longer get the latter implicitly. We will need to be explicit in such cases, so do so.
--- lib/efi_selftest/Makefile | 4 ++++ 1 file changed, 4 insertions(+)
lib/efi_selftest/Makefile +4 -0
@@ -12,6 +12,10 @@ CFLAGS_efi_selftest_miniapp_exit.o := $(CFLAGS_EFI) -Os -ffreestanding CFLAGS_REMOVE_efi_selftest_miniapp_exit.o := $(CFLAGS_NON_EFI) CFLAGS_efi_selftest_miniapp_return.o := $(CFLAGS_EFI) -Os -ffreestanding CFLAGS_REMOVE_efi_selftest_miniapp_return.o := $(CFLAGS_NON_EFI) +CFLAGS_efi_selftest_exception.o += -I$(objtree)/$(obj) +CFLAGS_efi_selftest_loadimage.o += -I$(objtree)/$(obj) +CFLAGS_efi_selftest_startimage_exit.o += -I$(objtree)/$(obj) +CFLAGS_efi_selftest_startimage_return.o += -I$(objtree)/$(obj) obj-y += \ efi_selftest.o \
Signature · 1 line
2.17.1
PATCH 1/1 efi_selftest: Ensure we include the object directory for generated headers
Quoted 8 lines · Tom Rini
The current rules for generating -I lines for objects gives us both -I/full/src/path/lib/efi_selftest and -Ilib/efi_selftest. However, if we re-sync the
Kbuildlogic we no longer get the latter implicitly. We will need to be explicit in such cases, so do so.Cc Heinrich Schuchardt <[email protected]>Cc Masahiro Yamada <[email protected]>Signed-off-by Tom Rini <[email protected]>
Hello Tom,
yes, in lib/efi_selftest we have generated includes, so -Ilib/efi_selftest is relevant.
Do you have a git branch with the Kconfig changes for reference and testing?
Quoted 20 lines
--- lib/efi_selftest/Makefile | 4 ++++ 1 file changed, 4 insertions(+)lib/efi_selftest/Makefile +4
-0@@ -12,6 +12,10 @@ CFLAGS_efi_selftest_miniapp_exit.o := $(CFLAGS_EFI) -Os -ffreestanding CFLAGS_REMOVE_efi_selftest_miniapp_exit.o := $(CFLAGS_NON_EFI) CFLAGS_efi_selftest_miniapp_return.o := $(CFLAGS_EFI) -Os -ffreestanding CFLAGS_REMOVE_efi_selftest_miniapp_return.o := $(CFLAGS_NON_EFI) +CFLAGS_efi_selftest_exception.o += -I$(objtree)/$(obj) +CFLAGS_efi_selftest_loadimage.o += -I$(objtree)/$(obj) +CFLAGS_efi_selftest_startimage_exit.o += -I$(objtree)/$(obj) +CFLAGS_efi_selftest_startimage_return.o += -I$(objtree)/$(obj) obj-y += \ efi_selftest.o \
PATCH 1/1 efi_selftest: Ensure we include the object directory for generated headers
Quoted 10 lines · Heinrich Schuchardt
Quoted 8 lines · Tom Rini
The current rules for generating -I lines for objects gives us both -I/full/src/path/lib/efi_selftest and -Ilib/efi_selftest. However, if we re-sync the
Kbuildlogic we no longer get the latter implicitly. We will need to be explicit in such cases, so do so.Cc Heinrich Schuchardt <[email protected]>Cc Masahiro Yamada <[email protected]>Signed-off-by Tom Rini <[email protected]>
Quoted 6 lines
Hello Tom,
yes, in
lib/efi_selftestwe have generated includes, so -Ilib/efi_selftest is relevant.Do you have a git branch with the
Kconfigchanges for reference and testing?
Currently WIP/kbuild-resync-v1-v4.18 but please bear in mind I'm (a) rebase it and (b) it doesn't even build sandbox_spl right now (more of this type of error, but my non-CI world build will finish up shortly and I'll grab all of the places I need to make a fix like this there).
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200221/3dcacfd8/attachment.sig>
PATCH 1/1 efi_selftest: Ensure we include the object directory for generated headers
Quoted 16 lines · Tom Rini
Quoted 15 lines · Heinrich Schuchardt
Quoted 8 lines · Tom Rini
The current rules for generating -I lines for objects gives us both -I/full/src/path/lib/efi_selftest and -Ilib/efi_selftest. However, if we re-sync the
Kbuildlogic we no longer get the latter implicitly. We will need to be explicit in such cases, so do so.Cc Heinrich Schuchardt <[email protected]>Cc Masahiro Yamada <[email protected]>Signed-off-by Tom Rini <[email protected]>Hello Tom,
yes, in
lib/efi_selftestwe have generated includes, so -Ilib/efi_selftest is relevant.
Quoted 7 lines
Quoted 1 line
Do you have a git branch with the
Kconfigchanges for reference and testing?Currently WIP/kbuild-resync-v1-v4.18 but please bear in mind I'm (a) rebase it and (b) it doesn't even build
sandbox_splright now (more of this type of error, but my non-CI world build will finish up shortly and I'll grab all of the places I need to make a fix like this there).
I was able to reproduce that the proposed change for lib/efi_selftest/Makefile is needed for out of tree building.
So the patch is fine with me.
Best regards
Heinrich
PATCH 1/1 efi_selftest: Ensure we include the object directory for generated headers
In reply to Tom RiniHi Tom,
Quoted 19 lines · Tom Rini
Quoted 10 lines · Heinrich Schuchardt
Quoted 8 lines · Tom Rini
The current rules for generating -I lines for objects gives us both -I/full/src/path/lib/efi_selftest and -Ilib/efi_selftest. However, if we re-sync the
Kbuildlogic we no longer get the latter implicitly. We will need to be explicit in such cases, so do so.Cc Heinrich Schuchardt <[email protected]>Cc Masahiro Yamada <[email protected]>Signed-off-by Tom Rini <[email protected]>Quoted 6 lines
Hello Tom,
yes, in
lib/efi_selftestwe have generated includes, so -Ilib/efi_selftest is relevant.Do you have a git branch with the
Kconfigchanges for reference and testing?
Quoted 7 lines
Currently WIP/kbuild-resync-v1-v4.18 but please bear in mind I'm (a) rebase it and (b) it doesn't even build
sandbox_splright now (more of this type of error, but my non-CI world build will finish up shortly and I'll grab all of the places I need to make a fix like this there).--
Tom
This is one way to suppress the build error for O= builds.
But, please notice this is caused by the re-sync mistake.
You partially imported
commit db547ef1906400eb34682e43035dd4d81b9fdcfb
from Linux.
You imported the change in scripts/Kbuild.include
but did not the change in scripts/Makefile.lib
That's why you needed to add -I$(objtree)/$(obj)
all over the places.
Signature · 2 lines
Best Regards Masahiro Yamada
PATCH 1/1 efi_selftest: Ensure we include the object directory for generated headers
Quoted 41 lines · Masahiro Yamada
Hi Tom,
Quoted 19 lines · Tom Rini
Quoted 10 lines · Heinrich Schuchardt
Quoted 8 lines · Tom Rini
The current rules for generating -I lines for objects gives us both -I/full/src/path/lib/efi_selftest and -Ilib/efi_selftest. However, if we re-sync the
Kbuildlogic we no longer get the latter implicitly. We will need to be explicit in such cases, so do so.Cc Heinrich Schuchardt <[email protected]>Cc Masahiro Yamada <[email protected]>Signed-off-by Tom Rini <[email protected]>Quoted 6 lines
Hello Tom,
yes, in
lib/efi_selftestwe have generated includes, so -Ilib/efi_selftest is relevant.Do you have a git branch with the
Kconfigchanges for reference and testing?Quoted 7 lines
Currently WIP/kbuild-resync-v1-v4.18 but please bear in mind I'm (a) rebase it and (b) it doesn't even build
sandbox_splright now (more of this type of error, but my non-CI world build will finish up shortly and I'll grab all of the places I need to make a fix like this there).--
TomThis is one way to suppress the build error for O= builds.
But, please notice this is caused by the re-sync mistake.
You partially imported
commitdb547ef1906400eb34682e43035dd4d81b9fdcfb
from Linux.
Quoted 5 lines
You imported the change in
scripts/Kbuild.include
but did not the change inscripts/Makefile.libThat's why you needed to add -I$(objtree)/$(obj)
all over the places.
Ah, I see what happened now too. It was that db547ef19064 didn't apply cleanly as we were missing two previous changes in that area and in hunting down and verifying those changes I missed the second hunk. For the other two changes, I'll verify those were only to scripts/Kbuild.include and fix it up. Thanks again!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200226/8d60b8b8/attachment.sig>