From 60b7742979215503ebd84c4b668eb40e1b0dbc4b Mon Sep 17 00:00:00 2001
From: jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Date: Thu, 27 Jan 2011 20:57:01 +0000
Subject: [at91] move Netus G20 into a subtarget and rework toplevel config and
 makefile

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25165 3c298f89-4303-0410-b956-a3cf2f4a3e73
---
 target/linux/at91/Makefile             |  5 +----
 target/linux/at91/config-default       |  4 ++--
 target/linux/at91/netus/config-default |  8 ++++++++
 target/linux/at91/netus/target.mk      | 10 ++++++++++
 4 files changed, 21 insertions(+), 6 deletions(-)
 create mode 100644 target/linux/at91/netus/config-default
 create mode 100644 target/linux/at91/netus/target.mk

(limited to 'target/linux/at91')

diff --git a/target/linux/at91/Makefile b/target/linux/at91/Makefile
index 03ebe22ce..d06bb842e 100644
--- a/target/linux/at91/Makefile
+++ b/target/linux/at91/Makefile
@@ -12,6 +12,7 @@ MAINTAINER:=Claudio Mignanti <c.mignanti@gmail.com>
 BOARDNAME:=Atmel AT91
 FEATURES:=squashfs jffs2 targz
 CFLAGS:=-Os -pipe -march=armv5te -mtune=arm926ej-s -funit-at-a-time
+SUBTARGETS:=netus tqma9263
 
 LINUX_VERSION:=2.6.35.9
 DEVICE_TYPE=
@@ -21,8 +22,4 @@ include $(INCLUDE_DIR)/target.mk
 DEFAULT_PACKAGES+= kmod-usb-ohci
 KERNELNAME:="uImage"
 
-define Target/Description
-	Build firmware images for Acmesystems NetusG20 board
-endef
-
 $(eval $(call BuildTarget))
diff --git a/target/linux/at91/config-default b/target/linux/at91/config-default
index 869988aef..5e3247f70 100644
--- a/target/linux/at91/config-default
+++ b/target/linux/at91/config-default
@@ -8,7 +8,7 @@ CONFIG_ARCH_AT91=y
 # CONFIG_ARCH_AT91SAM9261 is not set
 # CONFIG_ARCH_AT91SAM9263 is not set
 # CONFIG_ARCH_AT91SAM9G10 is not set
-CONFIG_ARCH_AT91SAM9G20=y
+# CONFIG_ARCH_AT91SAM9G20 is not set
 # CONFIG_ARCH_AT91SAM9G45 is not set
 # CONFIG_ARCH_AT91SAM9RL is not set
 # CONFIG_ARCH_AT91X40 is not set
@@ -111,7 +111,7 @@ CONFIG_MACB=y
 # CONFIG_MACH_AT91SAM9G20EK is not set
 # CONFIG_MACH_AT91SAM9G20EK_2MMC is not set
 # CONFIG_MACH_CPU9G20 is not set
-CONFIG_MACH_NETUS_FOXBOARD=y
+# CONFIG_MACH_NETUS_FOXBOARD is not set
 # CONFIG_MACH_PORTUXG20 is not set
 # CONFIG_MACH_STAMP9G20 is not set
 # CONFIG_MFD_T7L66XB is not set
diff --git a/target/linux/at91/netus/config-default b/target/linux/at91/netus/config-default
new file mode 100644
index 000000000..c965f2395
--- /dev/null
+++ b/target/linux/at91/netus/config-default
@@ -0,0 +1,8 @@
+CONFIG_ARCH_AT91SAM9G20=y
+# CONFIG_ARCH_USES_GETTIMEOFFSET is not set
+CONFIG_CRC16=y
+CONFIG_JBD2=y
+CONFIG_MACH_NETUS_FOXBOARD=y
+# CONFIG_USB_FUNCTIONFS is not set
+# CONFIG_USB_G_HID is not set
+# CONFIG_USB_G_WEBCAM is not set
diff --git a/target/linux/at91/netus/target.mk b/target/linux/at91/netus/target.mk
new file mode 100644
index 000000000..ec9b90aa5
--- /dev/null
+++ b/target/linux/at91/netus/target.mk
@@ -0,0 +1,10 @@
+# 
+# Copyright (C) 2006-2011 OpenWrt.org
+#
+
+SUBTARGET:=netus
+BOARDNAME:=Acmesystems NetusG20 board
+
+define Target/Description
+	Build firmware images for Acmesystems NetusG20 board
+endef
-- 
cgit v1.2.3