瀏覽代碼

merge the RDC R-321x target as a subtarget of x86

SVN-Revision: 33779
Florian Fainelli 13 年之前
父節點
當前提交
60ecd5fe04
共有 27 個文件被更改,包括 53 次插入89 次删除
  1. 0 47
      target/linux/rdc/image/Makefile
  2. 0 22
      target/linux/rdc/modules.mk
  3. 2 1
      target/linux/x86/Makefile
  4. 1 1
      target/linux/x86/image/Config.in
  5. 32 0
      target/linux/x86/image/Makefile
  6. 0 0
      target/linux/x86/image/mkimg_bifferboard.py
  7. 0 0
      target/linux/x86/image/mkimg_sitecom.pl
  8. 16 0
      target/linux/x86/modules.mk
  9. 0 0
      target/linux/x86/patches-3.3/006-yenta_mistery.patch
  10. 0 0
      target/linux/x86/patches-3.3/009-rdc321x_select_embedded.patch
  11. 0 0
      target/linux/x86/patches-3.3/010-rdc_cpu_ident.patch
  12. 0 0
      target/linux/x86/patches-3.3/011-tune_lzma_options.patch
  13. 0 0
      target/linux/x86/patches-3.3/012-export_erase_write.patch
  14. 0 0
      target/linux/x86/patches-3.3/100-rdc_boards.patch
  15. 0 0
      target/linux/x86/patches-3.3/120-panic_on_unrecovered_nmi.patch
  16. 0 0
      target/linux/x86/patches-3.3/150-pit-tick-rate.patch
  17. 0 0
      target/linux/x86/patches-3.3/160-kexec-fix.patch
  18. 0 0
      target/linux/x86/rdc/base-files/etc/config/network
  19. 0 0
      target/linux/x86/rdc/base-files/etc/diag.sh
  20. 0 0
      target/linux/x86/rdc/base-files/lib/preinit/05_set_ether_mac_rdc
  21. 0 0
      target/linux/x86/rdc/base-files/lib/upgrade/platform.sh
  22. 0 0
      target/linux/x86/rdc/config-3.3
  23. 0 0
      target/linux/x86/rdc/profiles/ar525w.mk
  24. 0 0
      target/linux/x86/rdc/profiles/bifferboard.mk
  25. 0 0
      target/linux/x86/rdc/profiles/r8610.mk
  26. 0 0
      target/linux/x86/rdc/profiles/sitecom.mk
  27. 2 18
      target/linux/x86/rdc/target.mk

+ 0 - 47
target/linux/rdc/image/Makefile

@@ -1,47 +0,0 @@
-#
-# Copyright (C) 2006-2010 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-include $(TOPDIR)/rules.mk
-include $(INCLUDE_DIR)/image.mk
-
-define Image/Prepare
-	$(CP) $(LINUX_DIR)/arch/x86/boot/bzImage $(KDIR)/bzImage
-endef
-
-define Image/Build/ar525w
-	cp $(KDIR)/bzImage $(KDIR)/bzImage.tmp
-	$(SCRIPT_DIR)/pad_image $(1) $(KDIR)/bzImage.tmp $(KDIR)/root.$(1) 32
-	$(STAGING_DIR_HOST)/bin/airlink -b 1 $(KDIR)/bzImage.tmp $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-$(2).img
-	$(STAGING_DIR_HOST)/bin/airlink -e -b 1 $(KDIR)/bzImage.tmp $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-$(2)-web.img
-endef
-
-define Image/Build/sitecom
-	cp $(KDIR)/bzImage $(KDIR)/bzImage.tmp
-	#32k config data + 20 bytes header + 2 bytes checksum after kernel image
-	$(SCRIPT_DIR)/pad_image $(1) $(KDIR)/bzImage.tmp $(KDIR)/root.$(1) 32790
-	$(TOPDIR)/target/linux/rdc/image/mkimg_sitecom.pl $(KDIR)/bzImage.tmp > $(KDIR)/tmp.img
-	cat $(KDIR)/root.$(1) >> $(KDIR)/tmp.img
-	cp $(KDIR)/tmp.img $(BIN_DIR)/$(IMG_PREFIX)-$(1)-$(2).img
-	rm $(KDIR)/tmp.img $(KDIR)/bzImage.tmp
-endef
-
-define Image/Build/bifferboard
-	$(TOPDIR)/target/linux/rdc/image/mkimg_bifferboard.py $(KDIR)/bzImage $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-$(2).img
-endef
-
-define Image/Build/Initramfs
-	$(CP) $(KDIR)/bzImage $(BIN_DIR)/$(IMG_PREFIX)-ramfs.bzImage
-endef
-
-define Image/Build
-	$(CP) $(KDIR)/bzImage $(BIN_DIR)/$(IMG_PREFIX).bzImage
-	$(call Image/Build/$(PROFILE),$(1),$(PROFILE),$(patsubst jffs2-%k,%,$(1)))
-ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
-	$(call Image/Build/Initramfs)
-endif
-endef
-
-$(eval $(call BuildImage))

