summaryrefslogtreecommitdiff
path: root/target/avr32
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-01-10 04:23:38 -0600
committerWaldemar Brodkorb <wbx@openadk.org>2015-01-10 04:23:48 -0600
commit8a4015ce6cebd7a83eae1207fe3b3ed8163526fc (patch)
tree8e81c59a60f67a77ba572f005b918fa53df77159 /target/avr32
parentd932da8684079763b8fe2062484f93ba9902c8d4 (diff)
add basic support for atmel ngw100. no runtime testing yet
Diffstat (limited to 'target/avr32')
-rw-r--r--target/avr32/Makefile26
-rw-r--r--target/avr32/kernel/atmel-ngw1006
-rw-r--r--target/avr32/systems/atmel-ngw10010
3 files changed, 42 insertions, 0 deletions
diff --git a/target/avr32/Makefile b/target/avr32/Makefile
index ebc17340e..f277f3715 100644
--- a/target/avr32/Makefile
+++ b/target/avr32/Makefile
@@ -7,3 +7,29 @@ include $(ADK_TOPDIR)/mk/modules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
+KERNEL:=$(LINUX_DIR)/arch/avr32/boot/images/uImage
+
+# target helper text
+ifeq ($(ADK_TARGET_FS),archive)
+targethelp:
+ @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)"
+endif
+ifeq ($(ADK_TARGET_FS),nfsroot)
+targethelp:
+ @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
+ @echo 'The nfs root tarball is: ${FW_DIR}/${ROOTFSUSERTARBALL}'
+endif
+
+kernel-strip:
+ cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
+
+kernel-install: kernel-strip
+ cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
+
+# filesystem specific targets
+ifeq ($(ADK_TARGET_FS),archive)
+imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) targethelp
+endif
+ifeq ($(ADK_TARGET_FS),nfsroot)
+imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
+endif
diff --git a/target/avr32/kernel/atmel-ngw100 b/target/avr32/kernel/atmel-ngw100
new file mode 100644
index 000000000..9ddc7e27b
--- /dev/null
+++ b/target/avr32/kernel/atmel-ngw100
@@ -0,0 +1,6 @@
+CONFIG_AVR32=y
+CONFIG_PLATFORM_AT32AP=y
+CONFIG_CPU_AT32AP700X=y
+CONFIG_CPU_AT32AP7000=y
+CONFIG_BOARD_ATNGW100_COMMON=y
+CONFIG_BOARD_ATNGW100_MKI=y
diff --git a/target/avr32/systems/atmel-ngw100 b/target/avr32/systems/atmel-ngw100
new file mode 100644
index 000000000..8d6aba14c
--- /dev/null
+++ b/target/avr32/systems/atmel-ngw100
@@ -0,0 +1,10 @@
+config ADK_TARGET_SYSTEM_ATMEL_NGW100
+ bool "Atmel NGW100"
+ select ADK_avr32
+ select ADK_atmel_ngw100
+ select ADK_CPU_AVR32
+ select ADK_TARGET_KERNEL_UIMAGE
+ select ADK_HOST_BUILD_U_BOOT
+ help
+ ATMEL NGW100
+