Index: target/linux/ar7-2.4/profiles/AnnexA.mk =================================================================== --- target/linux/ar7-2.4/profiles/AnnexA.mk (revision 0) +++ target/linux/ar7-2.4/profiles/AnnexA.mk (revision 0) @@ -0,0 +1,13 @@ +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Profile/AnnexA + NAME:=ADSL Annex A (default) + PACKAGES:=kmod-sangam-atm-annex-a ppp-mod-pppoa +endef +$(eval $(call Profile,AnnexA)) + Index: target/linux/ar7-2.4/profiles/AnnexB.mk =================================================================== --- target/linux/ar7-2.4/profiles/AnnexB.mk (revision 0) +++ target/linux/ar7-2.4/profiles/AnnexB.mk (revision 0) @@ -0,0 +1,13 @@ +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Profile/AnnexB + NAME:=ADSL Annex B + PACKAGES:=kmod-sangam-atm-annex-b ppp-mod-pppoa +endef +$(eval $(call Profile,AnnexB)) + Index: target/linux/ar7-2.4/profiles/None.mk =================================================================== --- target/linux/ar7-2.4/profiles/None.mk (revision 0) +++ target/linux/ar7-2.4/profiles/None.mk (revision 0) @@ -0,0 +1,13 @@ +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Profile/None + NAME:=No ADSL + PACKAGES:= +endef +$(eval $(call Profile,None)) + Index: target/linux/ar7-2.4/Makefile =================================================================== --- target/linux/ar7-2.4/Makefile (revision 6466) +++ target/linux/ar7-2.4/Makefile (working copy) @@ -20,22 +20,6 @@ include $(INCLUDE_DIR)/kernel-build.mk DEFAULT_PACKAGES += kmod-avalanche-cpmac -define Profile/AnnexA - NAME:=ADSL Annex A (default) - PACKAGES:=kmod-sangam-atm-annex-a ppp-mod-pppoa -endef -$(eval $(call Profile,AnnexA)) +include profiles/*.mk -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))