+ 0 - 22
target/linux/rdc/modules.mk

@@ -1,22 +0,0 @@
-#
-# Copyright (C) 2010 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-define KernelPackage/rdc321x-wdt
-  SUBMENU:=$(OTHER_MENU)
-  TITLE:=RDC321x watchdog
-  DEPENDS:=@TARGET_rdc
-  KCONFIG:=CONFIG_RDC321X_WDT
-  FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/rdc321x_wdt.ko
-  AUTOLOAD:=$(call AutoLoad,50,rdc321x_wdt)
-endef
-
-define KernelPackage/rdc321x-wdt/description
-  RDC-321x watchdog driver
-endef
-
-$(eval $(call KernelPackage,rdc321x-wdt))
-

+ 2 - 1
target/linux/x86/Makefile

@@ -10,7 +10,8 @@ ARCH:=i386
 BOARD:=x86
 BOARDNAME:=x86
 FEATURES:=squashfs jffs2 ext4 vdi vmdk pcmcia targz
-SUBTARGETS=generic olpc xen_domu ep80579 net5501 kvm_guest geos alix2 thincan
+SUBTARGETS=generic olpc xen_domu ep80579 net5501 kvm_guest geos alix2 thincan \
+	   rdc
 
 LINUX_VERSION:=3.3.8
 

+ 1 - 1
target/linux/x86/image/Config.in

@@ -15,7 +15,7 @@ config X86_ETHERBOOT_BOOTOPTS
 
 config X86_GRUB_IMAGES
 	bool "Build GRUB images (Linux x86 or x86_64 host only)"
-	depends TARGET_x86 && !TARGET_x86_olpc
+	depends TARGET_x86 && !(TARGET_x86_olpc || TARGET_x86_rdc)
 	depends TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_ISO || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
 	select PACKAGE_grub2
 	default y

+ 32 - 0
target/linux/x86/image/Makefile

@@ -206,12 +206,40 @@ define Image/BuildKernel
   endif
 endef
 
+define Image/Build/Profile/ar525w
+	cp $(KDIR)/bzImage $(KDIR)/bzImage.tmp
+	$(SCRIPT_DIR)/pad_image $(1) $(KDIR)/bzImage.tmp $(KDIR)/root.$(1) 32
+	$(STAGING_DIR_HOST)/bin/airlink -b 1 $(KDIR)/bzImage.tmp $(KDIR)/root.$(1) \
+		$(BIN_DIR)/$(IMG_PREFIX)-$(1)-ar525w.img
+	$(STAGING_DIR_HOST)/bin/airlink -e -b 1 $(KDIR)/bzImage.tmp $(KDIR)/root.$(1) \
+		$(BIN_DIR)/$(IMG_PREFIX)-$(1)-ar525w-web.img
+endef
+
+define Image/Build/Profile/sitecom
+	cp $(KDIR)/bzImage $(KDIR)/bzImage.tmp
+	#32k config data + 20 bytes header + 2 bytes checksum after kernel image
+	$(SCRIPT_DIR)/pad_image $(1) $(KDIR)/bzImage.tmp $(KDIR)/root.$(1) 32790
+	$(TOPDIR)/target/linux/rdc/image/mkimg_sitecom.pl $(KDIR)/bzImage.tmp > $(KDIR)/tmp.img
+	cat $(KDIR)/root.$(1) >> $(KDIR)/tmp.img
+	cp $(KDIR)/tmp.img $(BIN_DIR)/$(IMG_PREFIX)-$(1)-sitecom.img
+	rm $(KDIR)/tmp.img $(KDIR)/bzImage.tmp
+endef
+
+define Image/Build/Profile/bifferboard
+	$(TOPDIR)/target/linux/rdc/image/mkimg_bifferboard.py $(KDIR)/bzImage $(KDIR)/root.$(1) \
+		$(BIN_DIR)/$(IMG_PREFIX)-$(1)-bifferboard.img
+endef
+
 define Image/Prepare
 	$(CP) $(LINUX_DIR)/arch/x86/boot/bzImage $(KDIR)/bzImage
 	$(call Image/Prepare/bootscript)
 	$(call Image/Prepare/grub2)
 endef
 
+define Image/Build/Initramfs
+	$(CP) $(KDIR)/bzImage $(BIN_DIR)/$(IMG_PREFIX)-ramfs.bzImage
+endef
+
 define Image/Build
 	$(call Image/Build/$(1))
 	$(call Image/Build/bootscript,$(1))
@@ -225,6 +253,10 @@ define Image/Build
   endif
 	$(CP) $(KDIR)/bzImage $(BIN_DIR)/$(IMG_PREFIX)-vmlinuz
 	$(call Image/Build/gzip/$(1))
+	$(call Image/Build/Profile/$(PROFILE),$(1))
+ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
+	$(call Image/Build/Initramfs)
+endif
 endef
 
 $(eval $(call BuildImage))

+ 0 - 0
target/linux/rdc/image/mkimg_bifferboard.py → target/linux/x86/image/mkimg_bifferboard.py


