summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-01-16 10:27:00 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-01-16 10:32:34 (EST)
commit561dc43e5b4b303232669903f9db1f318eb476a3 (patch)
treebc029ec8cf26ba89ef6900127fa3bb64566ac0de
parentb5e1e7a5b8e3086002faa50cdd7c3c279e7e251e (diff)
profile_plat_arches(): New function
-rw-r--r--src/profile.sh2
-rw-r--r--src/profile/proteanos.sh11
2 files changed, 12 insertions, 1 deletions
diff --git a/src/profile.sh b/src/profile.sh
index 582166c..ba803f5 100644
--- a/src/profile.sh
+++ b/src/profile.sh
@@ -69,7 +69,7 @@ profile_detect()
return 1
}
-for func in normalize_suite detect_arch default_plat select_mirror \
+for func in normalize_suite detect_arch default_plat plat_arches select_mirror \
prepare_install installer_type validate_archplat \
opkg_state_dir opkg_conf_file feeds get_cert_url get_root_key \
dep_fields include_pkg get_fstab file_systems_mounted \
diff --git a/src/profile/proteanos.sh b/src/profile/proteanos.sh
index f322adf..f44de08 100644
--- a/src/profile/proteanos.sh
+++ b/src/profile/proteanos.sh
@@ -70,6 +70,9 @@ _prof_proteanos_platforms_paragraph()
platform="${_prof_proteanos_platforms_platform}"
archplat="$(printf '%s' "${platform}" | tr -c '[a-z0-9/]' '_')"
+ eval "_prof_proteanos_archplat_arches_${archplat#*/}=$(: \
+ )\"\${_prof_proteanos_archplat_arches_${archplat#*/}-}$(: \
+ )\${platform%/*}\""
archplat="${archplat%/*}__${archplat#*/}"
_prof_proteanos_platforms="${_prof_proteanos_platforms}${platform} "
@@ -133,6 +136,14 @@ prof_proteanos_default_plat()
printf 'dev\n'
}
+prof_proteanos_plat_arches()
+{
+ local plat="${1}"
+ shift 1
+
+ eval "printf '%s\\n' \${_prof_proteanos_archplat_arches_${plat}}"
+}
+
prof_proteanos_select_mirror()
{
local mirrors=