osbuilder: Update api-server-rest

- Switch api-server-rest to use the Makefile rather than
directly calling cargo for multi-platform support and decoupling

Fixes: #7947
Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
stevenhorsman
2023-09-14 11:24:54 +01:00
parent ee15a389de
commit 4662a7a942

View File

@@ -709,8 +709,8 @@ EOF
popd
pushd guest-components/api-server-rest
cargo build --release --target-dir ./target
install -D -m0755 ./target/release/api-server-rest ${ROOTFS_DIR}/usr/local/bin/
make
make install DESTDIR="${ROOTFS_DIR}/usr/local/bin/"
popd
fi