mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
major target cleanup. it is now possible to have subtargets that can override many target settings, including arch - merge adm5120, adm5120eb. target profiles still need to be adapted for subtargets
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8694 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -8,5 +8,5 @@ include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
||||
prereq clean download prepare compile install menuconfig oldconfig update refresh: FORCE
|
||||
$(MAKE) -C $(BOARD) $@
|
||||
TARGET_BUILD=1 $(MAKE) -C $(BOARD) $@
|
||||
|
||||
|
||||
@@ -1,27 +1,20 @@
|
||||
#
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
# Copyright (C) 2007 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
ARCH:=mipsel
|
||||
BOARD:=adm5120
|
||||
BOARDNAME:=ADM5120 (Little Endian)
|
||||
LINUX_VERSION:=2.6.22.4
|
||||
FEATURES:=squashfs jffs2 tgz broken
|
||||
|
||||
LINUX_VERSION:=2.6.22.4
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
||||
define Target/Description
|
||||
Build firmware images for Infineon/ADMtek ADM5120 based boards
|
||||
(e.g : RouterBoard RB1xx, Compex WP54G-WRT ...)
|
||||
endef
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-build.mk
|
||||
DEFAULT_PACKAGES += admswconfig
|
||||
|
||||
# include the profiles
|
||||
-include profiles/*.mk
|
||||
|
||||
$(eval $(call BuildKernel))
|
||||
$(eval $(call Target,router_be))
|
||||
$(eval $(call Target,router_le))
|
||||
$(eval $(call BuildTarget))
|
||||
|
||||
9
target/linux/adm5120/router_be/target.mk
Normal file
9
target/linux/adm5120/router_be/target.mk
Normal file
@@ -0,0 +1,9 @@
|
||||
ARCH:=mips
|
||||
SUBTARGET:=router_be
|
||||
BOARDNAME:=ADM5120 Boards (Big Endian)
|
||||
|
||||
define Target/Description
|
||||
Build firmware images for Infineon/ADMTek ADM5120 based boards running in big-endian mode
|
||||
(e.g : ZyXEL Prestige 335WT ...)
|
||||
endef
|
||||
|
||||
9
target/linux/adm5120/router_le/target.mk
Normal file
9
target/linux/adm5120/router_le/target.mk
Normal file
@@ -0,0 +1,9 @@
|
||||
ARCH:=mipsel
|
||||
SUBTARGET:=router_le
|
||||
BOARDNAME:=ADM5120 Boards (Little Endian)
|
||||
|
||||
define Target/Description
|
||||
Build firmware images for Infineon/ADMtek ADM5120 based boards
|
||||
(e.g : RouterBoard RB1xx, Compex WP54G-WRT ...)
|
||||
endef
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
ARCH:=mips
|
||||
BOARD:=adm5120eb
|
||||
BOARDNAME:=ADM5120 (Big Endian)
|
||||
FEATURES:=squashfs pci usb broken
|
||||
|
||||
LINUX_VERSION:=2.6.22.4
|
||||
|
||||
define Target/Description
|
||||
Build firmware images for Infineon/ADMTek ADM5120 based boards running in big-endian mode
|
||||
(e.g : ZyXEL Prestige 335WT ...)
|
||||
endef
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-build.mk
|
||||
DEFAULT_PACKAGES += admswconfig
|
||||
|
||||
# include the profiles
|
||||
-include profiles/*.mk
|
||||
|
||||
$(eval $(call BuildKernel))
|
||||
@@ -1 +0,0 @@
|
||||
../adm5120/files
|
||||
@@ -1 +0,0 @@
|
||||
../adm5120/patches-2.6.22
|
||||
@@ -10,6 +10,9 @@ ARCH:=mips
|
||||
BOARD:=amazon
|
||||
BOARDNAME:=Infineon Amazon
|
||||
FEATURES:=squashfs jffs2 broken
|
||||
LINUX_VERSION:=2.6.21.5
|
||||
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
||||
define Target/Description
|
||||
Build firmware images for Infineon Amazon boards
|
||||
@@ -17,9 +20,7 @@ endef
|
||||
|
||||
KERNELNAME:="uImage"
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-build.mk
|
||||
|
||||
# include the profiles
|
||||
-include profiles/*.mk
|
||||
|
||||
$(eval $(call BuildKernel))
|
||||
$(eval $(call BuildTarget))
|
||||
|
||||
@@ -13,13 +13,13 @@ FEATURES:=jffs2
|
||||
|
||||
LINUX_VERSION:=2.6.21.5
|
||||
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
||||
define Target/Description
|
||||
Build firmware images for the AMCC Taishan evaluation board
|
||||
endef
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-build.mk
|
||||
|
||||
# include the profiles
|
||||
-include profiles/*.mk
|
||||
|
||||
$(eval $(call BuildKernel))
|
||||
$(eval $(call BuildTarget))
|
||||
|
||||
@@ -13,12 +13,12 @@ FEATURES:=squashfs jffs2 atm
|
||||
|
||||
LINUX_VERSION:=2.6.22.4
|
||||
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
||||
define Target/Description
|
||||
Build firmware images for TI AR7 based routers
|
||||
endef
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-build.mk
|
||||
|
||||
-include profiles/*.mk
|
||||
|
||||
$(eval $(call BuildKernel))
|
||||
$(eval $(call BuildTarget))
|
||||
|
||||
@@ -14,14 +14,15 @@ FEATURES:=squashfs usb
|
||||
#LINUX_VERSION:=2.6.21.5
|
||||
LINUX_VERSION:=2.6.22.4
|
||||
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
||||
KERNELNAME:="uImage"
|
||||
|
||||
define Target/Description
|
||||
Build fimware images for Figment Design Labs VersaLink board.
|
||||
endef
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-build.mk
|
||||
|
||||
#include the profiles
|
||||
-include profiles/*.mk
|
||||
|
||||
KERNELNAME:="uImage"
|
||||
$(eval $(call BuildKernel))
|
||||
$(eval $(call BuildTarget))
|
||||
|
||||
@@ -13,14 +13,15 @@ FEATURES:=squashfs jffs2
|
||||
|
||||
LINUX_VERSION:=2.6.22.4
|
||||
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
||||
DEFAULT_PACKAGES += kmod-madwifi
|
||||
|
||||
define Target/Description
|
||||
Build firmware images for Atheros SoC boards
|
||||
endef
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-build.mk
|
||||
DEFAULT_PACKAGES += kmod-madwifi
|
||||
|
||||
# include the profiles
|
||||
-include profiles/*.mk
|
||||
|
||||
$(eval $(call BuildKernel))
|
||||
$(eval $(call BuildTarget))
|
||||
|
||||
@@ -13,14 +13,14 @@ FEATURES:=jffs2 usb pci
|
||||
|
||||
LINUX_VERSION:=2.6.22.4
|
||||
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
DEFAULT_PACKAGES += yamonenv
|
||||
|
||||
define Target/Description
|
||||
Build firmware for AMD Alchemy 1500 boards
|
||||
(e.g. 4G-Systems Mesh/Access Cube ...)
|
||||
endef
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-build.mk
|
||||
DEFAULT_PACKAGES += yamonenv
|
||||
|
||||
define Kernel/BuildImage
|
||||
$(call Kernel/BuildImage/Default)
|
||||
$(CP) $(LINUX_DIR)/arch/mips/boot/compressed/images/zImage.flash.srec $(LINUX_DIR)/zImage.flash.srec
|
||||
@@ -30,5 +30,5 @@ endef
|
||||
# include the profiles
|
||||
-include profiles/*.mk
|
||||
|
||||
$(eval $(call BuildKernel))
|
||||
$(eval $(call BuildTarget))
|
||||
|
||||
|
||||
@@ -10,18 +10,15 @@ ARCH:=avr32
|
||||
BOARD:=avr32
|
||||
BOARDNAME:=Atmel AVR32
|
||||
FEATURES:=squashfs
|
||||
|
||||
LINUX_VERSION:=2.6.22.4
|
||||
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
||||
define Target/Description
|
||||
Build firmware images for ATNGW100 board
|
||||
endef
|
||||
|
||||
KERNEL:=2.6
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-build.mk
|
||||
|
||||
#include the profiles
|
||||
-include profiles/*.mk
|
||||
|
||||
$(eval $(call BuildKernel))
|
||||
$(eval $(call BuildTarget))
|
||||
|
||||
@@ -11,17 +11,18 @@ BOARD:=brcm-2.4
|
||||
BOARDNAME:=Broadcom BCM947xx/953xx
|
||||
FEATURES:=squashfs
|
||||
|
||||
KERNEL:=2.4
|
||||
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
||||
DEFAULT_PACKAGES += kmod-switch kmod-diag nvram
|
||||
|
||||
define Target/Description
|
||||
Build firmware images for Broadcom based routers
|
||||
(e.g. Linksys WRT54G(S), Asus WL-500g, Motorola WR850G)
|
||||
endef
|
||||
|
||||
KERNEL:=2.4
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-build.mk
|
||||
DEFAULT_PACKAGES += kmod-switch kmod-diag nvram
|
||||
|
||||
# include the profiles
|
||||
-include profiles/*.mk
|
||||
|
||||
$(eval $(call BuildKernel))
|
||||
$(eval $(call BuildTarget))
|
||||
|
||||
@@ -13,15 +13,15 @@ FEATURES:=squashfs usb
|
||||
|
||||
LINUX_VERSION:=2.6.22.4
|
||||
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
DEFAULT_PACKAGES += kmod-switch kmod-diag
|
||||
|
||||
define Target/Description
|
||||
Build firmware images for Broadcom based routers
|
||||
(e.g. Netgear WGT634U)
|
||||
endef
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-build.mk
|
||||
DEFAULT_PACKAGES += kmod-switch kmod-diag
|
||||
|
||||
# include the profiles
|
||||
-include profiles/*.mk
|
||||
|
||||
$(eval $(call BuildKernel))
|
||||
$(eval $(call BuildTarget))
|
||||
|
||||
@@ -10,17 +10,16 @@ ARCH:=mips
|
||||
BOARD:=brcm63xx
|
||||
BOARDNAME:=Broadcom BCM963xx
|
||||
FEATURES:=squashfs jffs2 broken usb atm
|
||||
|
||||
LINUX_VERSION:=2.6.22.4
|
||||
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
||||
define Target/Description
|
||||
Build firmware images for Broadcom based xDSL/routers
|
||||
(e.g. Inventel Livebox, Siemens SE515)
|
||||
endef
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-build.mk
|
||||
|
||||
# include the profiles
|
||||
-include profiles/*.mk
|
||||
|
||||
$(eval $(call BuildKernel))
|
||||
$(eval $(call BuildTarget))
|
||||
|
||||
@@ -12,7 +12,10 @@ BOARDNAME:=Foxboard (ETRAX 100LX)
|
||||
FEATURES:=squashfs jffs2
|
||||
LINUX_VERSION:=2.6.19.2
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-build.mk
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
||||
KERNELNAME:="zImage"
|
||||
DEFAULT_PACKAGES += foxboard-utils
|
||||
|
||||
define Target/Description
|
||||
Build fimware images for the FOXBOARD made by acmesystems.it
|
||||
@@ -31,14 +34,10 @@ define Kernel/Prepare
|
||||
$(call Kernel/Prepare/Fox)
|
||||
endef
|
||||
|
||||
DEFAULT_PACKAGES += foxboard-utils
|
||||
|
||||
$(eval $(call RequireCommand,/usr/local/cris/gcc-cris, \
|
||||
Please install the binary cris toolchain. \
|
||||
))
|
||||
|
||||
#include the profiles
|
||||
-include profiles/*.mk
|
||||
|
||||
KERNELNAME:="zImage"
|
||||
$(eval $(call BuildKernel))
|
||||
$(eval $(call BuildTarget))
|
||||
$(eval $(call RequireCommand,/usr/local/cris/gcc-cris, \
|
||||
Please install the binary cris toolchain. \
|
||||
))
|
||||
|
||||
@@ -13,12 +13,9 @@ FEATURES:=squashfs jffs2
|
||||
|
||||
LINUX_VERSION:=2.6.21.5
|
||||
|
||||
define Target/Description
|
||||
endef
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-build.mk
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
||||
# include the profiles
|
||||
-include profiles/*.mk
|
||||
|
||||
$(eval $(call BuildKernel))
|
||||
$(eval $(call BuildTarget))
|
||||
|
||||
@@ -13,12 +13,9 @@ FEATURES:=squashfs
|
||||
|
||||
LINUX_VERSION:=2.6.21.6
|
||||
|
||||
define Target/Description
|
||||
endef
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-build.mk
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
||||
# include the profiles
|
||||
-include profiles/*.mk
|
||||
|
||||
$(eval $(call BuildKernel))
|
||||
$(eval $(call BuildTarget))
|
||||
|
||||
@@ -13,9 +13,9 @@ FEATURES:=squashfs jffs2
|
||||
|
||||
LINUX_VERSION:=2.6.22.4
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-build.mk
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
||||
# include the profiles
|
||||
-include profiles/*.mk
|
||||
|
||||
$(eval $(call BuildKernel))
|
||||
$(eval $(call BuildTarget))
|
||||
|
||||
@@ -13,13 +13,13 @@ FEATURES:=jffs2 broken
|
||||
|
||||
LINUX_VERSION:=2.6.21.5
|
||||
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
||||
define Target/Description
|
||||
Stub for boards based on intel PXA
|
||||
endef
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-build.mk
|
||||
|
||||
# include the profiles
|
||||
-include profiles/*.mk
|
||||
|
||||
$(eval $(call BuildKernel))
|
||||
$(eval $(call BuildTarget))
|
||||
|
||||
@@ -13,9 +13,9 @@ FEATURES:=jffs2 pci tgz
|
||||
|
||||
LINUX_VERSION:=2.6.22.4
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-build.mk
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
||||
# include the profiles
|
||||
-include profiles/*.mk
|
||||
|
||||
$(eval $(call BuildKernel))
|
||||
$(eval $(call BuildTarget))
|
||||
|
||||
@@ -13,15 +13,15 @@ FEATURES:=squashfs jffs2 broken
|
||||
|
||||
LINUX_VERSION:=2.6.22.4
|
||||
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
||||
define Target/Description
|
||||
Build firmware images for RDC321x based routers
|
||||
(e.g. Airlink101 AR525W, Linksys WRT54R, Sitecom WL-153)
|
||||
endef
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-build.mk
|
||||
|
||||
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
|
||||
define Kernel/SetInitramfs
|
||||
define Kernel/SetInitramfs
|
||||
echo "r6040 parent=wlan0" > $(TARGET_DIR)/etc/modules.d/99-r6040
|
||||
$(RM) $(TARGET_DIR)/sbin/init
|
||||
ln -s /etc/preinit $(TARGET_DIR)/sbin/init
|
||||
@@ -29,10 +29,10 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
|
||||
sed -i 's,/sbin/init,/bin/busybox init,g' $(TARGET_DIR)/init
|
||||
mv $(TARGET_DIR)/init $(TARGET_DIR)/linuxrc
|
||||
sed -i 's,eth0,eth1,g' $(TARGET_DIR)/etc/config/network
|
||||
endef
|
||||
endef
|
||||
endif
|
||||
|
||||
# include the profiles
|
||||
-include profiles/*.mk
|
||||
|
||||
$(eval $(call BuildKernel))
|
||||
$(eval $(call BuildTarget))
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# CONFIG_MTD_RDC3210_ALLOW_JFFS2 is not set
|
||||
CONFIG_MTD_RDC3210_SIZE=0x200000
|
||||
@@ -13,9 +13,9 @@ FEATURES:=broken
|
||||
|
||||
LINUX_VERSION:=2.6.21.5
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-build.mk
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
||||
# include the profiles
|
||||
-include profiles/*.mk
|
||||
|
||||
$(eval $(call BuildKernel))
|
||||
$(eval $(call BuildTarget))
|
||||
|
||||
@@ -25,11 +25,11 @@ LINUX_CONFIG:=$(CURDIR)/config/$(ARCH)
|
||||
|
||||
LINUX_VERSION:=2.6.22.4
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-build.mk
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
||||
# include the profiles
|
||||
-include profiles/*.mk
|
||||
|
||||
endif
|
||||
|
||||
$(eval $(call BuildKernel))
|
||||
$(eval $(call BuildTarget))
|
||||
|
||||
@@ -13,11 +13,11 @@ FEATURES:=squashfs jffs2 ext2
|
||||
|
||||
LINUX_VERSION:=2.6.22.4
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-build.mk
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
DEFAULT_PACKAGES += kmod-natsemi kmod-ne2k-pci
|
||||
|
||||
# include the profiles
|
||||
-include profiles/*.mk
|
||||
|
||||
$(eval $(call BuildKernel))
|
||||
$(eval $(call BuildTarget))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user