From patchwork Mon Feb 24 18:05:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 236773 List-Id: U-Boot discussion From: trini at konsulko.com (Tom Rini) Date: Mon, 24 Feb 2020 13:05:35 -0500 Subject: [PATCH 1/7] misc: Add more -I$(objtree)/$(obj) lines Message-ID: <20200224180541.3654-1-trini@konsulko.com> We have a few more places where we depend at build time on generated files being found within the compiler search path. Add appropriate -I lines in these places. Signed-off-by: Tom Rini --- cmd/Makefile | 2 ++ lib/Makefile | 1 + lib/crypto/Makefile | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/cmd/Makefile b/cmd/Makefile index f1dd513a4b41..8ae0478047e9 100644 --- a/cmd/Makefile +++ b/cmd/Makefile @@ -228,3 +228,5 @@ $(obj)/license_data_size.h: $(srctree)/Licenses/gpl-2.0.txt FORCE $(call filechk,data_size) CFLAGS_ethsw.o := -Wno-enum-conversion +CFLAGS_config.o += -I$(objtree)/$(obj) +CFLAGS_license.o += -I$(objtree)/$(obj) diff --git a/lib/Makefile b/lib/Makefile index 15259d0473c4..771e4de5a183 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -127,6 +127,7 @@ obj-y += date.o # Build a fast OID lookup registry from include/linux/oid_registry.h # obj-$(CONFIG_OID_REGISTRY) += oid_registry.o +CFLAGS_oid_registry.o += -I$(objtree)/$(obj) $(obj)/oid_registry.o: $(obj)/oid_registry_data.c diff --git a/lib/crypto/Makefile b/lib/crypto/Makefile index 8267fee0a7b8..96a3910872fd 100644 --- a/lib/crypto/Makefile +++ b/lib/crypto/Makefile @@ -47,3 +47,7 @@ pkcs7_message-y := \ $(obj)/pkcs7_parser.o: $(obj)/pkcs7.asn1.h $(obj)/pkcs7.asn1.o: $(obj)/pkcs7.asn1.c $(obj)/pkcs7.asn1.h + +CFLAGS_rsa_helper.o += -I$(objtree)/$(obj) +CFLAGS_pkcs7_parser.o += -I$(objtree)/$(obj) +CFLAGS_x509_cert_parser.o += -I$(objtree)/$(obj)