mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-21 20:15:21 +00:00
db5d42ad41
In order to support both amd64 and arm64, we rely on the TARGETARCH variable that is passed from the docker buildx command, based on the platform used to build the container image. There is no way to rely directly on $(uname -m) to assign a variable with the correct x86_64 or aarch64 values we're looking for. Both ENV and ARG don't evaluate the command, which means they see it as a simple string. Using RUN is the only way to evaluate a command. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>