ci: Do not take cross-build into consideration for kata-arch.sh

Right now we'd need to import lib.sh just in order to get cross-build
information for rust, and it seems a little bit premature to do so at
this stage and only for rust.

Let's skip it and keep this transition simple.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2023-07-15 09:50:36 +02:00
parent 6a76bf92cb
commit 8653be71b2

View File

@ -10,7 +10,6 @@ set -e
typeset -r script_name=${0##*/}
typeset -r cidir=$(dirname "$0")
source "${cidir}/lib.sh"
function usage() {
cat <<EOF
@ -48,10 +47,9 @@ function arch_to_rust() {
if [ "${arch}" == "ppc64le" ]; then
arch="powerpc64le"
ARCH="${arch}"
fi
[ "${CROSS_BUILD}" == "false" ] && echo "${arch}" || echo "${ARCH}"
echo "${arch}"
}
# Convert architecture to the name used by the Linux kernel build system