summaryrefslogtreecommitdiffstats
path: root/tools/builder_common.sh
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-09-15 17:28:16 -0300
committerRenato Botelho <renato@netgate.com>2016-09-15 17:28:16 -0300
commit3cd56f54453b4673ea52875a129a1f9a79909bb6 (patch)
tree7c46f7fd33de3fbfe1b4329ad08528001055581d /tools/builder_common.sh
parent16a48677ba95a2e4716b9eb61744eb45fa2a6e76 (diff)
downloadpfsense-3cd56f54453b4673ea52875a129a1f9a79909bb6.zip
pfsense-3cd56f54453b4673ea52875a129a1f9a79909bb6.tar.gz
Create also an altabi file on repo package
Diffstat (limited to 'tools/builder_common.sh')
-rw-r--r--tools/builder_common.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh
index 6768b55..0c23090 100644
--- a/tools/builder_common.sh
+++ b/tools/builder_common.sh
@@ -919,6 +919,15 @@ clone_to_staging_area() {
)
local _default_abi="FreeBSD:${_freebsd_major_version}:${TARGET_ARCH}"
+ local _default_altabi="freebsd:${_freebsd_major_version}"
+ if [ "${TARGET_ARCH}" = "armv6" ]; then
+ _default_altabi="${_default_altabi}:${TARGET_ARCH}:32:el:eabi:hardfp"
+ elif [ "${TARGET_ARCH}" = "i386" ]; then
+ _default_altabi="${_default_altabi}:x86:32"
+ else
+ _default_altabi="${_default_altabi}:x86:64"
+ fi
+
# Add all repos
for _template in ${PKG_REPO_BASE}/${PRODUCT_NAME}-repo*.conf; do
_template_filename=$(basename ${_template})
@@ -937,6 +946,14 @@ clone_to_staging_area() {
echo ${_default_abi} \
> ${_share_repos_path}/${_template_filename%%.conf}.abi
fi
+
+ if [ -f ${_template%%.conf}.altabi ]; then
+ sed -e "s,%%ARCH%%,${TARGET_ARCH},g" ${_template%%.conf}.altabi \
+ > ${_share_repos_path}/${_template_filename%%.conf}.altabi
+ else
+ echo ${_default_altabi} \
+ > ${_share_repos_path}/${_template_filename%%.conf}.altabi
+ fi
done
core_pkg_create repo "" ${CORE_PKG_VERSION} ${SCRATCHDIR}/repo-tmp
OpenPOWER on IntegriCloud