fix BR2_ and CONFIG_ issues
fix BR2_ and CONFIG_ issues


git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3769 3c298f89-4303-0410-b956-a3cf2f4a3e73

file:a/Config.in -> file:b/Config.in
--- a/Config.in
+++ b/Config.in
@@ -34,6 +34,7 @@
 	    Number of jobs to run simultanesouly
 
 source "toolchain/Config.in"
+source "target/linux/Config.in"
 source ".config.in"
 
 

--- a/target/Config.in
+++ b/target/Config.in
@@ -74,7 +74,7 @@
 	  Build firmware for AMD Alchemy 1500 boards
 	  (e.g. 4G-Systems Mesh/Access Cube ...)
 
-if CONFIG_DEVEL
+if DEVEL
 
 config LINUX_2_6_ARM
 	bool "UNSUPPORTED little-endian arm platform"
@@ -195,7 +195,7 @@
 	default "i386"    if i386
 	default "m68k"    if m68k
 	default "mips"    if mips
-	default "mipsel"  if mipsel || !CONFIG_DEVEL
+	default "mipsel"  if mipsel || !DEVEL
 	default "powerpc" if powerpc
 	default "sh3"     if sh3
 	default "sh3eb"   if sh3eb

--- a/target/linux/Config.in
+++ b/target/linux/Config.in
@@ -1,19 +1,19 @@
 menu "Target Root Filesystem"
 
-	config BR2_TARGET_ROOTFS_JFFS2
+	config TARGET_ROOTFS_JFFS2
 		bool "jffs2"
 		default y
 		help
 		  Build a jffs2 root filesystem
 
-	config BR2_TARGET_ROOTFS_SQUASHFS_LZMA
+	config TARGET_ROOTFS_SQUASHFS_LZMA
 		bool "squashfs-lzma"
 		default y
-		depends !BR2_LINUX_2_6_ARUBA
+		depends !LINUX_2_6_ARUBA
 		help
 		  Build a squashfs-lzma root filesystem
 
-	config BR2_TARGET_ROOTFS_TGZ
+	config TARGET_ROOTFS_TGZ
 		bool "tgz"
 		default y
 		help
@@ -25,88 +25,90 @@
 
 comment "Device specific configuration"
 
+source "target/linux/*-2.[46]/Config.in"
+
 comment "Kernel modules"
 
 menu "Networking modules"
 
-config BR2_PACKAGE_KMOD_ATM
+config PACKAGE_KMOD_ATM
 	prompt "kmod-atm.......................... ATM support"
 	tristate
-	default y if BR2_LINUX_2_4_AR7
+	default y if LINUX_2_4_AR7
 	default m
 	help
 	  ATM support
 
-config BR2_PACKAGE_KMOD_GRE
+config PACKAGE_KMOD_GRE
 	prompt "kmod-gre.......................... GRE tunneling driver"
 	tristate
 	default m
 	help
 	  Kernel support for GRE tunnels
 	
-config BR2_PACKAGE_KMOD_IMQ
+config PACKAGE_KMOD_IMQ
         prompt "kmod-imq.......................... Intermediate Queueing device"
         tristate
         default m
         help
           Kernel support for the Intermediate Queueing device
 
-config BR2_PACKAGE_KMOD_IPV6
+config PACKAGE_KMOD_IPV6
 	prompt "kmod-ipv6......................... IPv6 support"
 	tristate
 	default m
 	help
 	  Kernel modules for IPv6 protocol support
 
-config BR2_PACKAGE_KMOD_PPP
+config PACKAGE_KMOD_PPP
 	prompt "kmod-ppp.......................... PPP support"
 	tristate
 	default m
 	help
 	  Kernel support for PPP
 
-config BR2_PACKAGE_KMOD_MPPE
+config PACKAGE_KMOD_MPPE
 	prompt   "kmod-mppe....................... PPP MPPE/MPPC module"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_PPP
-	select BR2_PACKAGE_KMOD_CRYPTO
+	depends PACKAGE_KMOD_PPP
+	select PACKAGE_KMOD_CRYPTO
 	help
 	  Support for Microsoft PPP Encryption/Compression
 
-config BR2_PACKAGE_KMOD_PPPOATM
+config PACKAGE_KMOD_PPPOATM
 	prompt   "kmod-pppoatm.................... PPPoA (PPP over ATM) kernel support"
 	tristate
-	default y if BR2_LINUX_2_4_AR7
-	default m
-	depends BR2_PACKAGE_KMOD_PPP
-	select BR2_PACKAGE_KMOD_ATM
+	default y if LINUX_2_4_AR7
+	default m
+	depends PACKAGE_KMOD_PPP
+	select PACKAGE_KMOD_ATM
 	help
 	  Support for PPP over ATM
 
-config BR2_PACKAGE_KMOD_PPPOE
+config PACKAGE_KMOD_PPPOE
 	prompt   "kmod-pppoe...................... PPPoE (PPP over Ethernet) kernel support"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_PPP
+	depends PACKAGE_KMOD_PPP
 	help
 	  Support for PPP over Ethernet
 
-config BR2_PACKAGE_KMOD_RING
+config PACKAGE_KMOD_RING
 	prompt "kmod-ring......................... PF Ring"
 	tristate
 	default m
 	help
 	  PF Ring
 
-config BR2_PACKAGE_KMOD_SCHED
+config PACKAGE_KMOD_SCHED
 	prompt "kmod-sched........................ Traffic schedulers"
 	tristate
 	default m
 	help
 	  Kernel schedulers for IP traffic
 
-config BR2_PACKAGE_KMOD_TUN
+config PACKAGE_KMOD_TUN
 	prompt "kmod-tun.......................... Universal TUN/TAP driver"
 	tristate
 	default m
@@ -117,44 +119,44 @@
 
 menu "Filtering/Firewalling"
 
-config BR2_PACKAGE_KMOD_ARPTABLES
+config PACKAGE_KMOD_ARPTABLES
 	prompt "kmod-arptables.................... ARP firewalling support"
 	tristate
 	default m
 	help
 	  Kernel modules for ARP firewalling
 
-config BR2_PACKAGE_KMOD_EBTABLES
+config PACKAGE_KMOD_EBTABLES
 	prompt "kmod-ebtables..................... Ethernet Bridge firewalling support"
 	tristate
 	default m
 	help
 	  Kernel modules for bridge firewalling
 
-config BR2_PACKAGE_KMOD_IPTABLES
+config PACKAGE_KMOD_IPTABLES
 	prompt "kmod-iptables..................... Core Netfilter modules for IPv4 firewalling"
 	tristate
 	default y
 	help
 	  Kernel modules for IPv4 firewalling
 
-config BR2_PACKAGE_KMOD_IPTABLES_EXTRA
+config PACKAGE_KMOD_IPTABLES_EXTRA
 	prompt "kmod-iptables-extra............... Extra Netfilter modules for IPv4 firewalling (meta-package)"
 	tristate
 	default m
-	select BR2_PACKAGE_KMOD_IPT_CONNTRACK
-	select BR2_PACKAGE_KMOD_IPT_FILTER
-	select BR2_PACKAGE_KMOD_IPT_IPOPT
-	select BR2_PACKAGE_KMOD_IPT_IPSEC
-	select BR2_PACKAGE_KMOD_IPT_NAT
-	select BR2_PACKAGE_KMOD_IPT_NAT_EXTRA
-	select BR2_PACKAGE_KMOD_IPT_QUEUE
-	select BR2_PACKAGE_KMOD_IPT_ULOG
-	select BR2_PACKAGE_KMOD_IPT_EXTRA
+	select PACKAGE_KMOD_IPT_CONNTRACK
+	select PACKAGE_KMOD_IPT_FILTER
+	select PACKAGE_KMOD_IPT_IPOPT
+	select PACKAGE_KMOD_IPT_IPSEC
+	select PACKAGE_KMOD_IPT_NAT
+	select PACKAGE_KMOD_IPT_NAT_EXTRA
+	select PACKAGE_KMOD_IPT_QUEUE
+	select PACKAGE_KMOD_IPT_ULOG
+	select PACKAGE_KMOD_IPT_EXTRA
 	help
 	  Extra Netfilter kernel modules for IPv4 firewalling (meta-package)
 
