mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 02:34:06 +02:00
implement target profiles in menuconfig
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5512 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
13a66f1285
commit
5be70dfb57
4
Makefile
4
Makefile
@ -39,11 +39,11 @@ else
|
|||||||
endif
|
endif
|
||||||
export OPENWRTVERSION
|
export OPENWRTVERSION
|
||||||
|
|
||||||
ifneq ($(shell ./scripts/timestamp.pl -p tmp/.pkginfo package scripts Makefile),tmp/.pkginfo)
|
ifneq ($(shell ./scripts/timestamp.pl -p tmp/.pkginfo package scripts include),tmp/.pkginfo)
|
||||||
tmp/.pkginfo: FORCE
|
tmp/.pkginfo: FORCE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(shell ./scripts/timestamp.pl -p tmp/.targetinfo target/linux scripts Makefile),tmp/.targetinfo)
|
ifneq ($(shell ./scripts/timestamp.pl -p tmp/.targetinfo target/linux scripts include),tmp/.targetinfo)
|
||||||
tmp/.targetinfo: FORCE
|
tmp/.targetinfo: FORCE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
#
|
#
|
||||||
KERNEL_BUILD:=1
|
KERNEL_BUILD:=1
|
||||||
|
|
||||||
|
# For target profile selection - the default set
|
||||||
|
DEFAULT_PACKAGES:=base-files libgcc uclibc bridge busybox dnsmasq dropbear iptables mtd ppp ppp-mod-pppoe mtd
|
||||||
|
|
||||||
ifeq ($(DUMP),1)
|
ifeq ($(DUMP),1)
|
||||||
all: dumpinfo
|
all: dumpinfo
|
||||||
else
|
else
|
||||||
@ -146,41 +149,59 @@ define BuildKernel
|
|||||||
mostlyclean: FORCE
|
mostlyclean: FORCE
|
||||||
$(call Kernel/Clean)
|
$(call Kernel/Clean)
|
||||||
|
|
||||||
|
ifeq ($(DUMP),1)
|
||||||
|
dumpinfo:
|
||||||
|
@echo 'Target: $(BOARD)-$(KERNEL)'
|
||||||
|
@echo 'Target-Name: $(BOARDNAME) [$(KERNEL)]'
|
||||||
|
@echo 'Target-Path: $(subst $(TOPDIR)/,,$(PWD))'
|
||||||
|
@echo 'Target-Arch: $(ARCH)'
|
||||||
|
@echo 'Target-Features: $(FEATURES)'
|
||||||
|
@echo 'Linux-Version: $(LINUX_VERSION)'
|
||||||
|
@echo 'Linux-Release: $(LINUX_RELEASE)'
|
||||||
|
@echo 'Linux-Kernel-Arch: $(LINUX_KARCH)'
|
||||||
|
@echo 'Target-Description:'
|
||||||
|
@getvar $(call shvar,Target/Description)
|
||||||
|
@echo '@@'
|
||||||
|
@echo 'Default-Packages: $(DEFAULT_PACKAGES)'
|
||||||
|
ifneq ($(DUMPINFO),)
|
||||||
|
@$(DUMPINFO)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
define BuildKernel
|
define BuildKernel
|
||||||
endef
|
endef
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Profile/Default
|
||||||
|
NAME:=
|
||||||
|
PACKAGES:=
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Profile
|
||||||
|
$(eval $(call Profile/Default))
|
||||||
|
$(eval $(call Profile/$(1)))
|
||||||
|
DUMPINFO += \
|
||||||
|
echo "Target-Profile: $(1)"; \
|
||||||
|
echo "Target-Profile-Name: $(NAME)"; \
|
||||||
|
echo "Target-Profile-Packages: $(PACKAGES)";
|
||||||
|
endef
|
||||||
|
|
||||||
$(eval $(call shexport,Target/Description))
|
$(eval $(call shexport,Target/Description))
|
||||||
|
|
||||||
ifeq ($(DUMP),1)
|
download: $(DL_DIR)/$(LINUX_SOURCE)
|
||||||
dumpinfo:
|
prepare: $(LINUX_DIR)/.configured $(TMP_DIR)/.kernel.mk
|
||||||
@echo 'Target: $(BOARD)-$(KERNEL)'
|
compile: $(LINUX_DIR)/.modules
|
||||||
@echo 'Target-Name: $(BOARDNAME) [$(KERNEL)]'
|
install: $(LINUX_DIR)/.image
|
||||||
@echo 'Target-Path: $(subst $(TOPDIR)/,,$(PWD))'
|
|
||||||
@echo 'Target-Arch: $(ARCH)'
|
|
||||||
@echo 'Target-Features: $(FEATURES)'
|
|
||||||
@echo 'Linux-Version: $(LINUX_VERSION)'
|
|
||||||
@echo 'Linux-Release: $(LINUX_RELEASE)'
|
|
||||||
@echo 'Linux-Kernel-Arch: $(LINUX_KARCH)'
|
|
||||||
@echo 'Target-Description:'
|
|
||||||
@echo "$$$(call shvar,Target/Description)"
|
|
||||||
@echo '@@'
|
|
||||||
else
|
|
||||||
download: $(DL_DIR)/$(LINUX_SOURCE)
|
|
||||||
prepare: $(LINUX_DIR)/.configured $(TMP_DIR)/.kernel.mk
|
|
||||||
compile: $(LINUX_DIR)/.modules
|
|
||||||
install: $(LINUX_DIR)/.image
|
|
||||||
|
|
||||||
clean: FORCE
|
clean: FORCE
|
||||||
rm -f $(STAMP_DIR)/.linux-compile
|
rm -f $(STAMP_DIR)/.linux-compile
|
||||||
rm -rf $(KERNEL_BUILD_DIR)
|
rm -rf $(KERNEL_BUILD_DIR)
|
||||||
|
|
||||||
rebuild: FORCE
|
rebuild: FORCE
|
||||||
@$(MAKE) mostlyclean
|
@$(MAKE) mostlyclean
|
||||||
@if [ -f $(LINUX_KERNEL) ]; then \
|
@if [ -f $(LINUX_KERNEL) ]; then \
|
||||||
$(MAKE) clean; \
|
$(MAKE) clean; \
|
||||||
fi
|
fi
|
||||||
@$(MAKE) compile
|
@$(MAKE) compile
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -25,7 +25,6 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
define KernelPackage/sangam-atm-annex-a
|
define KernelPackage/sangam-atm-annex-a
|
||||||
SUBMENU:=Network Devices
|
SUBMENU:=Network Devices
|
||||||
DEPENDS:=@LINUX_2_4_AR7 +kmod-atm
|
DEPENDS:=@LINUX_2_4_AR7 +kmod-atm
|
||||||
DEFAULT:=y
|
|
||||||
TITLE:=AR7 ADSL driver (Annex A)
|
TITLE:=AR7 ADSL driver (Annex A)
|
||||||
DESCRIPTION:=The AR7 ADSL driver for Annex A
|
DESCRIPTION:=The AR7 ADSL driver for Annex A
|
||||||
VERSION:=$(PKG_VERSION)+$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)
|
VERSION:=$(PKG_VERSION)+$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)
|
||||||
|
@ -25,7 +25,6 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
define KernelPackage/avalanche-cpmac
|
define KernelPackage/avalanche-cpmac
|
||||||
SUBMENU:=Network Devices
|
SUBMENU:=Network Devices
|
||||||
DEPENDS:=@LINUX_2_4_AR7 +kmod-atm
|
DEPENDS:=@LINUX_2_4_AR7 +kmod-atm
|
||||||
DEFAULT:=y
|
|
||||||
TITLE:=AR7 Network driver (CPMAC)
|
TITLE:=AR7 Network driver (CPMAC)
|
||||||
DESCRIPTION:=AR7 Network driver (CPMAC)
|
DESCRIPTION:=AR7 Network driver (CPMAC)
|
||||||
VERSION:=$(PKG_VERSION)+$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)
|
VERSION:=$(PKG_VERSION)+$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)
|
||||||
|
@ -35,7 +35,6 @@ CONFIG_PACKAGE_base-files$(TARGET):=$(CONFIG_PACKAGE_base-files)
|
|||||||
define Package/base-files$(TARGET)
|
define Package/base-files$(TARGET)
|
||||||
SECTION:=base
|
SECTION:=base
|
||||||
CATEGORY:=Base system
|
CATEGORY:=Base system
|
||||||
DEFAULT:=y
|
|
||||||
TITLE:=Base filesystem for OpenWrt
|
TITLE:=Base filesystem for OpenWrt
|
||||||
DESCRIPTION:=\
|
DESCRIPTION:=\
|
||||||
This package contains a base filesystem and system scripts for OpenWrt.
|
This package contains a base filesystem and system scripts for OpenWrt.
|
||||||
@ -87,7 +86,6 @@ endef
|
|||||||
define Package/libgcc
|
define Package/libgcc
|
||||||
SECTION:=libs
|
SECTION:=libs
|
||||||
CATEGORY:=Base system
|
CATEGORY:=Base system
|
||||||
DEFAULT:=y
|
|
||||||
DEPENDS:=@!NATIVE_TOOLCHAIN
|
DEPENDS:=@!NATIVE_TOOLCHAIN
|
||||||
TITLE:=GCC support library
|
TITLE:=GCC support library
|
||||||
URL:=http://gcc.gnu.org/
|
URL:=http://gcc.gnu.org/
|
||||||
@ -106,7 +104,6 @@ endef
|
|||||||
define Package/uclibc
|
define Package/uclibc
|
||||||
SECTION:=libs
|
SECTION:=libs
|
||||||
CATEGORY:=Base system
|
CATEGORY:=Base system
|
||||||
DEFAULT:=y
|
|
||||||
DEPENDS:=@!NATIVE_TOOLCHAIN
|
DEPENDS:=@!NATIVE_TOOLCHAIN
|
||||||
TITLE:=C library embedded systems
|
TITLE:=C library embedded systems
|
||||||
URL:=http://uclibc.org/
|
URL:=http://uclibc.org/
|
||||||
|
@ -24,7 +24,6 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
define Package/bridge
|
define Package/bridge
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Base system
|
CATEGORY:=Base system
|
||||||
DEFAULT:=y
|
|
||||||
TITLE:=Ethernet bridging configuration utility
|
TITLE:=Ethernet bridging configuration utility
|
||||||
DESCRIPTION:=\
|
DESCRIPTION:=\
|
||||||
Manage ethernet bridging: a way to connect networks together to \\\
|
Manage ethernet bridging: a way to connect networks together to \\\
|
||||||
|
@ -44,7 +44,6 @@ endef
|
|||||||
|
|
||||||
define Package/kmod-brcm-wl
|
define Package/kmod-brcm-wl
|
||||||
$(call Package/kmod-brcm-wl/Default)
|
$(call Package/kmod-brcm-wl/Default)
|
||||||
DEFAULT:=y
|
|
||||||
TITLE+= (normal version)
|
TITLE+= (normal version)
|
||||||
DESCRIPTION+= (normal version).
|
DESCRIPTION+= (normal version).
|
||||||
endef
|
endef
|
||||||
@ -57,8 +56,8 @@ endef
|
|||||||
|
|
||||||
define Package/wlc
|
define Package/wlc
|
||||||
$(call Package/broadcom-wl/Default)
|
$(call Package/broadcom-wl/Default)
|
||||||
|
TITLE:=wl driver setup utility
|
||||||
DEFAULT:=y
|
DEFAULT:=y
|
||||||
TITLE:=Proprietary Broadcom wl driver setup utility
|
|
||||||
DESCRIPTION:=\
|
DESCRIPTION:=\
|
||||||
This package contains an utility for initializing the proprietary Broadcom \\\
|
This package contains an utility for initializing the proprietary Broadcom \\\
|
||||||
wl driver.
|
wl driver.
|
||||||
@ -74,7 +73,8 @@ endef
|
|||||||
|
|
||||||
define Package/nas
|
define Package/nas
|
||||||
$(call Package/broadcom-wl/Default)
|
$(call Package/broadcom-wl/Default)
|
||||||
DEPENDS+= +nvram
|
DEPENDS+=+nvram
|
||||||
|
DEFAULT:=y
|
||||||
TITLE:=Proprietary Broadcom WPA/WPA2 authenticator
|
TITLE:=Proprietary Broadcom WPA/WPA2 authenticator
|
||||||
DESCRIPTION:=\
|
DESCRIPTION:=\
|
||||||
This package contains the proprietary WPA/WPA2 authenticator (nas) for the \\\
|
This package contains the proprietary WPA/WPA2 authenticator (nas) for the \\\
|
||||||
|
@ -24,7 +24,6 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
define Package/busybox
|
define Package/busybox
|
||||||
SECTION:=base
|
SECTION:=base
|
||||||
CATEGORY:=Base system
|
CATEGORY:=Base system
|
||||||
DEFAULT:=y
|
|
||||||
TITLE:=Core utilities for embedded Linux
|
TITLE:=Core utilities for embedded Linux
|
||||||
URL:=http://busybox.net/
|
URL:=http://busybox.net/
|
||||||
MENU:=1
|
MENU:=1
|
||||||
|
@ -24,7 +24,6 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
define Package/dnsmasq
|
define Package/dnsmasq
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Base system
|
CATEGORY:=Base system
|
||||||
DEFAULT:=y
|
|
||||||
TITLE:=A lightweight DNS and DHCP server
|
TITLE:=A lightweight DNS and DHCP server
|
||||||
DESCRIPTION:=\
|
DESCRIPTION:=\
|
||||||
It is intended to provide coupled DNS and DHCP service to a LAN.
|
It is intended to provide coupled DNS and DHCP service to a LAN.
|
||||||
|
@ -29,7 +29,6 @@ define Package/dropbear
|
|||||||
$(call Package/dropbear/Default)
|
$(call Package/dropbear/Default)
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Base system
|
CATEGORY:=Base system
|
||||||
DEFAULT:=y
|
|
||||||
TITLE:=Small SSH2 client/server
|
TITLE:=Small SSH2 client/server
|
||||||
DESCRIPTION:=\
|
DESCRIPTION:=\
|
||||||
A small SSH2 server/client designed for small memory environments.
|
A small SSH2 server/client designed for small memory environments.
|
||||||
|
@ -38,7 +38,6 @@ endef
|
|||||||
|
|
||||||
define Package/iptables
|
define Package/iptables
|
||||||
$(call Package/iptables/Default)
|
$(call Package/iptables/Default)
|
||||||
DEFAULT:=y
|
|
||||||
TITLE:=IPv4 firewall administration tool
|
TITLE:=IPv4 firewall administration tool
|
||||||
MENU:=1
|
MENU:=1
|
||||||
endef
|
endef
|
||||||
|
@ -77,8 +77,8 @@ endif
|
|||||||
|
|
||||||
define KernelPackage/madwifi
|
define KernelPackage/madwifi
|
||||||
SUBMENU:=Wireless Drivers
|
SUBMENU:=Wireless Drivers
|
||||||
DEFAULT:=y if LINUX_2_6_BRCM || LINUX_2_6_ARUBA || LINUX_2_4_AR531X || LINUX_2_6_XSCALE, m if ALL
|
|
||||||
TITLE:=Driver for Atheros wireless chipsets
|
TITLE:=Driver for Atheros wireless chipsets
|
||||||
|
DEPENDS:=+wireless-tools
|
||||||
DESCRIPTION:=\
|
DESCRIPTION:=\
|
||||||
This package contains a driver for Atheros 802.11a/b/g chipsets.
|
This package contains a driver for Atheros 802.11a/b/g chipsets.
|
||||||
URL:=http://madwifi.org/
|
URL:=http://madwifi.org/
|
||||||
|
@ -19,7 +19,6 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
define Package/mtd
|
define Package/mtd
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
CATEGORY:=Base system
|
CATEGORY:=Base system
|
||||||
DEFAULT:=y
|
|
||||||
TITLE:=Update utility for trx firmware images
|
TITLE:=Update utility for trx firmware images
|
||||||
DESCRIPTION:=\
|
DESCRIPTION:=\
|
||||||
This package contains an utility useful to upgrade from other firmware or \\\
|
This package contains an utility useful to upgrade from other firmware or \\\
|
||||||
|
@ -30,7 +30,6 @@ define KernelPackage/nozomi
|
|||||||
DESCRIPTION:=Option Globetrotter HSDPA driver
|
DESCRIPTION:=Option Globetrotter HSDPA driver
|
||||||
URL:=http://www.pharscape.org/
|
URL:=http://www.pharscape.org/
|
||||||
DEPENDS:=@LINUX_2_4
|
DEPENDS:=@LINUX_2_4
|
||||||
DEFAULT:=m if ALL
|
|
||||||
VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
|
VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
|
||||||
FILES:=$(PKG_BUILD_DIR)/noz.$(LINUX_KMOD_SUFFIX)
|
FILES:=$(PKG_BUILD_DIR)/noz.$(LINUX_KMOD_SUFFIX)
|
||||||
AUTOLOAD:=$(call AutoLoad,70,noz)
|
AUTOLOAD:=$(call AutoLoad,70,noz)
|
||||||
|
@ -18,7 +18,6 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
define Package/nvram
|
define Package/nvram
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
DEFAULT:=y
|
|
||||||
DEPENDS:=@LINUX_2_4_BRCM
|
DEPENDS:=@LINUX_2_4_BRCM
|
||||||
TITLE:=Broadcom config utility
|
TITLE:=Broadcom config utility
|
||||||
DESCRIPTION:=\
|
DESCRIPTION:=\
|
||||||
|
@ -33,7 +33,6 @@ endef
|
|||||||
|
|
||||||
define Package/ppp
|
define Package/ppp
|
||||||
$(call Package/ppp/Default)
|
$(call Package/ppp/Default)
|
||||||
DEFAULT:=y
|
|
||||||
DEPENDS:=+kmod-ppp
|
DEPENDS:=+kmod-ppp
|
||||||
TITLE:=PPP daemon
|
TITLE:=PPP daemon
|
||||||
DESCRIPTION:=\
|
DESCRIPTION:=\
|
||||||
@ -44,7 +43,6 @@ endef
|
|||||||
define Package/ppp-mod-pppoa
|
define Package/ppp-mod-pppoa
|
||||||
$(call Package/ppp/Default)
|
$(call Package/ppp/Default)
|
||||||
DEPENDS:=ppp +linux-atm +kmod-pppoa
|
DEPENDS:=ppp +linux-atm +kmod-pppoa
|
||||||
DEFAULT:=y if LINUX_2_4_AR7
|
|
||||||
TITLE:=PPPoA plugin
|
TITLE:=PPPoA plugin
|
||||||
DESCRIPTION:=\
|
DESCRIPTION:=\
|
||||||
This package contains a PPPoA (PPP over ATM) plugin for ppp.
|
This package contains a PPPoA (PPP over ATM) plugin for ppp.
|
||||||
@ -52,7 +50,6 @@ endef
|
|||||||
|
|
||||||
define Package/ppp-mod-pppoe
|
define Package/ppp-mod-pppoe
|
||||||
$(call Package/ppp/Default)
|
$(call Package/ppp/Default)
|
||||||
DEFAULT:=y
|
|
||||||
DEPENDS:=ppp +kmod-pppoe
|
DEPENDS:=ppp +kmod-pppoe
|
||||||
TITLE:=PPPoE plugin
|
TITLE:=PPPoE plugin
|
||||||
DESCRIPTION:=\
|
DESCRIPTION:=\
|
||||||
|
@ -20,7 +20,6 @@ define Package/kmod-switch
|
|||||||
SECTION:=kernel
|
SECTION:=kernel
|
||||||
CATEGORY:=Kernel drivers
|
CATEGORY:=Kernel drivers
|
||||||
DEPENDS:=@LINUX_2_6_BRCM||LINUX_2_4_BRCM
|
DEPENDS:=@LINUX_2_6_BRCM||LINUX_2_4_BRCM
|
||||||
DEFAULT:=y
|
|
||||||
TITLE:=Switch drivers
|
TITLE:=Switch drivers
|
||||||
DESCRIPTION:=\
|
DESCRIPTION:=\
|
||||||
This package contains switch drivers for ADM6996L and BCM53XX RoboSwitch.
|
This package contains switch drivers for ADM6996L and BCM53XX RoboSwitch.
|
||||||
|
@ -26,7 +26,6 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
define Package/wireless-tools
|
define Package/wireless-tools
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Base system
|
CATEGORY:=Base system
|
||||||
DEFAULT:=y
|
|
||||||
TITLE:=Tools for manipulating Linux Wireless Extensions
|
TITLE:=Tools for manipulating Linux Wireless Extensions
|
||||||
DESCRIPTION:=\
|
DESCRIPTION:=\
|
||||||
This package contains a collection of tools for configuring wireless \\\
|
This package contains a collection of tools for configuring wireless \\\
|
||||||
|
@ -19,7 +19,8 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
define Package/kmod-wlcompat/Default
|
define Package/kmod-wlcompat/Default
|
||||||
SECTION:=kernel
|
SECTION:=kernel
|
||||||
CATEGORY:=Kernel drivers
|
CATEGORY:=Kernel drivers
|
||||||
DEPENDS:=kmod-brcm-wl
|
DEPENDS:=@PACKAGE_kmod-brcm-wl||PACKAGE_kmod-brcm-wl-mimo +wireless-tools
|
||||||
|
DEFAULT:=y
|
||||||
TITLE:=Broadcom wl wrapper module
|
TITLE:=Broadcom wl wrapper module
|
||||||
DESCRIPTION:=\
|
DESCRIPTION:=\
|
||||||
This package contains a wrapper module, that provides Wireless Extension \\\
|
This package contains a wrapper module, that provides Wireless Extension \\\
|
||||||
@ -29,7 +30,6 @@ endef
|
|||||||
|
|
||||||
define Package/kmod-wlcompat
|
define Package/kmod-wlcompat
|
||||||
$(call Package/kmod-wlcompat/Default)
|
$(call Package/kmod-wlcompat/Default)
|
||||||
DEFAULT:=y
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/kmod-wlcompat-debug
|
define Package/kmod-wlcompat-debug
|
||||||
|
@ -89,10 +89,13 @@ sub print_category($) {
|
|||||||
if ($c > 0) {
|
if ($c > 0) {
|
||||||
$title .= ("." x $c). " ". $pkg->{title};
|
$title .= ("." x $c). " ". $pkg->{title};
|
||||||
}
|
}
|
||||||
|
print "\tconfig DEFAULT_".$pkg->{name}."\n";
|
||||||
|
print "\t\tbool\n\n";
|
||||||
print "\t";
|
print "\t";
|
||||||
$pkg->{menu} and print "menu";
|
$pkg->{menu} and print "menu";
|
||||||
print "config PACKAGE_".$pkg->{name}."\n";
|
print "config PACKAGE_".$pkg->{name}."\n";
|
||||||
print "\t\ttristate \"$title\"\n";
|
print "\t\ttristate \"$title\"\n";
|
||||||
|
print "\t\tdefault y if DEFAULT_".$pkg->{name}."\n";
|
||||||
foreach my $default (split /\s*,\s*/, $pkg->{default}) {
|
foreach my $default (split /\s*,\s*/, $pkg->{default}) {
|
||||||
print "\t\tdefault $default\n";
|
print "\t\tdefault $default\n";
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,8 @@ use strict;
|
|||||||
|
|
||||||
my @target;
|
my @target;
|
||||||
my $target;
|
my $target;
|
||||||
|
my $profiles;
|
||||||
|
my $profile;
|
||||||
|
|
||||||
sub features(@) {
|
sub features(@) {
|
||||||
my $ret;
|
my $ret;
|
||||||
@ -30,8 +32,11 @@ sub features(@) {
|
|||||||
while (<>) {
|
while (<>) {
|
||||||
chomp;
|
chomp;
|
||||||
/^Target:\s*((.+)-(\d+\.\d+))\s*$/ and do {
|
/^Target:\s*((.+)-(\d+\.\d+))\s*$/ and do {
|
||||||
|
my $conf = uc $3.'_'.$2;
|
||||||
|
$conf =~ tr/\.-/__/;
|
||||||
$target = {
|
$target = {
|
||||||
id => $1,
|
id => $1,
|
||||||
|
conf => $conf,
|
||||||
board => $2,
|
board => $2,
|
||||||
kernel => $3
|
kernel => $3
|
||||||
};
|
};
|
||||||
@ -56,6 +61,22 @@ while (<>) {
|
|||||||
/^Linux-Version:\s*(.+)\s*$/ and $target->{version} = $1;
|
/^Linux-Version:\s*(.+)\s*$/ and $target->{version} = $1;
|
||||||
/^Linux-Release:\s*(.+)\s*$/ and $target->{release} = $1;
|
/^Linux-Release:\s*(.+)\s*$/ and $target->{release} = $1;
|
||||||
/^Linux-Kernel-Arch:\s*(.+)\s*$/ and $target->{karch} = $1;
|
/^Linux-Kernel-Arch:\s*(.+)\s*$/ and $target->{karch} = $1;
|
||||||
|
/^Default-Packages:\s*(.+)\s*$/ and do {
|
||||||
|
my @pkgs = split /\s+/, $1;
|
||||||
|
$target->{defaultpkgs} = \@pkgs;
|
||||||
|
};
|
||||||
|
/^Target-Profile:\s*(.+)\s*$/ and do {
|
||||||
|
$profiles = $target->{profiles} or $target->{profiles} = $profiles = [];
|
||||||
|
$profile = {
|
||||||
|
id => $1
|
||||||
|
};
|
||||||
|
push @$profiles, $profile;
|
||||||
|
};
|
||||||
|
/^Target-Profile-Name:\s*(.+)\s*$/ and $profile->{name} = $1;
|
||||||
|
/^Target-Profile-Packages:\s*(.+)\s*$/ and do {
|
||||||
|
my @pkgs = split /\s+/, $1;
|
||||||
|
$profile->{pkgs} = \@pkgs;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@target = sort {
|
@target = sort {
|
||||||
@ -63,13 +84,18 @@ while (<>) {
|
|||||||
} @target;
|
} @target;
|
||||||
|
|
||||||
|
|
||||||
|
print <<EOF;
|
||||||
|
choice
|
||||||
|
prompt "Target System"
|
||||||
|
default LINUX_2_4_BRCM
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
foreach $target (@target) {
|
foreach $target (@target) {
|
||||||
my $conf = uc $target->{kernel}.'_'.$target->{board};
|
|
||||||
my $features = features(@{$target->{features}});
|
my $features = features(@{$target->{features}});
|
||||||
my $help = $target->{desc};
|
my $help = $target->{desc};
|
||||||
chomp $features;
|
chomp $features;
|
||||||
$features .= "\n";
|
$features .= "\n";
|
||||||
$conf =~ tr/\.-/__/;
|
|
||||||
if ($help =~ /\w+/) {
|
if ($help =~ /\w+/) {
|
||||||
$help =~ s/^\s*/\t /mg;
|
$help =~ s/^\s*/\t /mg;
|
||||||
$help = "\thelp\n$help";
|
$help = "\thelp\n$help";
|
||||||
@ -78,7 +104,7 @@ foreach $target (@target) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
print <<EOF
|
print <<EOF
|
||||||
config LINUX_$conf
|
config LINUX_$target->{conf}
|
||||||
bool "$target->{name}"
|
bool "$target->{name}"
|
||||||
select $target->{arch}
|
select $target->{arch}
|
||||||
$features$help
|
$features$help
|
||||||
@ -86,3 +112,87 @@ $features$help
|
|||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print <<EOF;
|
||||||
|
if DEVEL
|
||||||
|
|
||||||
|
config LINUX_2_6_ARM
|
||||||
|
bool "UNSUPPORTED little-endian arm platform"
|
||||||
|
depends BROKEN
|
||||||
|
select LINUX_2_6
|
||||||
|
select arm
|
||||||
|
|
||||||
|
config LINUX_2_6_CRIS
|
||||||
|
bool "UNSUPPORTED cris platform"
|
||||||
|
depends BROKEN
|
||||||
|
select LINUX_2_6
|
||||||
|
select cris
|
||||||
|
|
||||||
|
config LINUX_2_6_M68K
|
||||||
|
bool "UNSUPPORTED m68k platform"
|
||||||
|
depends BROKEN
|
||||||
|
select LINUX_2_6
|
||||||
|
select m68k
|
||||||
|
|
||||||
|
config LINUX_2_6_SH3
|
||||||
|
bool "UNSUPPORTED little-endian sh3 platform"
|
||||||
|
depends BROKEN
|
||||||
|
select LINUX_2_6
|
||||||
|
select sh3
|
||||||
|
|
||||||
|
config LINUX_2_6_SH3EB
|
||||||
|
bool "UNSUPPORTED big-endian sh3 platform"
|
||||||
|
depends BROKEN
|
||||||
|
select LINUX_2_6
|
||||||
|
select sh3eb
|
||||||
|
|
||||||
|
config LINUX_2_6_SH4
|
||||||
|
bool "UNSUPPORTED little-endian sh4 platform"
|
||||||
|
depends BROKEN
|
||||||
|
select LINUX_2_6
|
||||||
|
select sh4
|
||||||
|
|
||||||
|
config LINUX_2_6_SH4EB
|
||||||
|
bool "UNSUPPORTED big-endian sh4 platform"
|
||||||
|
depends BROKEN
|
||||||
|
select LINUX_2_6
|
||||||
|
select sh4eb
|
||||||
|
|
||||||
|
config LINUX_2_6_SPARC
|
||||||
|
bool "UNSUPPORTED sparc platform"
|
||||||
|
depends BROKEN
|
||||||
|
select LINUX_2_6
|
||||||
|
select sparc
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "Target Profile"
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
|
foreach $target (@target) {
|
||||||
|
my $profiles;
|
||||||
|
|
||||||
|
$profiles = $target->{profiles} or $profiles = [
|
||||||
|
{
|
||||||
|
id => 'Default',
|
||||||
|
name => 'Default',
|
||||||
|
pkgs => []
|
||||||
|
}
|
||||||
|
];
|
||||||
|
foreach my $profile (@$profiles) {
|
||||||
|
print <<EOF;
|
||||||
|
config LINUX_$target->{conf}_$profile->{id}
|
||||||
|
bool "$profile->{name}"
|
||||||
|
depends LINUX_$target->{conf}
|
||||||
|
EOF
|
||||||
|
foreach my $pkg (@{$target->{defaultpkgs}}, @{$profile->{pkgs}}) {
|
||||||
|
print "\tselect DEFAULT_$pkg\n";
|
||||||
|
}
|
||||||
|
print "\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
print "endchoice\n";
|
||||||
|
@ -1,64 +1,5 @@
|
|||||||
choice
|
|
||||||
prompt "Target System"
|
|
||||||
default LINUX_2_4_BRCM
|
|
||||||
|
|
||||||
source "tmp/.config-target.in"
|
source "tmp/.config-target.in"
|
||||||
|
|
||||||
if DEVEL
|
|
||||||
|
|
||||||
config LINUX_2_6_ARM
|
|
||||||
bool "UNSUPPORTED little-endian arm platform"
|
|
||||||
depends BROKEN
|
|
||||||
select LINUX_2_6
|
|
||||||
select arm
|
|
||||||
|
|
||||||
config LINUX_2_6_CRIS
|
|
||||||
bool "UNSUPPORTED cris platform"
|
|
||||||
depends BROKEN
|
|
||||||
select LINUX_2_6
|
|
||||||
select cris
|
|
||||||
|
|
||||||
config LINUX_2_6_M68K
|
|
||||||
bool "UNSUPPORTED m68k platform"
|
|
||||||
depends BROKEN
|
|
||||||
select LINUX_2_6
|
|
||||||
select m68k
|
|
||||||
|
|
||||||
config LINUX_2_6_SH3
|
|
||||||
bool "UNSUPPORTED little-endian sh3 platform"
|
|
||||||
depends BROKEN
|
|
||||||
select LINUX_2_6
|
|
||||||
select sh3
|
|
||||||
|
|
||||||
config LINUX_2_6_SH3EB
|
|
||||||
bool "UNSUPPORTED big-endian sh3 platform"
|
|
||||||
depends BROKEN
|
|
||||||
select LINUX_2_6
|
|
||||||
select sh3eb
|
|
||||||
|
|
||||||
config LINUX_2_6_SH4
|
|
||||||
bool "UNSUPPORTED little-endian sh4 platform"
|
|
||||||
depends BROKEN
|
|
||||||
select LINUX_2_6
|
|
||||||
select sh4
|
|
||||||
|
|
||||||
config LINUX_2_6_SH4EB
|
|
||||||
bool "UNSUPPORTED big-endian sh4 platform"
|
|
||||||
depends BROKEN
|
|
||||||
select LINUX_2_6
|
|
||||||
select sh4eb
|
|
||||||
|
|
||||||
config LINUX_2_6_SPARC
|
|
||||||
bool "UNSUPPORTED sparc platform"
|
|
||||||
depends BROKEN
|
|
||||||
select LINUX_2_6
|
|
||||||
select sparc
|
|
||||||
|
|
||||||
endif
|
|
||||||
|
|
||||||
endchoice
|
|
||||||
|
|
||||||
|
|
||||||
# Kernel/Hardware features
|
# Kernel/Hardware features
|
||||||
|
|
||||||
config LINUX_2_4
|
config LINUX_2_4
|
||||||
|
@ -10,6 +10,7 @@ ARCH:=mipsel
|
|||||||
BOARD:=ar7
|
BOARD:=ar7
|
||||||
BOARDNAME:=TI AR7
|
BOARDNAME:=TI AR7
|
||||||
FEATURES:=atm squashfs jffs2
|
FEATURES:=atm squashfs jffs2
|
||||||
|
DEFAULT_PACKAGES += kmod-avalanche-cpmac
|
||||||
|
|
||||||
define Target/Description
|
define Target/Description
|
||||||
Build firmware images for TI AR7 based routers (w.g. Linksys WAG54G v2)
|
Build firmware images for TI AR7 based routers (w.g. Linksys WAG54G v2)
|
||||||
@ -20,4 +21,23 @@ LINUX_RELEASE:=1
|
|||||||
LINUX_KERNEL_MD5SUM:=38f4d0830e95a20f4bfed17622d5557c
|
LINUX_KERNEL_MD5SUM:=38f4d0830e95a20f4bfed17622d5557c
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/kernel-build.mk
|
include $(INCLUDE_DIR)/kernel-build.mk
|
||||||
|
|
||||||
|
define Profile/AnnexA
|
||||||
|
NAME:=ADSL Annex A (default)
|
||||||
|
PACKAGES:=kmod-sangam-atm-annex-a ppp-mod-pppoa
|
||||||
|
endef
|
||||||
|
$(eval $(call Profile,AnnexA))
|
||||||
|
|
||||||
|
define Profile/AnnexB
|
||||||
|
NAME:=ADSL Annex B
|
||||||
|
PACKAGES:=kmod-sangam-atm-annex-b ppp-mod-pppoa
|
||||||
|
endef
|
||||||
|
$(eval $(call Profile,AnnexB))
|
||||||
|
|
||||||
|
define Profile/None
|
||||||
|
NAME:=No ADSL
|
||||||
|
PACKAGES:=
|
||||||
|
endef
|
||||||
|
$(eval $(call Profile,None))
|
||||||
|
|
||||||
$(eval $(call BuildKernel))
|
$(eval $(call BuildKernel))
|
||||||
|
@ -10,6 +10,7 @@ ARCH:=mips
|
|||||||
BOARD:=aruba
|
BOARD:=aruba
|
||||||
BOARDNAME:=Aruba
|
BOARDNAME:=Aruba
|
||||||
FEATURES:=jffs2 pci usb
|
FEATURES:=jffs2 pci usb
|
||||||
|
DEFAULT_PACKAGES += kmod-madwifi
|
||||||
|
|
||||||
define Target/Description
|
define Target/Description
|
||||||
Build firmware images for Aruba boards
|
Build firmware images for Aruba boards
|
||||||
|
@ -10,6 +10,7 @@ ARCH:=mipsel
|
|||||||
BOARD:=brcm
|
BOARD:=brcm
|
||||||
BOARDNAME:=Broadcom BCM947xx/953xx
|
BOARDNAME:=Broadcom BCM947xx/953xx
|
||||||
FEATURES:=pci usb pcmcia squashfs jffs2
|
FEATURES:=pci usb pcmcia squashfs jffs2
|
||||||
|
DEFAULT_PACKAGES += kmod-switch nvram
|
||||||
|
|
||||||
define Target/Description
|
define Target/Description
|
||||||
Build firmware images for Broadcom based routers
|
Build firmware images for Broadcom based routers
|
||||||
@ -26,4 +27,59 @@ LINUX_KERNEL_MD5SUM:=38f4d0830e95a20f4bfed17622d5557c
|
|||||||
|
|
||||||
include $(INCLUDE_DIR)/kernel-build.mk
|
include $(INCLUDE_DIR)/kernel-build.mk
|
||||||
|
|
||||||
|
define Profile/Broadcom
|
||||||
|
NAME:=Generic, Broadcom WiFi (default)
|
||||||
|
PACKAGES:=kmod-brcm-wl
|
||||||
|
endef
|
||||||
|
$(eval $(call Profile,Broadcom))
|
||||||
|
|
||||||
|
define Profile/BroadcomMimo
|
||||||
|
NAME:=Generic, Broadcom WiFi (MIMO)
|
||||||
|
PACKAGES:=kmod-brcm-wl-mimo
|
||||||
|
endef
|
||||||
|
$(eval $(call Profile,BroadcomMimo))
|
||||||
|
|
||||||
|
define Profile/Atheros
|
||||||
|
NAME:=Generic, Atheros WiFi
|
||||||
|
PACKAGES:=kmod-madwifi
|
||||||
|
endef
|
||||||
|
$(eval $(call Profile,Atheros))
|
||||||
|
|
||||||
|
define Profile/None
|
||||||
|
NAME:=Generic, No WiFi
|
||||||
|
PACKAGES:=
|
||||||
|
endef
|
||||||
|
$(eval $(call Profile,None))
|
||||||
|
|
||||||
|
|
||||||
|
define Profile/WRT54G3G
|
||||||
|
NAME:=Linksys WRT54G3G
|
||||||
|
PACKAGES:=kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-pcmcia-core kmod-pcmcia-serial kmod-nozomi comgt
|
||||||
|
endef
|
||||||
|
$(eval $(call Profile,WRT54G3G))
|
||||||
|
|
||||||
|
define Profile/WL500G
|
||||||
|
NAME:=ASUS WL-500g
|
||||||
|
PACKAGES:=kmod-usb-core kmod-usb-ohci kmod-lp
|
||||||
|
endef
|
||||||
|
$(eval $(call Profile,WL500G))
|
||||||
|
|
||||||
|
define Profile/WL500GD
|
||||||
|
NAME:=ASUS WL-500g Deluxe
|
||||||
|
PACKAGES:=kmod-usb-core kmod-usb-uhci kmod-usb2
|
||||||
|
endef
|
||||||
|
$(eval $(call Profile,WL500GD))
|
||||||
|
|
||||||
|
define Profile/WL500GP
|
||||||
|
NAME:=ASUS WL-500g Premium
|
||||||
|
PACKAGES:=kmod-usb-core kmod-usb-ohci kmod-usb2
|
||||||
|
endef
|
||||||
|
$(eval $(call Profile,WL500GP))
|
||||||
|
|
||||||
|
define Profile/WLHDD
|
||||||
|
NAME:=WL-HDD
|
||||||
|
PACKAGES:=kmod-usb-core kmod-usb-ohci kmod-ide-core kmod-ide-pdc202xx
|
||||||
|
endef
|
||||||
|
$(eval $(call Profile,WLHDD))
|
||||||
|
|
||||||
$(eval $(call BuildKernel))
|
$(eval $(call BuildKernel))
|
||||||
|
@ -10,6 +10,7 @@ ARCH:=mipsel
|
|||||||
BOARD:=brcm
|
BOARD:=brcm
|
||||||
BOARDNAME:=Broadcom BCM947xx/953xx
|
BOARDNAME:=Broadcom BCM947xx/953xx
|
||||||
FEATURES:=pci usb pcmcia squashfs jffs2
|
FEATURES:=pci usb pcmcia squashfs jffs2
|
||||||
|
DEFAULT_PACKAGES += kmod-switch
|
||||||
|
|
||||||
define Target/Description
|
define Target/Description
|
||||||
Build firmware images for Broadcom based routers
|
Build firmware images for Broadcom based routers
|
||||||
@ -26,4 +27,16 @@ LINUX_KERNEL_MD5SUM:=37ddefe96625502161f075b9d907f21e
|
|||||||
|
|
||||||
include $(INCLUDE_DIR)/kernel-build.mk
|
include $(INCLUDE_DIR)/kernel-build.mk
|
||||||
|
|
||||||
|
define Profile/Atheros
|
||||||
|
NAME:=Atheros WiFi (default)
|
||||||
|
PACKAGES:=kmod-madwifi
|
||||||
|
endef
|
||||||
|
$(eval $(call Profile,Atheros))
|
||||||
|
|
||||||
|
define Profile/None
|
||||||
|
NAME:=No WiFi
|
||||||
|
PACKAGES:=
|
||||||
|
endef
|
||||||
|
$(eval $(call Profile,None))
|
||||||
|
|
||||||
$(eval $(call BuildKernel))
|
$(eval $(call BuildKernel))
|
||||||
|
Loading…
Reference in New Issue
Block a user