buildah: drop statically linked x86 entrypoint

commit e89fac6c9bf8d0b [Add `buildah mkcw`, add `--cw` to `buildah
commit` and `buildah build`] added a statically linked x86
entrypoint binary

This entrypoint is not currently used in the tested / supported
worflows.

To avoid packaging QA warnings on non-x86 architectures, we remove
the binary during the compilation phase.

If it does need to be rebuilt in the future, buildah's Makefiles
will have to be changed to not test the host for architecture
support, and use the OE defined target arch and cross compilers
instead.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
Bruce Ashfield 2023-11-09 06:22:33 +00:00
parent 5587dd1535
commit a215d8320e

View File

@ -45,11 +45,15 @@ do_compile:prepend() {
go_do_compile() {
export TMPDIR="${GOTMPDIR}"
export AS='${CC} -c'
if [ -n "${GO_INSTALL}" ]; then
${GO} install ${GOBUILDFLAGS} ./cmd/buildah
${GO} install ${GOBUILDFLAGS} ./tests/imgtype/imgtype.go
${GO} install ${GOBUILDFLAGS} ./tests/copy/copy.go
fi
# x86 statically linked executable that we don't need
rm -f ${S}/src/github.com/containers/buildah/internal/mkcw/embed/entrypoint
}
do_install:append() {