-config BR2_PACKAGE_KMOD_IPT_CONNTRACK
+config PACKAGE_KMOD_IPT_CONNTRACK
 	prompt "kmod-ipt-conntrack................ Netfilter modules for connection tracking"
 	tristate
 	default m
@@ -166,7 +168,7 @@
 	    * ipt_helper
 	    * ipt_connmark/CONNMARK
 
-config BR2_PACKAGE_KMOD_IPT_FILTER
+config PACKAGE_KMOD_IPT_FILTER
 	prompt "kmod-ipt-filter................... Netfilter modules for packet content inspection"
 	tristate
 	default m
@@ -177,7 +179,7 @@
 	    * ipt_ipp2p
 	    * ipt_layer7
 
-config BR2_PACKAGE_KMOD_IPT_IPOPT
+config PACKAGE_KMOD_IPT_IPOPT
 	prompt "kmod-ipt-ipopt.................... Netfilter modules for matching/changing IP packet options"
 	tristate
 	default m
@@ -194,7 +196,7 @@
 	    * ipt_ttl/TTL
 	    * ipt_unclean
 
-config BR2_PACKAGE_KMOD_IPT_IPSEC
+config PACKAGE_KMOD_IPT_IPSEC
 	prompt "kmod-ipt-ipsec.................... Netfilter modules for matching IPsec packets"
 	tristate
 	default m
@@ -205,7 +207,7 @@
 	    * ipt_ah
 	    * ipt_esp
 
-config BR2_PACKAGE_KMOD_IPT_NAT
+config PACKAGE_KMOD_IPT_NAT
 	prompt "kmod-ipt-nat...................... Netfilter modules for different NAT targets"
 	tristate
 	default m
@@ -215,7 +217,7 @@
 	  Includes: 
 	    * ipt_REDIRECT
 
-config BR2_PACKAGE_KMOD_IPT_NAT_EXTRA
+config PACKAGE_KMOD_IPT_NAT_EXTRA
 	prompt "kmod-ipt-nat-extra................ Extra Netfilter NAT modules for special protocols"
 	tristate
 	default m
@@ -233,7 +235,7 @@
 	    * ip_nat_snmp_basic
 	    * ip_conntrack_tftp
 
-config BR2_PACKAGE_KMOD_IPT_QUEUE
+config PACKAGE_KMOD_IPT_QUEUE
 	prompt "kmod-ipt-queue.................... Netfilter module for user-space packet queueing"
 	tristate
 	default m
@@ -243,7 +245,7 @@
 	  Includes:
 	    * ipt_QUEUE
 
-config BR2_PACKAGE_KMOD_IPT_ULOG
+config PACKAGE_KMOD_IPT_ULOG
 	prompt "kmod-ipt-ulog..................... Netfilter module for user-space packet logging"
 	tristate
 	default m
@@ -253,7 +255,7 @@
 	  Includes:
 	    * ipt_ULOG
 
-config BR2_PACKAGE_KMOD_IPT_EXTRA
+config PACKAGE_KMOD_IPT_EXTRA
 	prompt "kmod-ipt-extra.................... Other extra Netfilter modules"
 	tristate
 	default m
@@ -267,11 +269,11 @@
 	    * ipt_pkttype
 	    * ipt_recent
 
-config BR2_PACKAGE_KMOD_IP6TABLES
+config PACKAGE_KMOD_IP6TABLES
 	prompt "kmod-ip6tables.................... Kernel modules for ip6tables"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_IPV6
+	depends PACKAGE_KMOD_IPV6
 	help
 	  IPv6 firewalling support
 
@@ -279,11 +281,11 @@
 
 menu "Block devices support"
 
-config BR2_PACKAGE_KMOD_IDE
+config PACKAGE_KMOD_IDE
 	prompt "kmod-ide.......................... IDE support"
 	tristate
 	default m
-	depends BR2_LINUX_2_4_X86 || BR2_LINUX_2_6_X86 || BR2_LINUX_2_4_BRCM || BR2_LINUX_2_6_BRCM
+	depends LINUX_2_4_X86 || LINUX_2_6_X86 || LINUX_2_4_BRCM || LINUX_2_6_BRCM
 	help
 	  Kernel modules for IDE support
 	  useful for usb mass storage devices (e.g. on WL-HDD)
@@ -292,16 +294,16 @@
 	    - ide-core
 	    - ide-detect
 	    - ide-disk
-	    - pdc202xx_old
-
-config BR2_PACKAGE_KMOD_LOOP
+	    - pdc202old
+
+config PACKAGE_KMOD_LOOP
 	prompt "kmod-loop......................... Loop mount support"
 	tristate
 	default m
 	help
 	  Kernel module for loop mount support
 
-config BR2_PACKAGE_KMOD_NBD
+config PACKAGE_KMOD_NBD
 	prompt "kmod-nbd.......................... Network Block Device"
 	tristate
 	default m
@@ -310,45 +312,45 @@
 
 endmenu
 
-config BR2_PACKAGE_KMOD_CRYPTO
+config PACKAGE_KMOD_CRYPTO
 	prompt "CryptoAPI modules"
 	tristate
 	default m
-	select BUSYBOX_CONFIG_FEATURE_CHECK_TAINTED_MODULE
+	select BUSYBOX_FEATURE_CHECK_TAINTED_MODULE
 	help
 	  Kernel modules for cryptographic algorithms
 
 menu "Filesystems support"
 
-config BR2_PACKAGE_KMOD_FS_CIFS
+config PACKAGE_KMOD_FS_CIFS
 	prompt "kmod-fs-cifs...................... CIFS support"
 	tristate
 	default m
 	help
 	  Kernel modules for CIFS support
 
-config BR2_PACKAGE_KMOD_FS_EXT2
+config PACKAGE_KMOD_FS_EXT2
 	prompt "kmod-fs-ext2...................... EXT2 filesystem support"
 	tristate
 	default m
 	help
 	  Kernel modules for EXT2 filesystem support
 
-config BR2_PACKAGE_KMOD_FS_EXT3
+config PACKAGE_KMOD_FS_EXT3
 	prompt "kmod-fs-ext3...................... EXT3 filesystem support"
 	tristate
 	default m
 	help
 	  Kernel modules for EXT3 filesystem support
 
-config BR2_PACKAGE_KMOD_FS_HFSPLUS
+config PACKAGE_KMOD_FS_HFSPLUS
 	prompt "kmod-fs-hfsplus................... HFS+ filesystem support"
 	tristate
 	default m
 	help
 	  Kernel modules for HFS+ filesystem support
 
-config BR2_PACKAGE_KMOD_FS_NFS
+config PACKAGE_KMOD_FS_NFS
 	prompt "kmod-fs-nfs....................... NFS support"
 	tristate
 	default m
@@ -356,7 +358,7 @@
 	  Kernel modules for NFS support
 	  Includes lockd, nfs and sunrpc
 
-config BR2_PACKAGE_KMOD_FS_VFAT
+config PACKAGE_KMOD_FS_VFAT
 	prompt "kmod-fs-vfat...................... VFAT filesystem support"
 	tristate
 	default m
@@ -364,7 +366,7 @@
 	  Kernel modules for VFAT filesystem support
 	  useful for usb mass storage devices
 
-config BR2_PACKAGE_KMOD_FS_XFS
+config PACKAGE_KMOD_FS_XFS
 	prompt "kmod-fs-xfs....................... XFS filesystem support"
 	tristate
 	default m
@@ -375,13 +377,13 @@
 
 menu "Multimedia devices support"
 
-config BR2_PACKAGE_KMOD_PWC
+config PACKAGE_KMOD_PWC
 	prompt "kmod-pwc.......................... Kernel driver for USB Philips Cameras"
 	tristate
