Add subtarget for each device
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 5 Mar 2010 04:15:51 +0000 (04:15 +0000)
committerLars-Peter Clausen <lars@metafoo.de>
Fri, 5 Mar 2010 04:15:51 +0000 (04:15 +0000)
SVN-Revision: 19986

target/linux/xburst/Makefile
target/linux/xburst/config-2.6.32
target/linux/xburst/image/Makefile
target/linux/xburst/n526/config-2.6.32 [new file with mode: 0644]
target/linux/xburst/n526/target.mk [new file with mode: 0644]
target/linux/xburst/qi_lb60/config-2.6.32 [new file with mode: 0644]
target/linux/xburst/qi_lb60/target.mk [new file with mode: 0644]

index 24a8545de5432456685e480196804a7cb816766f..bd746de1b5b2dd70c46ba8b9d57d248689e86c5a 100644 (file)
@@ -8,8 +8,9 @@ include $(TOPDIR)/rules.mk
 
 ARCH:=mipsel
 BOARD:=xburst
-BOARDNAME:=XBurst JZ47x0
+BOARDNAME:=Ingenic XBurst
 FEATURES:=jffs2 tgz ubifs audio
+SUBTARGETS:=qi_lb60 n526
 
 LINUX_VERSION:=2.6.32.9
 
@@ -19,8 +20,6 @@ include $(INCLUDE_DIR)/target.mk
 
 KERNELNAME:=uImage
 
-DEFAULT_PACKAGES += gpioctl
-
 define Target/Description
        Build firmware images for XBurst JZ47x0 based boards.
 endef
index 74df160e0d3b028129b9fc93c9bd1c615d92e5f0..85b880c3f7f7ad5594e93efd8d558082e729bde0 100644 (file)
@@ -11,10 +11,10 @@ CONFIG_ARCH_REQUIRE_GPIOLIB=y
 CONFIG_ARCH_SUPPORTS_OPROFILE=y
 CONFIG_ARCH_SUSPEND_POSSIBLE=y
 # CONFIG_ARPD is not set
-CONFIG_BACKLIGHT_CLASS_DEVICE=y
+# CONFIG_BACKLIGHT_CLASS_DEVICE is not set
 # CONFIG_BACKLIGHT_GENERIC is not set
-CONFIG_BACKLIGHT_LCD_SUPPORT=y
-CONFIG_BATTERY_JZ4740=y
+# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
+# CONFIG_BATTERY_JZ4740 is not set
 # CONFIG_BCM47XX is not set
 # CONFIG_BCM63XX is not set
 CONFIG_BITREVERSE=y
@@ -92,7 +92,7 @@ CONFIG_FONTS=y
 CONFIG_FORCE_MAX_ZONEORDER=12
 # CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set
 # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
-CONFIG_FRAMEBUFFER_CONSOLE=y
+# CONFIG_FRAMEBUFFER_CONSOLE is not set
 CONFIG_FREEZER=y
 # CONFIG_FSNOTIFY is not set
 CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
@@ -132,22 +132,23 @@ CONFIG_IP_PNP_DHCP=y
 CONFIG_IP_PNP=y
 CONFIG_IRQ_CPU=y
 CONFIG_JBD=y
-CONFIG_JZ4740_ADC=y
+# CONFIG_JZ4740_ADC is not set
+# CONFIG_JZ4740_N516 is not set
 # CONFIG_JZ4740_N526 is not set
-CONFIG_JZ4740_QI_LB60=y
+# CONFIG_JZ4740_QI_LB60 is not set
 CONFIG_JZRISC=y
 CONFIG_JZSOC=y
 CONFIG_KALLSYMS=y
 CONFIG_KEYBOARD_ATKBD=y
-CONFIG_KEYBOARD_GPIO=y
+# CONFIG_KEYBOARD_GPIO is not set
 # CONFIG_KEYBOARD_LKKBD is not set
-CONFIG_KEYBOARD_MATRIX=y
+# CONFIG_KEYBOARD_MATRIX is not set
 # CONFIG_KEYBOARD_NEWTON is not set
 # CONFIG_KEYBOARD_STOWAWAY is not set
 # CONFIG_KEYBOARD_SUNKBD is not set
 # CONFIG_KEYBOARD_XTKBD is not set
-CONFIG_LCD_CLASS_DEVICE=y
-CONFIG_LCD_GPM940B0=y
+# CONFIG_LCD_CLASS_DEVICE is not set
+# CONFIG_LCD_GPM940B0 is not set
 # CONFIG_LCD_ILI9320 is not set
 # CONFIG_LCD_LMS283GF05 is not set
 # CONFIG_LCD_LTV350QV is not set
@@ -160,8 +161,8 @@ CONFIG_LOCK_KERNEL=y
 # CONFIG_LOGO_LINUX_CLUT224 is not set
 # CONFIG_LOGO_LINUX_MONO is not set
 # CONFIG_LOGO_LINUX_VGA16 is not set
-CONFIG_LOGO_OPENWRT_CLUT224=y
-CONFIG_LOGO=y
+# CONFIG_LOGO_OPENWRT_CLUT224 is not set
+# CONFIG_LOGO is not set
 CONFIG_LZO_COMPRESS=y
 CONFIG_LZO_DECOMPRESS=y
 # CONFIG_MACH_ALCHEMY is not set
