summaryrefslogtreecommitdiffstats
path: root/src/ob-buildopk.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/ob-buildopk.sh')
-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'
}