-	depends BR2_PACKAGE_KMOD_USB
-	default m
-
-config BR2_PACKAGE_KMOD_SOUNDCORE
+	depends PACKAGE_KMOD_USB
+	default m
+
+config PACKAGE_KMOD_SOUNDCORE
 	prompt "kmod-soundcore.................... Soundcard support"
 	tristate
 	default n
@@ -389,7 +391,7 @@
 	  Base support for soundcards
 	  Requires either USB soundcard support (OSS) or ALSA package to be useful
 
-config BR2_PACKAGE_KMOD_VIDEODEV
+config PACKAGE_KMOD_VIDEODEV
 	prompt "kmod-videodev..................... Video (For Linux) kernel support"
 	tristate
 	default m
@@ -398,62 +400,62 @@
 
 menu "Native Language support"
 
-config BR2_PACKAGE_KMOD_NLS_BASE
+config PACKAGE_KMOD_NLS_BASE
 	prompt "kmod-nls-base..................... Native Language support"
 	tristate
 	default m
 	help
 	  Kernel native language support
 
-config BR2_PACKAGE_KMOD_NLS_CP437
+config PACKAGE_KMOD_NLS_CP437
 	prompt   "kmod-nls-cp437.................. Codepage 437 (United States, Canada)"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_NLS_BASE
+	depends PACKAGE_KMOD_NLS_BASE
 	help
 	  Kernel native language support
 
-config BR2_PACKAGE_KMOD_NLS_CP850
+config PACKAGE_KMOD_NLS_CP850
 	prompt   "kmod-nls-cp850.................. Codepage 850 (Europe)"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_NLS_BASE
+	depends PACKAGE_KMOD_NLS_BASE
 	help
 	  Kernel native language support
 
-config BR2_PACKAGE_KMOD_NLS_ISO8859_1
+config PACKAGE_KMOD_NLS_ISO8859_1
 	prompt   "kmod-nls-iso8859-1.............. NLS ISO 8859-1 (Latin 1; Western European Languages)"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_NLS_BASE
+	depends PACKAGE_KMOD_NLS_BASE
 	help
 	  Kernel native language support
 
-config BR2_PACKAGE_KMOD_NLS_ISO8859_15
+config PACKAGE_KMOD_NLS_ISO8859_15
 	prompt   "kmod-nls-iso8859-15............. NLS ISO 8859-15 (Latin 15; Western European Languages with Euro)"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_NLS_BASE
+	depends PACKAGE_KMOD_NLS_BASE
 	help
 	  Kernel native language support
 
-config BR2_PACKAGE_KMOD_NLS_UTF8
+config PACKAGE_KMOD_NLS_UTF8
 	prompt   "kmod-nls-utf8................... NLS UTF8"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_NLS_BASE
+	depends PACKAGE_KMOD_NLS_BASE
 	help
 	  Kernel native language support
 
 endmenu
 
 menu "Network devices support"
-	depends BR2_LINUX_2_4_X86 || BR2_LINUX_2_6_X86
-
-config BR2_PACKAGE_KMOD_NET_3C59X
+	depends LINUX_2_4_X86 || LINUX_2_6_X86
+
+config PACKAGE_KMOD_NET_3C59X
 	prompt "kmod-net-3c59x.................... 3Com 3c590/3c900 series (592/595/597) \"Vortex/Boomerang\" Ethernet kernel support"
 	tristate
-	depends BR2_LINUX_2_4_X86 || BR2_LINUX_2_6_X86
+	depends LINUX_2_4_X86 || LINUX_2_6_X86
 	default m
 	help
 	  This option enables driver support for a large number of 10mbps and 
@@ -465,19 +467,19 @@
 	   * "Tornado"   (3c905)                                  PCI
 	   * "Hurricane" (3c555/3cSOHO)                           PCI
 
-config BR2_PACKAGE_KMOD_NET_8139TOO
+config PACKAGE_KMOD_NET_8139TOO
 	prompt "kmod-net-8139too.................. RealTek RTL-8139 PCI Fast Ethernet Adapter kernel support"
 	tristate
-	depends BR2_LINUX_2_4_X86 || BR2_LINUX_2_6_X86
+	depends LINUX_2_4_X86 || LINUX_2_6_X86
 	default m
 	help
 	  This is a driver for the Fast Ethernet PCI network cards based on 
 	  the RTL8139 chips.
 
-config BR2_PACKAGE_KMOD_NET_AIRO
+config PACKAGE_KMOD_NET_AIRO
 	prompt "kmod-net-airo..................... Cisco/Aironet 34X/35X/4500/4800 ISA and PCI cards kernel support"
 	tristate
-	depends BR2_LINUX_2_4_X86 || BR2_LINUX_2_6_X86
+	depends LINUX_2_4_X86 || LINUX_2_6_X86
 	default m
 	help
 	  This is the standard Linux driver to support Cisco/Aironet ISA and 
@@ -490,18 +492,18 @@
 	  and Cisco proprietary API, so both the Linux Wireless Tools and the 
 	  Cisco Linux utilities can be used to configure the card.
 
-config BR2_PACKAGE_KMOD_NET_E100
+config PACKAGE_KMOD_NET_E100
 	prompt "kmod-net-e100..................... Intel(R) PRO/100+ cards kernel support"
 	tristate
-	depends BR2_LINUX_2_4_X86 || BR2_LINUX_2_6_X86
+	depends LINUX_2_4_X86 || LINUX_2_6_X86
 	default m
 	help
 	  Intel(R) PRO/100+ cards kernel support
 
-config BR2_PACKAGE_KMOD_NET_HERMES
+config PACKAGE_KMOD_NET_HERMES
 	prompt "kmod-net-hermes................... Hermes chipset 802.11b support (Orinoco/Prism2/Symbol) kernel support"
 	tristate
-	depends BR2_LINUX_2_4_X86 || BR2_LINUX_2_6_X86
+	depends LINUX_2_4_X86 || LINUX_2_6_X86
 	default m
 	help
 	  A driver for 802.11b wireless cards based based on the "Hermes" or 
@@ -514,11 +516,11 @@
 	  MA401, LinkSys WPC-11, D-Link DWL-650, 3Com AirConnect, Intel 
 	  PRO/Wireless, and Symbol Spectrum24 High Rate amongst others.
 
-config BR2_PACKAGE_KMOD_NET_HERMES_PCI
+config PACKAGE_KMOD_NET_HERMES_PCI
 	prompt   "kmod-net-hermes-pci............. Intersil Prism 2.5 PCI 802.11b adaptor support"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_NET_HERMES
+	depends PACKAGE_KMOD_NET_HERMES
 	help
 	  Enable support for PCI and mini-PCI 802.11b wireless NICs based on 
 	  the Prism 2.5 chipset.  These are true PCI cards, not the 802.11b 
@@ -526,11 +528,11 @@
 	  common.  Some of the built-in wireless adaptors in laptops are of 
 	  this variety.
 
-config BR2_PACKAGE_KMOD_NET_HERMES_PLX
+config PACKAGE_KMOD_NET_HERMES_PLX
 	prompt   "kmod-net-hermes-plx............. Hermes in PLX9052 based PCI adaptor (Netgear MA301, etc.) kernel support"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_NET_HERMES
+	depends PACKAGE_KMOD_NET_HERMES
 	help
 	  Enable support for PCMCIA cards supported by the "Hermes" (aka 
 	  orinoco_cs) driver when used in PLX9052 based PCI adaptors.  These 
@@ -539,20 +541,20 @@
 	  802.11b PCMCIA cards can be used in desktop machines.  The Netgear 
 	  MA301 is such an adaptor.
 
-config BR2_PACKAGE_KMOD_NET_NATSEMI
+config PACKAGE_KMOD_NET_NATSEMI
 	prompt "kmod-net-natsemi.................. National Semiconductor DP8381x series PCI Ethernet kernel support"
 	tristate
-	depends BR2_LINUX_2_4_X86 || BR2_LINUX_2_6_X86
+	depends LINUX_2_4_X86 || LINUX_2_6_X86
 	default m
 	help
 	  This driver is for the National Semiconductor DP83810 series, 
 	  which is used in cards from PureData, NetGear, Linksys 
 	  and others, including the 83815 chip.
 
