summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-10-16 13:31:05 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-10-16 13:31:05 (EDT)
commit28fe46a144f470ab3d1c7a0b9cae5f88fa5bb97f (patch)
treef1f6190dd2caf279f56dbb69a00ce86761eec753 /src
parent7731c7323c8f9602653dbd14c9619bb203060b37 (diff)
Add host platform to opk file names.
Diffstat (limited to 'src')
-rw-r--r--src/ob-buildopk.sh7
1 files changed, 5 insertions, 2 deletions
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'
}