tests/lcitool: Rename non-Debian specific helper
This helper is not Debian specific, rename it to cross_build(). Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Acked-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220929114231.583801-10-alex.bennee@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20221028095659.48734-2-philmd@linaro.org>
This commit is contained in:
parent
5107fd3eff
commit
6532426aa0
@ -93,7 +93,7 @@ debian11_extras = [
|
||||
]
|
||||
|
||||
|
||||
def debian_cross_build(prefix, targets):
|
||||
def cross_build(prefix, targets):
|
||||
conf = "ENV QEMU_CONFIGURE_OPTS --cross-prefix=%s\n" % (prefix)
|
||||
targets = "ENV DEF_TARGET_LIST %s\n" % (targets)
|
||||
return "".join([conf, targets])
|
||||
@ -121,45 +121,45 @@ try:
|
||||
#
|
||||
generate_dockerfile("debian-amd64-cross", "debian-11",
|
||||
cross="x86_64",
|
||||
trailer=debian_cross_build("x86_64-linux-gnu-",
|
||||
"x86_64-softmmu,"
|
||||
"x86_64-linux-user,"
|
||||
"i386-softmmu,i386-linux-user"))
|
||||
trailer=cross_build("x86_64-linux-gnu-",
|
||||
"x86_64-softmmu,"
|
||||
"x86_64-linux-user,"
|
||||
"i386-softmmu,i386-linux-user"))
|
||||
|
||||
generate_dockerfile("debian-arm64-cross", "debian-11",
|
||||
cross="aarch64",
|
||||
trailer=debian_cross_build("aarch64-linux-gnu-",
|
||||
"aarch64-softmmu,aarch64-linux-user"))
|
||||
trailer=cross_build("aarch64-linux-gnu-",
|
||||
"aarch64-softmmu,aarch64-linux-user"))
|
||||
|
||||
generate_dockerfile("debian-armel-cross", "debian-11",
|
||||
cross="armv6l",
|
||||
trailer=debian_cross_build("arm-linux-gnueabi-",
|
||||
"arm-softmmu,arm-linux-user,armeb-linux-user"))
|
||||
trailer=cross_build("arm-linux-gnueabi-",
|
||||
"arm-softmmu,arm-linux-user,armeb-linux-user"))
|
||||
|
||||
generate_dockerfile("debian-armhf-cross", "debian-11",
|
||||
cross="armv7l",
|
||||
trailer=debian_cross_build("arm-linux-gnueabihf-",
|
||||
"arm-softmmu,arm-linux-user"))
|
||||
trailer=cross_build("arm-linux-gnueabihf-",
|
||||
"arm-softmmu,arm-linux-user"))
|
||||
|
||||
generate_dockerfile("debian-mips64el-cross", "debian-11",
|
||||
cross="mips64el",
|
||||
trailer=debian_cross_build("mips64el-linux-gnuabi64-",
|
||||
"mips64el-softmmu,mips64el-linux-user"))
|
||||
trailer=cross_build("mips64el-linux-gnuabi64-",
|
||||
"mips64el-softmmu,mips64el-linux-user"))
|
||||
|
||||
generate_dockerfile("debian-mipsel-cross", "debian-11",
|
||||
cross="mipsel",
|
||||
trailer=debian_cross_build("mipsel-linux-gnu-",
|
||||
"mipsel-softmmu,mipsel-linux-user"))
|
||||
trailer=cross_build("mipsel-linux-gnu-",
|
||||
"mipsel-softmmu,mipsel-linux-user"))
|
||||
|
||||
generate_dockerfile("debian-ppc64el-cross", "debian-11",
|
||||
cross="ppc64le",
|
||||
trailer=debian_cross_build("powerpc64le-linux-gnu-",
|
||||
"ppc64-softmmu,ppc64-linux-user"))
|
||||
trailer=cross_build("powerpc64le-linux-gnu-",
|
||||
"ppc64-softmmu,ppc64-linux-user"))
|
||||
|
||||
generate_dockerfile("debian-s390x-cross", "debian-11",
|
||||
cross="s390x",
|
||||
trailer=debian_cross_build("s390x-linux-gnu-",
|
||||
"s390x-softmmu,s390x-linux-user"))
|
||||
trailer=cross_build("s390x-linux-gnu-",
|
||||
"s390x-softmmu,s390x-linux-user"))
|
||||
|
||||
#
|
||||
# Cirrus packages lists for GitLab
|
||||
|
Loading…
Reference in New Issue
Block a user