-config BR2_PACKAGE_KMOD_NET_PRISM54
+config PACKAGE_KMOD_NET_PRISM54
 	prompt "kmod-net-prism54.................. Intersil Prism GT/Duette/Indigo PCI/PCMCIA cards kernel support"
 	tristate
-	depends BR2_LINUX_2_4_X86 || BR2_LINUX_2_6_X86 || BR2_LINUX_2_4_BRCM || BR2_LINUX_2_6_BRCM
+	depends LINUX_2_4_X86 || LINUX_2_6_X86 || LINUX_2_4_BRCM || LINUX_2_6_BRCM
 	default m
 	help
 	  Enable PCI and Cardbus support for the following chipset based cards: 
@@ -591,135 +593,135 @@
 endmenu
 
 menu "PCMCIA/CardBus support"
-	depends BR2_LINUX_2_4_X86 || BR2_LINUX_2_6_X86 || BR2_LINUX_2_4_BRCM || BR2_LINUX_2_6_BRCM
-
-config BR2_PACKAGE_KMOD_PCMCIA_CORE
+	depends LINUX_2_4_X86 || LINUX_2_6_X86 || LINUX_2_4_BRCM || LINUX_2_6_BRCM
+
+config PACKAGE_KMOD_PCMCIA_CORE
 	prompt "kmod-pcmcia-core.................. PCMCIA/CardBus support"
-	depends BR2_LINUX_PCMCIA_SUPPORT
-	tristate
-	depends BR2_LINUX_2_4_X86 || BR2_LINUX_2_6_X86 || BR2_LINUX_2_4_BRCM || BR2_LINUX_2_6_BRCM
-	default m
-
-config BR2_PACKAGE_KMOD_PCMCIA_SERIAL
+	depends LINUX_PCMCIA_SUPPORT
+	tristate
+	depends LINUX_2_4_X86 || LINUX_2_6_X86 || LINUX_2_4_BRCM || LINUX_2_6_BRCM
+	default m
+
+config PACKAGE_KMOD_PCMCIA_SERIAL
 	prompt   "kmod-pcmcia-serial.............. PCMCIA/CardBus serial device support"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_PCMCIA_CORE
+	depends PACKAGE_KMOD_PCMCIA_CORE
 
 endmenu
 
 menu "USB support"
 
-config BR2_PACKAGE_KMOD_USB
+config PACKAGE_KMOD_USB
 	prompt "kmod-usb-core..................... USB support"
 	tristate
-	default n if BR2_LINUX_2_4_AR531X
-	default m
-
-config BR2_PACKAGE_KMOD_USB_UHCI 
+	default n if LINUX_2_4_AR531X
+	default m
+
+config PACKAGE_KMOD_USB_UHCI 
 	prompt   "kmod-usb-uhci................... Support for UHCI controllers"
 	tristate
-	default n if BR2_LINUX_2_6_AU1000
-	depends BR2_PACKAGE_KMOD_USB
-	select BR2_PACKAGE_KMOD_USB_CONTROLLER
-
-config BR2_PACKAGE_KMOD_USB_OHCI
+	default n if LINUX_2_6_AU1000
+	depends PACKAGE_KMOD_USB
+	select PACKAGE_KMOD_USB_CONTROLLER
+
+config PACKAGE_KMOD_USB_OHCI
 	prompt   "kmod-usb-ohci................... Support for OHCI controllers"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_USB
-	select BR2_PACKAGE_KMOD_USB_CONTROLLER
-
-config BR2_PACKAGE_KMOD_USB2
+	depends PACKAGE_KMOD_USB
+	select PACKAGE_KMOD_USB_CONTROLLER
+
+config PACKAGE_KMOD_USB2
 	prompt   "kmod-usb2....................... Support for USB 2.0 controllers"
 	tristate
-	default n if BR2_LINUX_2_6_AU1000
-	depends BR2_PACKAGE_KMOD_USB
-	select BR2_PACKAGE_KMOD_USB_CONTROLLER
-
-config BR2_PACKAGE_KMOD_USB_CONTROLLER
-	tristate
-	depends on BR2_PACKAGE_KMOD_USB_UHCI || BR2_PACKAGE_KMOD_USB_OHCI || BR2_PACKAGE_KMOD_USB2
+	default n if LINUX_2_6_AU1000
+	depends PACKAGE_KMOD_USB
+	select PACKAGE_KMOD_USB_CONTROLLER
+
+config PACKAGE_KMOD_USB_CONTROLLER
+	tristate
+	depends on PACKAGE_KMOD_USB_UHCI || PACKAGE_KMOD_USB_OHCI || PACKAGE_KMOD_USB2
 	default n
 
-config BR2_PACKAGE_KMOD_USB_ACM
+config PACKAGE_KMOD_USB_ACM
 	prompt "kmod-usb-acm...................... Support for USB modems/isdn controllers"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_USB_CONTROLLER
-
-config BR2_PACKAGE_KMOD_USB_AUDIO
+	depends PACKAGE_KMOD_USB_CONTROLLER
+
+config PACKAGE_KMOD_USB_AUDIO
 	prompt "kmod-usb-audio.................... Support for USB soundcards"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_USB_CONTROLLER
-	select BR2_PACKAGE_KMOD_SOUNDCORE
-
-config BR2_PACKAGE_KMOD_USB_PRINTER
+	depends PACKAGE_KMOD_USB_CONTROLLER
+	select PACKAGE_KMOD_SOUNDCORE
+
+config PACKAGE_KMOD_USB_PRINTER
 	prompt "kmod-usb-printer.................. Support for USB printers"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_USB_CONTROLLER
-
-config BR2_PACKAGE_KMOD_USB_SERIAL
+	depends PACKAGE_KMOD_USB_CONTROLLER
+
+config PACKAGE_KMOD_USB_SERIAL
 	prompt "kmod-usb-serial................... Support for USB-to-serial converters"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_USB_CONTROLLER
-
-config BR2_PACKAGE_KMOD_USB_SERIAL_BELKIN
+	depends PACKAGE_KMOD_USB_CONTROLLER
+
+config PACKAGE_KMOD_USB_SERIAL_BELKIN
 	prompt   "kmod-usb-serial-belkin.......... Support for Belkin USB-to-serial converters"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_USB_SERIAL
-
-config BR2_PACKAGE_KMOD_USB_SERIAL_FTDI
+	depends PACKAGE_KMOD_USB_SERIAL
+
+config PACKAGE_KMOD_USB_SERIAL_FTDI
 	prompt   "kmod-usb-serial-ftdi............ Support for FTDI USB-to-serial converterr"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_USB_SERIAL
-
-config BR2_PACKAGE_KMOD_USB_SERIAL_MCT_U232
+	depends PACKAGE_KMOD_USB_SERIAL
+
+config PACKAGE_KMOD_USB_SERIAL_MCT_U232
 	prompt   "kmod-usb-serial-mct-u232........ Support for Magic Control Technology USB-to-Serial converters"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_USB_SERIAL
-
-config BR2_PACKAGE_KMOD_USB_SERIAL_PL2303
+	depends PACKAGE_KMOD_USB_SERIAL
+
+config PACKAGE_KMOD_USB_SERIAL_PL2303
 	prompt   "kmod-usb-serial-pl2303.......... Support for Prolific PL2303 USB-to-Serial converters"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_USB_SERIAL
-
-config BR2_PACKAGE_KMOD_USB_SERIAL_VISOR
+	depends PACKAGE_KMOD_USB_SERIAL
+
+config PACKAGE_KMOD_USB_SERIAL_VISOR
 	prompt   "kmod-usb-serial-visor........... Support for Handspring Visor / Palm m50x / Sony Clie Driver"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_USB_SERIAL
-
-config BR2_PACKAGE_KMOD_USB_STORAGE
+	depends PACKAGE_KMOD_USB_SERIAL
+
+config PACKAGE_KMOD_USB_STORAGE
 	prompt "kmod-usb-storage.................. Support for USB storage devices"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_USB_CONTROLLER
