[PATCH 09/38] uapi: check for optional files which are generated

From: Sam Ravnborg
Date: Mon Jul 14 2014 - 11:10:22 EST


In include/uapi/asm-generic/Kbuild.asm we have a few optional files
listed. The files may be provided by the architecture
or the wrapped from asm-generic may be used.
The current logic failed to check for generated wrappers.

Replace the obsolete check for the file outside uapi with a check
for a generated file.

This changes makes a few "header-y += kvm_para.h" asssignments redundant.

Signed-off-by: Sam Ravnborg <sam@xxxxxxxxxxxx>
---
include/uapi/asm-generic/Kbuild.asm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/asm-generic/Kbuild.asm b/include/uapi/asm-generic/Kbuild.asm
index fcd50b7..81b3f40 100644
--- a/include/uapi/asm-generic/Kbuild.asm
+++ b/include/uapi/asm-generic/Kbuild.asm
@@ -43,7 +43,7 @@ header-y += $(foreach hdr,$(opt-header), \
$(if \
$(wildcard \
$(srctree)/arch/$(SRCARCH)/include/uapi/asm/$(hdr) \
- $(srctree)/arch/$(SRCARCH)/include/asm/$(hdr) \
+ $(objtree)/arch/$(SRCARCH)/include/generated/uapi/asm/$(hdr) \
), \
$(hdr) \
))
--
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/