@@ -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)
@@ -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
@@ -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)
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 <trini at konsulko.com> --- cmd/Makefile | 2 ++ lib/Makefile | 1 + lib/crypto/Makefile | 4 ++++ 3 files changed, 7 insertions(+)