-
-config BR2_PACKAGE_KMOD_USB_ATM
+	depends PACKAGE_KMOD_USB_CONTROLLER
+
+config PACKAGE_KMOD_USB_ATM
         prompt "kmod-usb-atm...................... Support for USB ATM devices"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_USB_CONTROLLER
-
-config BR2_PACKAGE_KMOD_USB_ATM_SPEEDTOUCH
+	depends PACKAGE_KMOD_USB_CONTROLLER
+
+config PACKAGE_KMOD_USB_ATM_SPEEDTOUCH
         prompt   "kmod-usb-atm-speedtouch......... Support for USB Speedtouch ADSL modem"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_USB_ATM
+	depends PACKAGE_KMOD_USB_ATM
 
 endmenu
 
 menu "Misc. devices support"
 
-config BR2_PACKAGE_KMOD_AX25
+config PACKAGE_KMOD_AX25
 	prompt "kmod-ax25......................... AX25 support"
 	tristate
 	default m
@@ -728,33 +730,33 @@
 	  
 	  This package contains both the AX25 layer 2 support (ax25) and AX25 KISS driver (mkiss)
 
-config BR2_PACKAGE_KMOD_BLUETOOTH
+config PACKAGE_KMOD_BLUETOOTH
 	prompt "kmod-bluetooth.................... Bluetooth drivers and network stack"
 	tristate
 	default m
-	default n if BR2_LINUX_2_4_AR531X
+	default n if LINUX_2_4_AR531X
 	help
 	  Bluetooth drivers and network stack
 
-config BR2_PACKAGE_KMOD_LP
+config PACKAGE_KMOD_LP
 	prompt "kmod-lp........................... Parallel port and lp support"
 	tristate
 	default m
 	help
 	  Kernel modules for line printer and parallel port support
 
-config BR2_PACKAGE_KMOD_SOFTDOG
+config PACKAGE_KMOD_SOFTDOG
 	prompt "kmod-softdog...................... Software watchdog"
 	tristate
 	default m
 	help
 	  Kernel modules for software watchdog driver
 
-config BR2_PACKAGE_KMOD_WD1100
+config PACKAGE_KMOD_WD1100
 	prompt "kmod-wd1100....................... Soekris net4801 watchdog"
 	tristate
 	default y
-	depends BR2_LINUX_2_4_X86
+	depends LINUX_2_4_X86
 	help
 	  Driver for the NatSemi SC1x00 series Watchdog 
 	  found on Soekris net4801 boards

--- a/target/linux/ar7-2.4/Config.in
+++ b/target/linux/ar7-2.4/Config.in
@@ -1,27 +1,27 @@
-config BR2_PACKAGE_KMOD_CPMAC
+config PACKAGE_KMOD_CPMAC
 	prompt "kmod-cpmac........................ AR7 CPMAC Network Driver"
 	tristate
 	default y
-	depends BR2_LINUX_2_4_AR7
+	depends LINUX_2_4_AR7
 	help
 	  Driver for the AR7 CPMAC network chip
 
-config BR2_PACKAGE_KMOD_SANGAM_ATM_A
+config PACKAGE_KMOD_SANGAM_ATM_A
 	prompt "kmod-sangam-atm-annex-a........... AR7 Sangam ADSL Driver (Annex A)"
 	tristate
 	default m
-	depends BR2_LINUX_2_4_AR7
-	select BR2_PACKAGE_KMOD_ATM
+	depends LINUX_2_4_AR7
+	select PACKAGE_KMOD_ATM
 	help
 	  ATM driver for the Sangam ADSL chip on AR7
 	  Annex A version
 
-config BR2_PACKAGE_KMOD_SANGAM_ATM_B
+config PACKAGE_KMOD_SANGAM_ATM_B
 	prompt "kmod-sangam-atm-annex-b........... AR7 Sangam ADSL Driver (Annex B)"
 	tristate
 	default y
-	depends BR2_LINUX_2_4_AR7
-	select BR2_PACKAGE_KMOD_ATM
+	depends LINUX_2_4_AR7
+	select PACKAGE_KMOD_ATM
 	help
 	  ATM driver for the Sangam ADSL chip on AR7
 	  Annex B version

--- a/target/linux/aruba-2.6/Config.in
+++ b/target/linux/aruba-2.6/Config.in
@@ -1,5 +1,5 @@
-config BR2_ARUBA_RAMDISK
+config ARUBA_RAMDISK
 	prompt "ramdisk support"
-	depends BR2_LINUX_2_6_ARUBA
+	depends LINUX_2_6_ARUBA
 	bool
 

--- a/target/linux/aruba-2.6/Makefile
+++ b/target/linux/aruba-2.6/Makefile
@@ -14,7 +14,7 @@
 $(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked
 	[ -d ../generic-$(KERNEL)/patches ] && $(PATCH) $(LINUX_DIR) ../generic-$(KERNEL)/patches $(MAKE_TRACE)
 	[ -d ./patches ] && $(PATCH) $(LINUX_DIR) ./patches $(MAKE_TRACE)
-ifeq ($(BR2_ARUBA_RAMDISK),y)
+ifeq ($(CONFIG_ARUBA_RAMDISK),y)
 	@$(CP) config-ramdisk $(LINUX_DIR)/.config
 else
 	@$(CP) config $(LINUX_DIR)/.config

--- a/target/linux/brcm-2.4/Config.in
+++ b/target/linux/brcm-2.4/Config.in
@@ -1,15 +1,15 @@
-config BR2_PACKAGE_KMOD_BRCM_WL
+config PACKAGE_KMOD_BRCM_WL
 	prompt "kmod-brcm-wl...................... Broadcom Wireless Network Driver"
 	tristate
-	depends BR2_LINUX_2_4_BRCM
+	depends LINUX_2_4_BRCM
 	default y
 	help
 	  Proprietary driver for Broadcom Wireless chipsets
 
-config BR2_PACKAGE_KMOD_BRCM_WL2
+config PACKAGE_KMOD_BRCM_WL2
 	prompt "kmod-brcm-wl2..................... Broadcom Wireless Network Driver (new)"
 	tristate
-	depends BR2_LINUX_2_4_BRCM
+	depends LINUX_2_4_BRCM
 	default m
 	help
 	  Proprietary driver for Broadcom Wireless chipsets

--- a/target/linux/image/Makefile
+++ b/target/linux/image/Makefile
@@ -2,15 +2,15 @@
 
 KDIR:=$(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)
 
-ifeq ($(BR2_TARGET_ROOTFS_JFFS2),y)
+ifeq ($(CONFIG_TARGET_ROOTFS_JFFS2),y)
 include ./jffs2.mk
 endif
 
-ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS_LZMA),y)
+ifeq ($(CONFIG_TARGET_ROOTFS_SQUASHFS_LZMA),y)
 include ./squashfs.mk
 endif
 
-ifeq ($(BR2_TARGET_ROOTFS_TGZ),y)
+ifeq ($(CONFIG_TARGET_ROOTFS_TGZ),y)
 include ./tgz.mk
 endif
 

--- a/target/linux/image/aruba/Makefile
+++ b/target/linux/image/aruba/Makefile
@@ -36,7 +36,7 @@
 $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL).ari: $(KDIR)/loader.elf
 	./addVersion -n ArubaOS $(KDIR)/loader.elf $@ version
 
-ifneq ($(BR2_ARUBA_RAMDISK),y)
+ifneq ($(CONFIG_ARUBA_RAMDISK),y)
 $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FSNAME).bin: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL).ari $(KDIR)/root.$(FS)
 	@dd if=$< of=$@.tmp bs=655360 conv=sync
 	@cat $(KDIR)/root.$(FS) >> $@.tmp

--- a/target/linux/image/jffs2.mk
+++ b/target/linux/image/jffs2.mk
@@ -1,4 +1,4 @@
-ifneq ($(BR2_mips),y)
+ifneq ($(CONFIG_mips),y)
 JFFS2OPTS :=  --pad --little-endian --squash
 else
 JFFS2OPTS :=  --pad --big-endian --squash

