From 8d1b677a5b7dafaaafb62c8cd9541e19835e5c9c Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 15 Sep 2016 17:28:16 -0300 Subject: Create also an altabi file on repo package --- tools/builder_common.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tools') 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 -- cgit v1.1