2009-03-10 13:03:47

by Johannes Weiner

[permalink] [raw]
Subject: [patch 2/8] xtensa: variant-specific code

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 <[email protected]>
---
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

--