[OpenWrt-Devel] [PATCH 07/13] arc770: Translate the build all profiles profile to new multi-profile config

openwrt at daniel.thecshore.com openwrt at daniel.thecshore.com
Mon Jan 18 21:50:07 EST 2016


From: Daniel Dickinson <openwrt at 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 at daniel.thecshore.com>
---
 target/linux/arc770/generic/profiles/00-default.mk |  1 +
 target/linux/arc770/generic/profiles/01-all.mk     | 15 +++++++++++++++
 target/linux/arc770/generic/profiles/01-minimal.mk | 15 ---------------
 target/linux/arc770/generic/profiles/02-axs101.mk  | 16 ----------------
 target/linux/arc770/generic/profiles/02-minimal.mk | 15 +++++++++++++++
 target/linux/arc770/generic/profiles/04-axs101.mk  | 16 ++++++++++++++++
 target/linux/arc770/image/Makefile                 |  2 +-
 7 files changed, 48 insertions(+), 32 deletions(-)
 create mode 100644 target/linux/arc770/generic/profiles/01-all.mk
 delete mode 100644 target/linux/arc770/generic/profiles/01-minimal.mk
 delete mode 100644 target/linux/arc770/generic/profiles/02-axs101.mk
 create mode 100644 target/linux/arc770/generic/profiles/02-minimal.mk
 create mode 100644 target/linux/arc770/generic/profiles/04-axs101.mk

diff --git a/target/linux/arc770/generic/profiles/00-default.mk b/target/linux/arc770/generic/profiles/00-default.mk
index b12ceb1..5f565c6 100644
--- a/target/linux/arc770/generic/profiles/00-default.mk
+++ b/target/linux/arc770/generic/profiles/00-default.mk
@@ -8,6 +8,7 @@
 define Profile/Default
 	NAME:=Default Profile (all drivers)
 	PACKAGES:= kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-mmc kmod-sdhci
+	PROFILE_SKIP_DEFAULT:=1
 endef
 
 define Profile/Default/Description
diff --git a/target/linux/arc770/generic/profiles/01-all.mk b/target/linux/arc770/generic/profiles/01-all.mk
new file mode 100644
index 0000000..02daed8
--- /dev/null
+++ b/target/linux/arc770/generic/profiles/01-all.mk
@@ -0,0 +1,15 @@
+#
+# Copyright (C) 2015 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))
diff --git a/target/linux/arc770/generic/profiles/01-minimal.mk b/target/linux/arc770/generic/profiles/01-minimal.mk
deleted file mode 100644
index c8968da..0000000
--- a/target/linux/arc770/generic/profiles/01-minimal.mk
+++ /dev/null
@@ -1,15 +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/Minimal
-	NAME:=Minimal Profile (no drivers)
-endef
-
-define Profile/Minimal/Description
-	Minimal package set compatible with most boards.
-endef
-$(eval $(call Profile,Minimal))
diff --git a/target/linux/arc770/generic/profiles/02-axs101.mk b/target/linux/arc770/generic/profiles/02-axs101.mk
deleted file mode 100644
index 60cf0fc..0000000
--- a/target/linux/arc770/generic/profiles/02-axs101.mk
+++ /dev/null
@@ -1,16 +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/axs101
-	NAME:=Synopsys DesignWare AXS101
-	PACKAGES:= kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-mmc kmod-sdhci
-endef
-
-define Profile/axs101/Description
-	Package set compatible with hardware using Synopsys DesignWare AXS101 boards.
-endef
-$(eval $(call Profile,axs101))
diff --git a/target/linux/arc770/generic/profiles/02-minimal.mk b/target/linux/arc770/generic/profiles/02-minimal.mk
new file mode 100644
index 0000000..c8968da
--- /dev/null
+++ b/target/linux/arc770/generic/profiles/02-minimal.mk
@@ -0,0 +1,15 @@
+#
+# Copyright (C) 2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/Minimal
+	NAME:=Minimal Profile (no drivers)
+endef
+
+define Profile/Minimal/Description
+	Minimal package set compatible with most boards.
+endef
+$(eval $(call Profile,Minimal))
diff --git a/target/linux/arc770/generic/profiles/04-axs101.mk b/target/linux/arc770/generic/profiles/04-axs101.mk
new file mode 100644
index 0000000..60cf0fc
--- /dev/null
+++ b/target/linux/arc770/generic/profiles/04-axs101.mk
@@ -0,0 +1,16 @@
+#
+# Copyright (C) 2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/axs101
+	NAME:=Synopsys DesignWare AXS101
+	PACKAGES:= kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-mmc kmod-sdhci
+endef
+
+define Profile/axs101/Description
+	Package set compatible with hardware using Synopsys DesignWare AXS101 boards.
+endef
+$(eval $(call Profile,axs101))
diff --git a/target/linux/arc770/image/Makefile b/target/linux/arc770/image/Makefile
index 6b9c5e4..0bbf36d 100644
--- a/target/linux/arc770/image/Makefile
+++ b/target/linux/arc770/image/Makefile
@@ -14,7 +14,7 @@ endef
 
 # Shared device definition: applies to every defined device
 define Device/Default
-  PROFILES = Default $$(DEVICE_PROFILE)
+  PROFILES = All $$(DEVICE_PROFILE)
   KERNEL_DEPENDS = $$(wildcard ../dts/$$(DEVICE_DTS).dts)
   KERNEL_SUFFIX := .elf
   KERNEL_INITRAMFS := kernel-bin | patch-dtb
-- 
2.4.3
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list