Allow the variant to provide own code. Add empty dummy Makefiles for the existing variants. The s6000 has circuits that require own drivers. Allow these to live in the variant-specific directory. Signed-off-by: Johannes Weiner --- arch/xtensa/Makefile | 3 +++ arch/xtensa/variants/dc232b/Makefile | 1 + arch/xtensa/variants/fsf/Makefile | 1 + 3 files changed, 5 insertions(+) create mode 100644 arch/xtensa/variants/dc232b/Makefile create mode 100644 arch/xtensa/variants/fsf/Makefile --- a/arch/xtensa/Makefile +++ b/arch/xtensa/Makefile @@ -68,6 +68,9 @@ LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) head-y := arch/xtensa/kernel/head.o core-y += arch/xtensa/kernel/ arch/xtensa/mm/ +ifneq ($(VARIANT),) +core-y += arch/xtensa/variants/$(VARIANT)/ +endif ifneq ($(PLATFORM),) core-y += arch/xtensa/platforms/$(PLATFORM)/ endif --- /dev/null +++ b/arch/xtensa/variants/dc232b/Makefile @@ -0,0 +1 @@ +# dc232b Makefile --- /dev/null +++ b/arch/xtensa/variants/fsf/Makefile @@ -0,0 +1 @@ +# fsf Makefile -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/