summaryrefslogtreecommitdiffstats
path: root/tools
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:25 -0300
commit8d1b677a5b7dafaaafb62c8cd9541e19835e5c9c (patch)
treeeaa0eadd961c0458f98ceb63152c12958835b02e /tools
parent8da986eb51b3e01e23c601a2611b4aeb4a76b993 (diff)
downloadpfsense-8d1b677a5b7dafaaafb62c8cd9541e19835e5c9c.zip
pfsense-8d1b677a5b7dafaaafb62c8cd9541e19835e5c9c.tar.gz
Create also an altabi file on repo package
Diffstat (limited to 'tools')
-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 027cb37..abf7657 100644
--- a/tools/builder_common.sh
+++ b/tools/builder_common.sh
@@ -1221,6 +1221,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})
@@ -1239,6 +1248,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