ar71xx: convert OM2P to device profile
authorFelix Fietkau <nbd@nbd.name>
Mon, 23 May 2016 15:59:37 +0000 (17:59 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 7 Jun 2016 06:58:41 +0000 (08:58 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/ar71xx/generic/profiles/openmesh.mk
target/linux/ar71xx/image/legacy.mk

index 15b974abf564fb0072225a6cf7c0394fa399df29..dbdf16959fed00ce1217bb9709c8b418dcb517d0 100644 (file)
@@ -5,17 +5,6 @@
 # See /LICENSE for more information.
 #
 
-define Profile/OM2P
-       NAME:=OpenMesh OM2P/OM2Pv2/OM2P-HS/OM2P-HSv2/OM2P-HSv3/OM2P-LC
-       PACKAGES:=kmod-ath9k om-watchdog
-endef
-
-define Profile/OM2P/Description
-       Package set optimized for the OpenMesh OM2P/OM2Pv2/OM2P-HS/OM2P-HSv2/OM2P-HSv3/OM2P-LC.
-endef
-
-$(eval $(call Profile,OM2P))
-
 define Profile/OM5P
        NAME:=OpenMesh OM5P/OM5P-AN
        PACKAGES:=kmod-ath9k om-watchdog
index 7e3f2934d499c0cfb4425e6314874c8af46d48d0..cf3183e67aed750acf714ba13601861910b2b3c6 100644 (file)
@@ -1164,6 +1164,12 @@ $(eval $(call MultiProfile,Yun,YUN_16M YUN_8M))
 $(eval $(call MultiProfile,Minimal,$(SINGLE_PROFILES)))
 $(eval $(call MultiProfile,Madwifi,EAP7660D WP543))
 
+define LegacyDevice/OM2P
+  DEVICE_TITLE := OpenMesh OM2P/OM2Pv2/OM2P-HS/OM2P-HSv2/OM2P-HSv3/OM2P-LC
+  DEVICE_PACKAGES := kmod-ath9k om-watchdog
+endef
+LEGACY_DEVICES += OM2P
+
 endif # ifeq ($(SUBTARGET),generic)
 
 ifeq ($(SUBTARGET),nand)
@@ -1209,6 +1215,15 @@ endif
        $(call Image/Build/Profile/$(if $(CONFIG_IB),Default,$(IMAGE_PROFILE)),loader)
 endef
 
+define Image/Prepare/Profile
+       $(call Image/Build/Profile/$(1),loader)
+endef
+
+define Image/Build/Profile
+       $(call Image/Build/Profile/$(1),buildkernel)
+       $(call Image/Build/Profile/$(1),$(2))
+endef
+
 # $(1): filesystem type.
 define Image/Build
        $(call Image/Build/$(call rootfs_type,$(1)),$(1))