@@ -193,7 +194,7 @@ CONFIG_MMC=y
 # CONFIG_MTD_CFI is not set
 # CONFIG_MTD_COMPLEX_MAPPINGS is not set
 CONFIG_MTD_NAND_JZ4740=y
-CONFIG_MTD_NAND_VERIFY_WRITE=y
+# CONFIG_MTD_NAND_VERIFY_WRITE is not set
 CONFIG_MTD_NAND=y
 CONFIG_MTD_UBI_BEB_RESERVE=1
 # CONFIG_MTD_UBI_DEBUG is not set
@@ -316,11 +317,7 @@ CONFIG_SOC_JZ4740=y
 # CONFIG_SOUND_OSS_CORE_PRECLAIM is not set
 CONFIG_SOUND_OSS_CORE=y
 CONFIG_SOUND=y
-CONFIG_SPI_BITBANG=y
-CONFIG_SPI_GPIO=y
-CONFIG_SPI_MASTER=y
 # CONFIG_SPI_SPIDEV is not set
-CONFIG_SPI=y
 # CONFIG_SQUASHFS is not set
 # CONFIG_STAGING is not set
 CONFIG_SUSPEND_FREEZER=y
@@ -381,7 +378,7 @@ CONFIG_USB_GADGET_VBUS_DRAW=2
 CONFIG_USB_GADGET=y
 # CONFIG_USB_G_PRINTER is not set
 # CONFIG_USB_G_SERIAL is not set
-CONFIG_USB_JZ4740=y
+# CONFIG_USB_JZ4740 is not set
 # CONFIG_USB_MIDI_GADGET is not set
 CONFIG_USB_SUPPORT=y
 # CONFIG_USB_ZERO is not set
index dcc97e7657d3f16237e015c8979d5d6182eddb58..0947db0549a7e5224a8b8455d556cd33a57af89f 100644 (file)
@@ -9,8 +9,23 @@ include $(INCLUDE_DIR)/image.mk
 
 JFFS2_BLOCKSIZE=256k 512k
 
+ifneq ($(CONFIG_TARGET_QI_LB60),)
 UBIFS_OPTS = -m 4096 -e 516096 -c 4095
 UBINIZE_OPTS = -m 4096 -p 512KiB
+else
+UBIFS_OPTS = -m 2048 -e 126KiB -c 4096
+UBINIZE_OPTS = -m 2048 -p 128KiB -s 512
+endif
+
+ifneq ($(CONFIG_XBURST_UBOOT),)
+  define Build/Clean
+       $(MAKE) -C u-boot clean
+  endef
+
+  define Build/Compile
+       $(MAKE) -C u-boot compile
+  endef
+endif
 
 define Image/BuildKernel
        cp $(KDIR)/linux-$(LINUX_VERSION)/arch/mips/boot/uImage $(BIN_DIR)/openwrt-$(BOARD)-uImage.bin
@@ -21,8 +36,7 @@ define Image/Build/squashfs
 endef
 
 define Image/Build
-       $(call Image/Build/$(1))
-       dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-root.$(1) bs=128k conv=sync
+       dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-$(SUBTARGET)-root.$(1) bs=128k conv=sync
 endef
 
 $(eval $(call BuildImage))
diff --git a/target/linux/xburst/n526/config-2.6.32 b/target/linux/xburst/n526/config-2.6.32
new file mode 100644 (file)
index 0000000..baf1552
--- /dev/null
@@ -0,0 +1 @@
+CONFIG_JZ4740_N516=y
diff --git a/target/linux/xburst/n526/target.mk b/target/linux/xburst/n526/target.mk
new file mode 100644 (file)
index 0000000..edc4d17
--- /dev/null
@@ -0,0 +1,2 @@
+BOARDNAME:=Hanvon N526 e-book reader
+DEFAULT_PACKAGES += uboot-xburst-n526
diff --git a/target/linux/xburst/qi_lb60/config-2.6.32 b/target/linux/xburst/qi_lb60/config-2.6.32
new file mode 100644 (file)
index 0000000..fdd2f01
--- /dev/null
@@ -0,0 +1,19 @@
+ONFIG_BACKLIGHT_CLASS_DEVICE=y
+CONFIG_BACKLIGHT_LCD_SUPPORT=y
+CONFIG_BATTERY_JZ4740=y
+CONFIG_CHARGER_GPIO=y
+CONFIG_FB_JZ4740=y
+CONFIG_FONT_MINI_4x6=y
+CONFIG_FRAMEBUFFER_CONSOLE=y
+CONFIG_JZ4740_ADC=y
+CONFIG_JZ4740_QI_LB60=y
+CONFIG_KEYBOARD_GPIO=y
+CONFIG_KEYBOARD_MATRIX=y
+CONFIG_LCD_CLASS_DEVICE=y
+CONFIG_LCD_GPM940B0=y
+CONFIG_LOGO=y
+CONFIG_LOGO_OPENWRT_CLUT224=y
+CONFIG_SPI=y
+CONFIG_SPI_BITBANG=y
+CONFIG_SPI_GPIO=y
+CONFIG_SPI_MASTER=y
diff --git a/target/linux/xburst/qi_lb60/target.mk b/target/linux/xburst/qi_lb60/target.mk
new file mode 100644 (file)
index 0000000..40f667e
--- /dev/null
@@ -0,0 +1,2 @@
+BOARDNAME:=QI Ben Nanonote (qi_lb60)
+#DEFAULT_PACKAGES += uboot-xburst-qi_lb60