@@ -106,13 +106,15 @@ endef
define Image/Build/Profile/Linksprite_pcDuino3
$(call Image/Build/SDCard,$(1),sun7i-a20-pcduino3,$(2))
endef
-endef
-define Image/Build
+define Image/Build/Default
$(call Image/Build/$(1),$(1),$(2))
$(call Image/Build/Profile/$(2),$(1),$(2))
-
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) bs=128k conv=sync
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))
+
deleted file mode 100644
@@ -1,17 +0,0 @@
-#
-# 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
- PACKAGES += uboot-sunxi-A13-OLinuXino
-endef
-
-define Profile/Default/Description
- Default package set compatible with most boards.
-endef
-$(eval $(call Profile,Default))
-