From 28fe46a144f470ab3d1c7a0b9cae5f88fa5bb97f Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 16 Oct 2012 13:31:05 -0400 Subject: Add host platform to opk file names. --- diff --git a/src/ob-buildopk.sh b/src/ob-buildopk.sh index 6f57c50..ede9f5b 100644 --- a/src/ob-buildopk.sh +++ b/src/ob-buildopk.sh @@ -39,7 +39,9 @@ main() for pkg in ${OPK_PACKAGES}; do arch="$(ob_get_binary_parameter "${pkg}" 'Architecture')" [ "${arch}" != 'all' ] && arch="${OPK_HOST_ARCH}" - build_opk "${pkg}" "${OPK_BINARY_VERSION}" "${arch}" + plat="$(ob_get_binary_parameter "${pkg}" 'Platform')" + [ "${plat}" != 'all' ] && plat="${OPK_HOST_PLAT}" + build_opk "${pkg}" "${OPK_BINARY_VERSION}" "${arch}" "${plat}" done fi rm 'debian-binary' @@ -50,11 +52,12 @@ build_opk() binary="${1}" version="${2}" arch="${3}" + plat="${4}" (cd "${binary}.data" && tar -czf '../data.tar.gz' '.') (cd "${binary}.control" && tar -czf '../control.tar.gz' '.') - tar -czf "../../${binary}_${version}_${arch}.opk" \ + tar -czf "../../${binary}_${version}_${arch}_${plat}.opk" \ 'debian-binary' 'data.tar.gz' 'control.tar.gz' rm -Rf 'data.tar.gz' 'control.tar.gz' } -- cgit v0.9.1