--- a/target/linux/package/Makefile
+++ b/target/linux/package/Makefile
@@ -3,22 +3,22 @@
 include ../rules.mk
 
 package-y += base-files
-package-$(BR2_PACKAGE_KMOD_ALSA) += alsa
-package-$(BR2_PACKAGE_KMOD_FUSE) += fuse
-package-$(BR2_PACKAGE_KMOD_HOSTAP) += hostap
-package-$(BR2_PACKAGE_KMOD_BCM43XX_STANDALONE) += bcm43xx-standalone
-package-$(BR2_PACKAGE_KMOD_IEEE80211_DSCAPE) += ieee80211-dscape
-package-$(BR2_PACKAGE_KMOD_MADWIFI) += madwifi
-package-$(BR2_PACKAGE_KMOD_MADWIFI_OLD) += madwifi-old
-package-$(BR2_PACKAGE_KMOD_MINI_FO) += mini_fo
-package-$(BR2_PACKAGE_KMOD_OPENSWAN) += openswan
-package-$(BR2_PACKAGE_KMOD_SHFS) += shfs
-package-$(BR2_PACKAGE_KMOD_SPCA5XX) += spca5xx
-package-$(BR2_PACKAGE_KMOD_SWITCH) += switch
-package-$(BR2_PACKAGE_KMOD_UEAGLE_ATM) += ueagle-atm
-package-$(BR2_PACKAGE_KMOD_DIAG) += diag
-package-$(BR2_PACKAGE_KMOD_WLCOMPAT) += wlcompat
-package-$(BR2_PACKAGE_KMOD_ZD1211) += zd1211
+package-$(CONFIG_PACKAGE_KMOD_ALSA) += alsa
+package-$(CONFIG_PACKAGE_KMOD_FUSE) += fuse
+package-$(CONFIG_PACKAGE_KMOD_HOSTAP) += hostap
+package-$(CONFIG_PACKAGE_KMOD_BCM43XX_STANDALONE) += bcm43xx-standalone
+package-$(CONFIG_PACKAGE_KMOD_IEEE80211_DSCAPE) += ieee80211-dscape
+package-$(CONFIG_PACKAGE_KMOD_MADWIFI) += madwifi
+package-$(CONFIG_PACKAGE_KMOD_MADWIFI_OLD) += madwifi-old
+package-$(CONFIG_PACKAGE_KMOD_MINI_FO) += mini_fo
+package-$(CONFIG_PACKAGE_KMOD_OPENSWAN) += openswan
+package-$(CONFIG_PACKAGE_KMOD_SHFS) += shfs
+package-$(CONFIG_PACKAGE_KMOD_SPCA5XX) += spca5xx
+package-$(CONFIG_PACKAGE_KMOD_SWITCH) += switch
+package-$(CONFIG_PACKAGE_KMOD_UEAGLE_ATM) += ueagle-atm
+package-$(CONFIG_PACKAGE_KMOD_DIAG) += diag
+package-$(CONFIG_PACKAGE_KMOD_WLCOMPAT) += wlcompat
+package-$(CONFIG_PACKAGE_KMOD_ZD1211) += zd1211
 
 bcm43xx-standalone-compile: ieee80211-dscape-compile
 wlcompat-compile: base-files-compile

--- a/target/linux/package/alsa/Config.in
+++ b/target/linux/package/alsa/Config.in
@@ -1,10 +1,10 @@
-config BR2_PACKAGE_KMOD_ALSA
+config PACKAGE_KMOD_ALSA
 	prompt "kmod-alsa......................... Alsa Sound Drivers"
 	tristate
-    depends BR2_LINUX_2_4_X86 || BR2_LINUX_2_4_BRCM || BR2_LINUX_2_6_X86 || BR2_LINUX_2_6_BRCM
-	depends BR2_PACKAGE_KMOD_USB_CONTROLLER
-	select BR2_PACKAGE_KMOD_SOUNDCORE
-	default m if CONFIG_DEVEL
+    depends LINUX_2_4_X86 || LINUX_2_4_BRCM || LINUX_2_6_X86 || LINUX_2_6_BRCM
+	depends PACKAGE_KMOD_USB_CONTROLLER
+	select PACKAGE_KMOD_SOUNDCORE
+	default m if DEVEL
 	help
 	  Alsa Drivers for USB Soundcards
 

--- a/target/linux/package/bcm43xx-standalone/Config.in
+++ b/target/linux/package/bcm43xx-standalone/Config.in
@@ -1,8 +1,8 @@
-config BR2_PACKAGE_KMOD_BCM43XX_STANDALONE
+config PACKAGE_KMOD_BCM43XX_STANDALONE
 	prompt "kmod-bcm43xx-standalone............... Free Broadcom 43xx wireless driver (devicescape stack)"
 	tristate
-	depends BR2_LINUX_2_6_BRCM
-	select BR2_PACKAGE_KMOD_IEEE80211_DSCAPE
+	depends LINUX_2_6_BRCM
+	select PACKAGE_KMOD_IEEE80211_DSCAPE
 	default n
 	help
 	  Free driver for the Broadcom 43xx wireless chipset

--- a/target/linux/package/diag/Config.in
+++ b/target/linux/package/diag/Config.in
@@ -1,7 +1,7 @@
-config BR2_PACKAGE_KMOD_DIAG
+config PACKAGE_KMOD_DIAG
 	prompt "kmod-diag......................... Driver for router LEDs and Buttons"
 	tristate
-	depends BR2_LINUX_2_4_BRCM
+	depends LINUX_2_4_BRCM
 	default y
 	help
 	  Driver for router LEDs and Buttons

--- a/target/linux/package/fuse/Config.in
+++ b/target/linux/package/fuse/Config.in
@@ -1,7 +1,7 @@
-config BR2_PACKAGE_KMOD_FUSE
+config PACKAGE_KMOD_FUSE
 	prompt "kmod-fuse......................... FUSE kernel module"
 	tristate
-	default m if CONFIG_DEVEL
+	default m if DEVEL
 	help
 	  With FUSE it is possible to implement a fully functional 
 	  filesystem in a userspace program.

--- a/target/linux/package/hostap/Config.in
+++ b/target/linux/package/hostap/Config.in
@@ -1,8 +1,8 @@
-config BR2_PACKAGE_KMOD_HOSTAP
+config PACKAGE_KMOD_HOSTAP
 	prompt "kmod-hostap....................... Host AP support for Prism2/2.5/3 IEEE 802.11b"
 	tristate
-	depends BR2_LINUX_2_4_X86 || BR2_LINUX_2_4_BRCM
-	default m if CONFIG_DEVEL
+	depends LINUX_2_4_X86 || LINUX_2_4_BRCM
+	default m if DEVEL
 	help
 	  A driver for 802.11b wireless cards based on Intersil Prism2/2.5/3
 	  chipset. This driver supports so called Host AP mode that allows
@@ -14,11 +14,11 @@
 	  
 	  http://hostap.epitest.fi/
 
-config BR2_PACKAGE_KMOD_HOSTAP_PCI
+config PACKAGE_KMOD_HOSTAP_PCI
 	prompt   "kmod-hostap-pci................. Host AP driver for Prism2.5 PCI adaptors"
 	tristate
-	default m if CONFIG_DEVEL
-	depends BR2_PACKAGE_KMOD_HOSTAP
+	default m if DEVEL
+	depends PACKAGE_KMOD_HOSTAP
 	help
 	  Host AP support for Prism2/2.5/3 IEEE 802.11b" is required for this
 	  driver and its help text includes more information about the Host AP
@@ -26,11 +26,11 @@
 	  
 	  http://hostap.epitest.fi/
 
-config BR2_PACKAGE_KMOD_HOSTAP_PLX
+config PACKAGE_KMOD_HOSTAP_PLX
 	prompt   "kmod-hostap-plx................. Host AP driver for Prism2/2.5/3 in PLX9052 based PCI adaptors"
 	tristate
