Signed-off-by: Andreas Bießmann <[email protected]>
---
 platforms/architecture.in |   10 ++++++++++
 platforms/kernel.in       |    1 +
 rules/kernel.make         |    6 +++++-
 3 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/platforms/architecture.in b/platforms/architecture.in
index 0493af1..e725ca3 100644
--- a/platforms/architecture.in
+++ b/platforms/architecture.in
@@ -13,6 +13,15 @@ choice
                help
                  This is support for the Alpha processor architecture.
 
+       config ARCH_AVR32
+               bool "avr32      "
+               select ARCH_SUPPORTS_ENDIAN_BIG
+               select HAS_MMU
+               help
+                 This is support for the Atmel AVR32 processors.
+                 Note: Only some (obsoleted AP7000 series) support
+                 linux.
+
        config ARCH_AVR
                bool "avr 8 bit "
                select ARCH_SUPPORTS_ENDIAN_LITTLE
@@ -263,6 +272,7 @@ config ARCH_STRING
        string
        default "arm"                   if ARCH_ARM
        default "avr"                   if ARCH_AVR
+       default "avr32"                 if ARCH_AVR32
        default "alpha"                 if ARCH_ALPHA
        default "blackfin"              if ARCH_BLACKFIN
        default "i386"                  if ARCH_X86
diff --git a/platforms/kernel.in b/platforms/kernel.in
index caafd9d..b601284 100644
--- a/platforms/kernel.in
+++ b/platforms/kernel.in
@@ -84,6 +84,7 @@ config KERNEL_ARCH_STRING
        default "arm"                   if ARCH_ARM
        default "armnommu"              if ARCH_ARM && !HAS_MMU
        default "alpha"                 if ARCH_ALPHA
+       default "avr32"                 if ARCH_AVR32
        default "blackfin"              if ARCH_BLACKFIN
        default "m68k"                  if ARCH_M68K
        default "sparc"                 if ARCH_SPARC
diff --git a/rules/kernel.make b/rules/kernel.make
index 6e0523b..6a78dc9 100644
--- a/rules/kernel.make
+++ b/rules/kernel.make
@@ -65,8 +65,12 @@ endif
 #
 KERNEL_IMAGE := $(call remove_quotes, $(PTXCONF_KERNEL_IMAGE))
 
-# these are sane default
+ifdef PTXCONF_ARCH_AVR32
+KERNEL_IMAGE_PATH_y := 
$(KERNEL_DIR)/arch/$(PTXCONF_KERNEL_ARCH_STRING)/boot/images/$(KERNEL_IMAGE)
+else
+# these are sane default ... but avr32
 KERNEL_IMAGE_PATH_y := 
$(KERNEL_DIR)/arch/$(PTXCONF_KERNEL_ARCH_STRING)/boot/$(KERNEL_IMAGE)
+endif
 
 # vmlinux is special
 KERNEL_IMAGE_PATH_$(PTXCONF_KERNEL_IMAGE_VMLINUX) := $(KERNEL_DIR)/vmlinux
-- 
1.7.5.4


-- 
ptxdist mailing list
[email protected]

Reply via email to