mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00
classes/image-oci: Map image architecture correctly
OCI requires that the architecture [1] be a valid GOARCH [2]. To correctly perform this mapping, use the go library code from OE core. [1]: https://github.com/opencontainers/image-spec/blob/main/config.md#properties [2]: https://go.dev/doc/install/source#environment Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
185d07f863
commit
115f6367f3
|
@ -52,7 +52,7 @@ OCI_IMAGE_AUTHOR_EMAIL ?= "${PATCH_GIT_USER_EMAIL}"
|
|||
OCI_IMAGE_TAG ?= "latest"
|
||||
OCI_IMAGE_RUNTIME_UID ?= ""
|
||||
|
||||
OCI_IMAGE_ARCH ?= "${TARGET_ARCH}"
|
||||
OCI_IMAGE_ARCH ?= "${@oe.go.map_arch(d.getVar('TARGET_ARCH'))}"
|
||||
OCI_IMAGE_SUBARCH ?= "${@oci_map_subarch(d.getVar('TARGET_ARCH'), d.getVar('TUNE_FEATURES'), d)}"
|
||||
|
||||
OCI_IMAGE_ENTRYPOINT ?= "sh"
|
||||
|
|
Loading…
Reference in New Issue
Block a user