+ 0 - 0
target/linux/rdc/image/mkimg_sitecom.pl → target/linux/x86/image/mkimg_sitecom.pl


+ 16 - 0
target/linux/x86/modules.mk

@@ -312,3 +312,19 @@ define KernelPackage/leds-net48xx/description
 endef
 
 $(eval $(call KernelPackage,leds-net48xx))
+
+define KernelPackage/rdc321x-wdt
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=RDC321x watchdog
+  DEPENDS:=@TARGET_x86_rdc
+  KCONFIG:=CONFIG_RDC321X_WDT
+  FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/rdc321x_wdt.ko
+  AUTOLOAD:=$(call AutoLoad,50,rdc321x_wdt)
+endef
+
+define KernelPackage/rdc321x-wdt/description
+  RDC-321x watchdog driver
+endef
+
+$(eval $(call KernelPackage,rdc321x-wdt))
+

+ 0 - 0
target/linux/rdc/patches-3.3/006-yenta_mistery.patch → target/linux/x86/patches-3.3/006-yenta_mistery.patch


+ 0 - 0
target/linux/rdc/patches-3.3/009-rdc321x_select_embedded.patch → target/linux/x86/patches-3.3/009-rdc321x_select_embedded.patch


+ 0 - 0
target/linux/rdc/patches-3.3/010-rdc_cpu_ident.patch → target/linux/x86/patches-3.3/010-rdc_cpu_ident.patch


+ 0 - 0
target/linux/rdc/patches-3.3/011-tune_lzma_options.patch → target/linux/x86/patches-3.3/011-tune_lzma_options.patch


+ 0 - 0
target/linux/rdc/patches-3.3/012-export_erase_write.patch → target/linux/x86/patches-3.3/012-export_erase_write.patch


+ 0 - 0
target/linux/rdc/patches-3.3/100-rdc_boards.patch → target/linux/x86/patches-3.3/100-rdc_boards.patch


+ 0 - 0
target/linux/rdc/patches-3.3/120-panic_on_unrecovered_nmi.patch → target/linux/x86/patches-3.3/120-panic_on_unrecovered_nmi.patch


+ 0 - 0
target/linux/rdc/patches-3.3/150-pit-tick-rate.patch → target/linux/x86/patches-3.3/150-pit-tick-rate.patch


+ 0 - 0
target/linux/rdc/patches-3.3/160-kexec-fix.patch → target/linux/x86/patches-3.3/160-kexec-fix.patch


+ 0 - 0
target/linux/rdc/base-files/etc/config/network → target/linux/x86/rdc/base-files/etc/config/network


+ 0 - 0
target/linux/rdc/base-files/etc/diag.sh → target/linux/x86/rdc/base-files/etc/diag.sh


+ 0 - 0
target/linux/rdc/base-files/lib/preinit/05_set_ether_mac_rdc → target/linux/x86/rdc/base-files/lib/preinit/05_set_ether_mac_rdc


+ 0 - 0
target/linux/rdc/base-files/lib/upgrade/platform.sh → target/linux/x86/rdc/base-files/lib/upgrade/platform.sh


+ 0 - 0
target/linux/rdc/config-3.3 → target/linux/x86/rdc/config-3.3


+ 0 - 0
target/linux/rdc/profiles/ar525w.mk → target/linux/x86/rdc/profiles/ar525w.mk


+ 0 - 0
target/linux/rdc/profiles/bifferboard.mk → target/linux/x86/rdc/profiles/bifferboard.mk


+ 0 - 0
target/linux/rdc/profiles/r8610.mk → target/linux/x86/rdc/profiles/r8610.mk


+ 0 - 0
target/linux/rdc/profiles/sitecom.mk → target/linux/x86/rdc/profiles/sitecom.mk


+ 2 - 18
target/linux/rdc/Makefile → target/linux/x86/rdc/target.mk

@@ -1,22 +1,8 @@
-#
-# Copyright (C) 2006-2012 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-include $(TOPDIR)/rules.mk
-
-ARCH:=i386
-BOARD:=rdc
-BOARDNAME:=RDC 321x
-FEATURES:=squashfs jffs2 pci usb pcmcia
+BOARDNAME:=RDC R-321x
+FEATURES:=squashfs jffs2 pci usb gpio pcmcia
 CFLAGS:=-Os -pipe -march=i486 -mtune=i486 -fno-caller-saves
 MAINTAINER:=Florian Fainelli <[email protected]>
 
-LINUX_VERSION:=3.3.8
-
-include $(INCLUDE_DIR)/target.mk
-
 DEFAULT_PACKAGES += kmod-llc kmod-stp kmod-bridge kmod-8021q \
 		    wpad-mini kmod-libphy kmod-r6040 kmod-input-core \
 		    kmod-input-polldev kmod-input-gpio-buttons kmod-button-hotplug \
@@ -26,5 +12,3 @@ define Target/Description
         Build firmware images for RDC321x based routers
         (e.g. Airlink101 AR525W, Linksys WRT54GR, Sitecom WL-153)
 endef
-
-$(eval $(call BuildTarget))