diff mbox

[OpenWrt-Devel,03/13] at91: Translate the build all profiles profile to new multi-profile config

Message ID 1453171813-36623-4-git-send-email-openwrt@daniel.thecshore.com
State Superseded
Headers show

Commit Message

Daniel Dickinson Jan. 19, 2016, 2:50 a.m. UTC
From: Daniel Dickinson <openwrt@daniel.thecshore.com>

Minor fixes so that the former 'Default' profile (now All)
not only builds all profiles but acts correctly in the
new multi-profile build machinery/menuconfig

Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
---
 target/linux/at91/image/Makefile                |  2 +-
 target/linux/at91/legacy/profiles/00-default.mk |  1 +
 target/linux/at91/legacy/profiles/01-all.mk     | 16 ++++++++++++++++
 3 files changed, 18 insertions(+), 1 deletion(-)
 create mode 100644 target/linux/at91/legacy/profiles/01-all.mk
diff mbox

Patch

diff --git a/target/linux/at91/image/Makefile b/target/linux/at91/image/Makefile
index 648b7f5..0cea83a 100644
--- a/target/linux/at91/image/Makefile
+++ b/target/linux/at91/image/Makefile
@@ -66,7 +66,7 @@  Image/Build/Kernel/ETHERNUT5=$(call MkuImageDtb,ethernut5,ethernut5)
 Image/Build/Kernel/Q5XR5=$(call MkOftree,q5xr5,at91-q5xr5)
 
 
-define Image/Build/Kernel/Default
+define Image/Build/Kernel/All
 	$(call Image/Build/Kernel/AT91SAM9263EK)
 	$(call Image/Build/Kernel/AT91SAM9G15EK)
 	$(call Image/Build/Kernel/AT91SAM9G20EK)
diff --git a/target/linux/at91/legacy/profiles/00-default.mk b/target/linux/at91/legacy/profiles/00-default.mk
index 3ff040d..9a1192f 100644
--- a/target/linux/at91/legacy/profiles/00-default.mk
+++ b/target/linux/at91/legacy/profiles/00-default.mk
@@ -7,6 +7,7 @@ 
 
 define Profile/Default
 	NAME:=Default Profile
+	PROFILE_SKIP_DEFAULT:=1
 endef
 
 define Profile/Default/Description
diff --git a/target/linux/at91/legacy/profiles/01-all.mk b/target/linux/at91/legacy/profiles/01-all.mk
new file mode 100644
index 0000000..1c4c5d7
--- /dev/null
+++ b/target/linux/at91/legacy/profiles/01-all.mk
@@ -0,0 +1,16 @@ 
+#
+# 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
+endef
+
+define Profile/All/Description
+	Build images for all profiles
+endef
+
+$(eval $(call Profile,All))