-	default m if CONFIG_DEVEL
-	depends BR2_PACKAGE_KMOD_HOSTAP
+	default m if DEVEL
+	depends PACKAGE_KMOD_HOSTAP
 	help
 	  Host AP support for Prism2/2.5/3 IEEE 802.11b" is required for this
 	  driver and its help text includes more information about the Host AP

--- a/target/linux/package/ieee80211-dscape/Config.in
+++ b/target/linux/package/ieee80211-dscape/Config.in
@@ -1,8 +1,8 @@
-config BR2_PACKAGE_KMOD_IEEE80211_DSCAPE
+config PACKAGE_KMOD_IEEE80211_DSCAPE
 	prompt "kmod-ieee80211-dscape............. IEEE 802.11 stack (devicescape)"
 	tristate
 	default n
-	depends BR2_LINUX_2_6_BRCM || BR2_LINUX_2_6_X86
+	depends LINUX_2_6_BRCM || LINUX_2_6_X86
 	
 	help
 	  IEEE 802.11 stack (devicescape)

--- a/target/linux/package/madwifi-old/Config.in
+++ b/target/linux/package/madwifi-old/Config.in
@@ -1,7 +1,7 @@
-config BR2_PACKAGE_KMOD_MADWIFI_OLD
+config PACKAGE_KMOD_MADWIFI_OLD
        prompt "kmod-madwifi-old.................. (old) Atheros Wifi driver"
        tristate
-       default m if CONFIG_DEVEL
+       default m if DEVEL
        default n
        help
          Madwifi-old driver for Atheros wireless adapters

--- a/target/linux/package/madwifi-old/Makefile
+++ b/target/linux/package/madwifi-old/Makefile
@@ -26,10 +26,10 @@
 
 BUS := PCI
 
-ifneq ($(BR2_LINUX_2_4_AR531X),)
+ifneq ($(CONFIG_LINUX_2_4_AR531X),)
 	BUS := AHB
 endif
-# ifneq ($(BR2_LINUX_2_6_ARUBA),)
+# ifneq ($(CONFIG_LINUX_2_6_ARUBA),)
 #      BUS := PCI AHB  # no suitable HAL for AHB yet.
 # endif
 

--- a/target/linux/package/madwifi/Config.in
+++ b/target/linux/package/madwifi/Config.in
@@ -1,8 +1,8 @@
-config BR2_PACKAGE_KMOD_MADWIFI
+config PACKAGE_KMOD_MADWIFI
 	prompt "kmod-madwifi...................... Atheros Wifi driver"
 	tristate
-	default y if BR2_LINUX_2_6_BRCM || BR2_LINUX_2_6_ARUBA || BR2_LINUX_2_4_AR531X
-	default m if CONFIG_DEVEL
+	default y if LINUX_2_6_BRCM || LINUX_2_6_ARUBA || LINUX_2_4_AR531X
+	default m if DEVEL
 	default n
 	help
 	  Driver for Atheros 802.11a/b/g MiniPCI cards

--- a/target/linux/package/madwifi/Makefile
+++ b/target/linux/package/madwifi/Makefile
@@ -26,10 +26,10 @@
 
 BUS := PCI
 
-ifneq ($(BR2_LINUX_2_4_AR531X),)
+ifneq ($(CONFIG_LINUX_2_4_AR531X),)
 	BUS := AHB
 endif
-ifneq ($(BR2_LINUX_2_6_ARUBA),)
+ifneq ($(CONFIG_LINUX_2_6_ARUBA),)
 	BUS := PCI AHB	# no suitable HAL for AHB yet.
 endif
 

--- a/target/linux/package/mini_fo/Config.in
+++ b/target/linux/package/mini_fo/Config.in
@@ -1,7 +1,7 @@
-config BR2_PACKAGE_KMOD_MINI_FO
+config PACKAGE_KMOD_MINI_FO
 	prompt "kmod-mini_fo...................... mini fanout overlay file system"
 	tristate
-	default m if CONFIG_DEVEL
+	default m if DEVEL
 	help
 	  The mini fanout overlay file system.
 

--- a/target/linux/package/openswan/Config.in
+++ b/target/linux/package/openswan/Config.in
@@ -1,7 +1,7 @@
-config BR2_PACKAGE_KMOD_OPENSWAN
+config PACKAGE_KMOD_OPENSWAN
 	prompt "kmod-openswan..................... Openswan kernel module"
 	tristate
-	default m if CONFIG_DEVEL
+	default m if DEVEL
 	help
 	  Openswan is an implementation of IPsec for Linux.
 	  

--- a/target/linux/package/shfs/Config.in
+++ b/target/linux/package/shfs/Config.in
@@ -1,7 +1,7 @@
-config BR2_PACKAGE_KMOD_SHFS
+config PACKAGE_KMOD_SHFS
 	prompt "kmod-shfs......................... Shell FileSystem kernel module (ShFS) kernel module"
 	tristate
-	default m if CONFIG_DEVEL
+	default m if DEVEL
 	help
 	  ShFS is a simple and easy to use Linux kernel module which 
 	  allows you to mount remote filesystems using a plain shell 

--- a/target/linux/package/spca5xx/Config.in
+++ b/target/linux/package/spca5xx/Config.in
@@ -1,7 +1,7 @@
-config BR2_PACKAGE_KMOD_SPCA5XX
+config PACKAGE_KMOD_SPCA5XX
 	prompt "kmod-spca5xx...................... Kernel driver for SPCA5XX based USB cameras"
 	tristate
-	default m if CONFIG_DEVEL
+	default m if DEVEL
 	help
 	  Kernel driver for SPCA5XX based USB cameras
 	  

--- a/target/linux/package/switch/Config.in
+++ b/target/linux/package/switch/Config.in
@@ -1,8 +1,8 @@
-config BR2_PACKAGE_KMOD_SWITCH
+config PACKAGE_KMOD_SWITCH
 	prompt "kmod-switch....................... Kernel driver for ROBO and ADMTEK SWITCH"
 	tristate
-	default y if BR2_LINUX_2_6_BRCM || BR2_LINUX_2_4_BRCM
-	default m if CONFIG_DEVEL
+	default y if LINUX_2_6_BRCM || LINUX_2_4_BRCM
+	default m if DEVEL
 	default n
 	help
 	  Kernel driver for ROBO and ADMTEK switches.

--- a/target/linux/package/ueagle-atm/Config.in
+++ b/target/linux/package/ueagle-atm/Config.in
@@ -1,8 +1,8 @@
-config BR2_PACKAGE_KMOD_UEAGLE_ATM
+config PACKAGE_KMOD_UEAGLE_ATM
 	prompt "kmod-ueagle-atm.................... Kernel driver for Eagle 8051 based USB ADSL modems"
 	tristate
-	depends BR2_LINUX_2_6_BRCM
-	default m if CONFIG_DEVEL
+	depends LINUX_2_6_BRCM
+	default m if DEVEL
 	help
 	  Kernel driver for Eagle 8051 USB ADSL modems
 	  

--- a/target/linux/package/wlcompat/Config.in
+++ b/target/linux/package/wlcompat/Config.in
@@ -1,17 +1,17 @@
-config BR2_PACKAGE_KMOD_WLCOMPAT
+config PACKAGE_KMOD_WLCOMPAT
 	prompt "kmod-wlcompat..................... Wrapper providing Wireless Extensions for Broadcom wl module"
 	tristate
 	default y
-	depends BR2_PACKAGE_KMOD_BRCM_WL || BR2_PACKAGE_KMOD_BRCM_WL2
+	depends PACKAGE_KMOD_BRCM_WL || PACKAGE_KMOD_BRCM_WL2
 	help
 	  A wrapper module, that provides Wireless Extension support for the
 	  proprietary Broadcom wl module.
 
-config BR2_PACKAGE_KMOD_WLCOMPAT_DEBUG
+config PACKAGE_KMOD_WLCOMPAT_DEBUG
 	prompt "kmod-wlcompat-debug............... Wrapper providing Wireless Extensions for Broadcom wl module (debug)"
 	tristate
 	default m
