summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-08-17 20:43:43 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-08-17 20:43:43 (EDT)
commit3306d90f7944c347ef6dd6aed6bfb55f0a68b9c2 (patch)
treef707a079d92dad3c4aac52b228d2f09bff10ef40
parentb6cb0ece3912448586a2b6df8b3a7b2f5fb18583 (diff)
profile_validate_archplat(): New function
-rw-r--r--lib/profile.sh21
-rw-r--r--lib/profiles/proteanos.sh8
2 files changed, 29 insertions, 0 deletions
diff --git a/lib/profile.sh b/lib/profile.sh
index ee6e556..aaeb317 100644
--- a/lib/profile.sh
+++ b/lib/profile.sh
@@ -60,6 +60,27 @@ profile_detect_arch()
"prof_${profile}_detect_arch"
}
+profile_validate_archplat()
+{
+ local arch="${1}"
+ local plat="${2}"
+ local prof_arch=
+ local prof_plat=
+
+ while read -r prof_arch prof_plat; do
+ [ "x${prof_arch}" = 'x' ] && continue
+ if [ "x${arch}" = "x${prof_arch}" ]; then
+ if [ "x${plat}" = "x${prof_plat}" ]; then
+ return 0
+ fi
+ fi
+ done <<-EOF
+ $(eval "printf '%s\n' \"\${prof_${profile}_archplats}\"")
+ EOF
+
+ return 1
+}
+
profile_feeds()
{
local arch="${1}"
diff --git a/lib/profiles/proteanos.sh b/lib/profiles/proteanos.sh
index 4054568..2a72567 100644
--- a/lib/profiles/proteanos.sh
+++ b/lib/profiles/proteanos.sh
@@ -17,6 +17,14 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+prof_proteanos_archplats='
+amd64-linux-glibc dev
+i686-linux-glibc dev
+i686-linux-glibc ao751h
+i686-linux-glibc dimension2400
+i686-linux-glibc x60
+'
+
prof_proteanos_normalize_suite()
{
local suite="${1}"