@@ -19,7 +19,7 @@ VMLINUX:=$(IMG_PREFIX)-vmlinux
UIMAGE:=$(IMG_PREFIX)-uImage
define Image/Build/Initramfs
- $(call Image/Build/Profile/$(PROFILE),initramfs)
+ $(call Image/Build/Profile/$(if $(filter $(PROFILE),$(PROFILES_BUILD)),multi-profile,$(PROFILE),initramfs))
endef
DEVICE_VARS += DTS
@@ -1112,6 +1112,9 @@ define Image/Build/Profile/Default
endef
endif
+define Image/Build/Profile/Unified
+ true
+endif
ifndef TARGET_DEVICES
#
@@ -1137,7 +1140,7 @@ endef
define Image/Build
$(call Image/Build/$(1))
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) bs=128k conv=sync
- $(call Image/Build/Profile/$(PROFILE),$(1))
+ $(foreach profile,$(PROFILES_BUILD),$(call Image/Build/Profile/$(profile),$(1)))
endef
endif
@@ -7,6 +7,9 @@
define Profile/Default
NAME:=Default Profile
+ PROFILE_TYPE:=meta
+ PROFILE_DEFAULT:=1
+ PROFILE_IMAGES_TYPE:=all
endef
define Profile/Default/Description
new file mode 100644
@@ -0,0 +1,16 @@
+#
+# Copyright (C) 2011 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/Unified
+ NAME:=Unified Profile (merge or all selected profiles)
+ PROFILE_TYPE:=unified
+endef
+
+define Profile/Unified/Description
+ Build selected images with a profile which is the merge of all selected profiles.
+endef
+$(eval $(call Profile,Unified))
@@ -8,6 +8,7 @@ ARCH_PACKAGES:=ramips_24kec
FEATURES+=usb
CPU_TYPE:=24kec
CPU_SUBTYPE:=dsp
+TARGET_MULTI_SELECT:=1
DEFAULT_PACKAGES += kmod-rt2800-pci kmod-rt2800-soc kmod-mt76
@@ -7,6 +7,9 @@
define Profile/Default
NAME:=Default Profile
+ PROFILE_TYPE:=meta
+ PROFILE_IMAGES_TYPE:=all
+ PROFILE_DEFAULT:=1
endef
define Profile/Default/Description
new file mode 100644
@@ -0,0 +1,16 @@
+#
+# Copyright (C) 2011 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/Unified
+ NAME:=Unified Profile (merge or all selected profiles)
+ PROFILE_TYPE:=unified
+endef
+
+define Profile/Unified/Description
+ Build selected images with a profile which is the merge of all selected profiles.
+endef
+$(eval $(call Profile,Unified))
@@ -9,6 +9,7 @@ FEATURES+=usb
CPU_TYPE:=1004kc
CPU_SUBTYPE:=dsp
CFLAGS:=-Os -pipe -mmt -mips32r2 -mtune=1004kc
+TARGET_MULTI_SELECT:=1
DEFAULT_PACKAGES += kmod-mt76
@@ -7,6 +7,9 @@
define Profile/Default
NAME:=Default Profile
+ PROFILE_TYPE:=meta
+ PROFILE_IMAGES_TYPE:=all
+ PROFILE_DEFAULT:=1
endef
define Profile/Default/Description
new file mode 100644
@@ -0,0 +1,16 @@
+#
+# Copyright (C) 2011 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/Unified
+ NAME:=Unified Profile (merge or all selected profiles)
+ PROFILE_TYPE:=unified
+endef
+
+define Profile/Unified/Description
+ Build selected images with a profile which is the merge of all selected profiles.
+endef
+$(eval $(call Profile,Unified))
@@ -8,6 +8,7 @@ ARCH_PACKAGES:=ramips_24kec
FEATURES+=usb
CPU_TYPE:=24kec
CPU_SUBTYPE:=dsp
+TARGET_MULTI_SELECT:=1
define Target/Description
Build firmware images for Ralink MT7628 based boards.
@@ -7,6 +7,9 @@
define Profile/Default
NAME:=Default Profile
+ PROFILE_TYPE:=meta
+ PROFILE_DEFAULT:=1
+ PROFILE_IMAGES_TYPE:=all
endef
define Profile/Default/Description
deleted file mode 100644
@@ -1,18 +0,0 @@
-#
-# Copyright (C) 2015 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-define Profile/LinkIt7688
- NAME:=LinkIt7688
- PACKAGES:=\
- kmod-usb-core kmod-usb2 kmod-usb-ohci \
- uboot-envtools kmod-ledtrig-netdev
-endef
-
-define Profile/LinkIt7688/Description
- Default package set compatible with LinkIt Smart7688 dev board.
-endef
-$(eval $(call Profile,LinkIt7688))
new file mode 100644
@@ -0,0 +1,16 @@
+#
+# Copyright (C) 2011 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/Unified
+ NAME:=Unified Profile (merge or all selected profiles)
+ PROFILE_TYPE:=unified
+endef
+
+define Profile/Unified/Description
+ Build selected images with a profile which is the merge of all selected profiles.
+endef
+$(eval $(call Profile,Unified))
new file mode 100644
@@ -0,0 +1,18 @@
+#
+# Copyright (C) 2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/LinkIt7688
+ NAME:=LinkIt7688
+ PACKAGES:=\
+ kmod-usb-core kmod-usb2 kmod-usb-ohci \
+ uboot-envtools kmod-ledtrig-netdev
+endef
+
+define Profile/LinkIt7688/Description
+ Default package set compatible with LinkIt Smart7688 dev board.
+endef
+$(eval $(call Profile,LinkIt7688))
@@ -8,6 +8,7 @@ ARCH_PACKAGES:=ramips_24kec
FEATURES+=usb
CPU_TYPE:=24kec
CPU_SUBTYPE:=dsp
+TARGET_MULTI_SELECT:=1
define Target/Description
Build firmware images for Ralink MT7688 based boards.
@@ -7,6 +7,9 @@
define Profile/Default
NAME:=Default Profile
+ PROFILE_TYPE:=meta
+ PROFILE_DEFAULT:=1
+ PROFILE_IMAGES_TYPE:=all
endef
define Profile/Default/Description
new file mode 100644
@@ -0,0 +1,16 @@
+#
+# Copyright (C) 2011 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/Unified
+ NAME:=Unified Profile (merge or all selected profiles)
+ PROFILE_TYPE:=unified
+endef
+
+define Profile/Unified/Description
+ Build selected images with a profile which is the merge of all selected profiles.
+endef
+$(eval $(call Profile,Unified))
@@ -5,6 +5,7 @@
SUBTARGET:=rt288x
BOARDNAME:=RT288x based boards
CPU_TYPE:=mips32r2
+TARGET_MULTI_SELECT:=1
DEFAULT_PACKAGES += kmod-rt2800-soc
@@ -7,6 +7,9 @@
define Profile/Default
NAME:=Default Profile
+ PROFILE_TYPE:=meta
+ PROFILE_DEFAULT:=1
+ PROFILE_IMAGES_TYPES:=all
endef
define Profile/Default/Description
new file mode 100644
@@ -0,0 +1,16 @@
+#
+# Copyright (C) 2011 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/Unified
+ NAME:=Unified Profile (merge or all selected profiles)
+ PROFILE_TYPE:=unified
+endef
+
+define Profile/Unified/Description
+ Build selected images with a profile which is the merge of all selected profiles.
+endef
+$(eval $(call Profile,Unified))
@@ -8,6 +8,7 @@ ARCH_PACKAGES:=ramips_24kec
FEATURES+=usb ramdisk
CPU_TYPE:=24kec
CPU_SUBTYPE:=dsp
+TARGET_MULTI_SELECT:=1
DEFAULT_PACKAGES += kmod-rt2800-soc
@@ -7,6 +7,9 @@
define Profile/Default
NAME:=Default Profile
+ PROFILE_TYPE:=meta
+ PROFILE_DEFAULT:=1
+ PROFILE_IMAGES_TYPE:=all
endef
define Profile/Default/Description
new file mode 100644
@@ -0,0 +1,16 @@
+#
+# Copyright (C) 2011 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/Unified
+ NAME:=Unified Profile (merge or all selected profiles)
+ PROFILE_TYPE:=unified
+endef
+
+define Profile/Unified/Description
+ Build selected images with a profile which is the merge of all selected profiles.
+endef
+$(eval $(call Profile,Unified))
@@ -8,6 +8,7 @@ ARCH_PACKAGES:=ramips_24kec
FEATURES+=usb pci
CPU_TYPE:=74kc
CPU_SUBTYPE:=dsp2
+TARGET_MULTI_SELECT:=1
DEFAULT_PACKAGES += kmod-rt2800-pci kmod-rt2800-soc