-	depends BR2_PACKAGE_KMOD_BRCM_WL || BR2_PACKAGE_KMOD_BRCM_WL2
+	depends PACKAGE_KMOD_BRCM_WL || PACKAGE_KMOD_BRCM_WL2
 	help
 	  A wrapper module, that provides Wireless Extension support for the
 	  proprietary Broadcom wl module. (debug version)

--- a/target/linux/package/zd1211/Config.in
+++ b/target/linux/package/zd1211/Config.in
@@ -1,8 +1,8 @@
-config BR2_PACKAGE_KMOD_ZD1211
+config PACKAGE_KMOD_ZD1211
 	prompt "kmod-zd12111...................... Driver for Zydas 1211 based devices"
 	tristate
-	depends BR2_LINUX_2_6
-	default m if CONFIG_DEVEL
+	depends LINUX_2_6
+	default m if DEVEL
 	help
 	  Linux driver for the ZyDAS ZD1211 802.11b/g USB-WLAN-Chip. 
 	  Initially contributed by ZyDAS, this driver is actively maintained 

--- a/target/linux/rules.mk
+++ b/target/linux/rules.mk
@@ -54,10 +54,10 @@
 I_$(1) := $(KMOD_BUILD_DIR)/ipkg/$(2)
 
 ifeq ($$(KDEPEND_$(1)),m)
-ifneq ($(BR2_PACKAGE_KMOD_$(1)),)
+ifneq ($(CONFIG_PACKAGE_KMOD_$(1)),)
 TARGETS += $$(PKG_$(1))
 endif
-ifeq ($(BR2_PACKAGE_KMOD_$(1)),y)
+ifeq ($(CONFIG_PACKAGE_KMOD_$(1)),y)
 INSTALL_TARGETS += $$(PKG_$(1))
 endif
 endif

--- a/target/sdk/Config.in
+++ b/target/sdk/Config.in
@@ -1,6 +1,6 @@
-config BR2_PACKAGE_SDK
+config PACKAGE_SDK
 	bool "OpenWrt SDK"
-	default y if CONFIG_DEVEL
+	default y if DEVEL
 	help
 	  Build an OpenWrt SDK.
 	  This is essentially a stripped-down version of the buildroot

--- a/target/sdk/Makefile
+++ b/target/sdk/Makefile
@@ -27,7 +27,7 @@
 	$(CP) ./files/README.SDK $(SDK_BUILD_DIR)/
 	$(CP) ./files/depend.mk $(SDK_BUILD_DIR)/package/
 	$(CP) $(TOPDIR)/package/rules.mk $(SDK_BUILD_DIR)/package/
-	egrep '^BR2_(ARCH|WGET|STAGING|JLEVEL|LARGEFILE|TARGET_OPT)' $(TOPDIR)/.config > $(SDK_BUILD_DIR)/.config
+	egrep '^CONFIG_(ARCH|WGET|STAGING|JLEVEL|LARGEFILE|TARGET_OPT)' $(TOPDIR)/.config > $(SDK_BUILD_DIR)/.config
 	find $(SDK_BUILD_DIR) -name .svn | xargs rm -rf 
 	find $(SDK_BUILD_DIR) -name CVS | xargs rm -rf 
 	(cd $(BUILD_DIR); \

--- a/toolchain/binutils/Makefile
+++ b/toolchain/binutils/Makefile
@@ -5,7 +5,7 @@
 # build binutils for use on the host system
 #
 #############################################################
-BINUTILS_VERSION:=$(strip $(subst ",, $(BR2_BINUTILS_VERSION)))
+BINUTILS_VERSION:=$(strip $(subst ",, $(CONFIG_BINUTILS_VERSION)))
 #"
 
 BINUTILS_SITE:=http://www.fr.kernel.org/pub/linux/devel/binutils \

--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -37,10 +37,10 @@
 #
 #############################################################
 
-ifeq ($(BR2_INSTALL_LIBGCJ),y)
+ifeq ($(CONFIG_INSTALL_LIBGCJ),y)
 TARGET_LANGUAGES:=c,c++,java
 else
-ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
+ifeq ($(CONFIG_INSTALL_LIBSTDCPP),y)
 TARGET_LANGUAGES:=c,c++
 else
 TARGET_LANGUAGES:=c
@@ -71,7 +71,7 @@
 	# We can dispense with the custom spec files, as well as libfloat for the arm case.
 	# However, we still need a patch for arm.  There's a similar patch for gcc 3.3.x
 	# which needs to be integrated so we can kill of libfloat for good.
-ifeq ($(BR2_SOFT_FLOAT),y)
+ifeq ($(CONFIG_SOFT_FLOAT),y)
 ifeq ("$(strip $(ARCH))","arm")
 	$(SCRIPT_DIR)/patch-kernel.sh $(GCC_DIR) ./$(GCC_VERSION) arm-softfloat.patch.conditional
 endif
@@ -175,7 +175,7 @@
 	#
 	# Now for the ugly 3.3.x soft float hack...
 	#
-ifeq ($(BR2_SOFT_FLOAT),y)
+ifeq ($(CONFIG_SOFT_FLOAT),y)
 ifeq ($(findstring 3.3.,$(GCC_VERSION)),3.3.)
 	# Make sure we have a soft float specs file for this arch
 	if [ ! -f ./$(GCC_VERSION)/specs-$(ARCH)-soft-float ] ; then \

--- a/toolchain/gdb/Config.in
+++ b/toolchain/gdb/Config.in
@@ -1,6 +1,6 @@
 comment "Gdb Options"
 
-config BR2_PACKAGE_GDB_CLIENT
+config PACKAGE_GDB_CLIENT
 	bool "Build gdb client for the Host"
 	default n
 	help

--- a/toolchain/uClibc/Makefile
+++ b/toolchain/uClibc/Makefile
@@ -6,10 +6,10 @@
 #
 #############################################################
 
-ifeq ($(BR2_UCLIBC_VERSION_SNAPSHOT),y)
+ifeq ($(CONFIG_UCLIBC_VERSION_SNAPSHOT),y)
 # Be aware that this changes daily....
 UCLIBC_DIR:=$(TOOL_BUILD_DIR)/uClibc
-UCLIBC_SOURCE:=uClibc-$(strip $(subst ",, $(BR2_USE_UCLIBC_SNAPSHOT))).tar.bz2
+UCLIBC_SOURCE:=uClibc-$(strip $(subst ",, $(CONFIG_USE_UCLIBC_SNAPSHOT))).tar.bz2
 #"
 UCLIBC_SITE:=http://www.uclibc.org/downloads/snapshots
 UCLIBC_VER:=PKG_VERSION:=0.${shell date +"%G%m%d"}
@@ -50,13 +50,13 @@
 	$(CP) ./files/config.$(ARCH) $(UCLIBC_DIR)/.config
 	$(SED) 's,^KERNEL_SOURCE=.*,KERNEL_SOURCE=\"$(LINUX_HEADERS_DIR)\",g' \
 		$(UCLIBC_DIR)/.config
-ifeq ($(BR2_LARGEFILE),y)
+ifeq ($(CONFIG_LARGEFILE),y)
 	$(SED) 's,^.*UCLIBC_HAS_LFS.*,UCLIBC_HAS_LFS=y,g' $(UCLIBC_DIR)/.config
 else
 	$(SED) 's,^.*UCLIBC_HAS_LFS.*,UCLIBC_HAS_LFS=n,g' $(UCLIBC_DIR)/.config
 endif
 	$(SED) 's,.*UCLIBC_HAS_WCHAR.*,UCLIBC_HAS_WCHAR=y,g' $(UCLIBC_DIR)/.config
-ifeq ($(BR2_SOFT_FLOAT),y)
+ifeq ($(CONFIG_SOFT_FLOAT),y)
 	$(SED) 's,.*HAS_FPU.*,HAS_FPU=n\nUCLIBC_HAS_FLOATS=y\nUCLIBC_HAS_SOFT_FLOAT=y,g' $(UCLIBC_DIR)/.config
 endif
 	mkdir -p $(TOOL_BUILD_DIR)/uClibc_dev/usr/include

comments