Create also an altabi file on repo package

This commit is contained in:
Renato Botelho 2016-09-15 17:28:16 -03:00
parent 16a48677ba
commit 3cd56f5445

View File

@ -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