new file mode 100644
@@ -0,0 +1,17 @@
+#
+# Copyright (C) 2013 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/Default
+ NAME:=Default package set
+ PROFILE_SKIP_DEFAULT:=1
+endef
+
+define Profile/Default/Description
+ Default package set compatible with most boards.
+endef
+$(eval $(call Profile,Default))
+
new file mode 100644
@@ -0,0 +1,18 @@
+#
+# Copyright (C) 2013 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/All
+ NAME:=All Profiles
+ PROFILE_SKIP_SINGLE:=1
+endef
+
+define Profile/All/Description
+ Build images for all profiles
+endef
+
+$(eval $(call Profile,All))
+
@@ -355,7 +355,7 @@ define Image/Build/Initramfs
endef
# $(1): filesystem type.
-define Image/Build
+define Image/Build/Default
$(STAGING_DIR_HOST)/bin/trx \
-m 33554432 \
-o $(BIN_DIR)/$(IMG_PREFIX)-$(1).trx \
@@ -381,4 +381,8 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
endif
endef
+define Image/Build
+ $(if $(filter-out All,$(2)),$(call Image/Build/Default,$(1),$(2)))
+endef
+
$(eval $(call BuildImage))
new file mode 100644
@@ -0,0 +1,17 @@
+#
+# Copyright (C) 2013 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/Default
+ NAME:=Default package set
+ PROFILE_SKIP_DEFAULT:=1
+endef
+
+define Profile/Default/Description
+ Default package set compatible with most boards.
+endef
+$(eval $(call Profile,Default))
+
new file mode 100644
@@ -0,0 +1,18 @@
+#
+# Copyright (C) 2013 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/All
+ NAME:=All Profiles
+ PROFILE_SKIP_SINGLE:=1
+endef
+
+define Profile/All/Description
+ Build images for all profiles
+endef
+
+$(eval $(call Profile,All))
+
new file mode 100644
@@ -0,0 +1,17 @@
+#
+# Copyright (C) 2013 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/Default
+ NAME:=Default package set
+ PROFILE_SKIP_DEFAULT:=1
+endef
+
+define Profile/Default/Description
+ Default package set compatible with most boards.
+endef
+$(eval $(call Profile,Default))
+
new file mode 100644
@@ -0,0 +1,18 @@
+#
+# Copyright (C) 2013 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/All
+ NAME:=All Profiles
+ PROFILE_SKIP_SINGLE:=1
+endef
+
+define Profile/All/Description
+ Build images for all profiles
+endef
+
+$(eval $(call Profile,All))
+