diff --git a/recipes/core/base-initfs/recipe.toml b/recipes/core/base-initfs/recipe.toml index 4baf748f..994ee136 100644 --- a/recipes/core/base-initfs/recipe.toml +++ b/recipes/core/base-initfs/recipe.toml @@ -102,13 +102,18 @@ RUSTFLAGS="$RUSTFLAGS -Ctarget-feature=+crt-static -Clink-arg=-nostartfiles -Cli --manifest-path "${COOKBOOK_SOURCE}/bootstrap/Cargo.toml" \ --release \ --target-dir "${COOKBOOK_BUILD}" -"${GNU_TARGET}-ld" \ - -o "${COOKBOOK_BUILD}/bootstrap" \ - -nostdlib \ - --gc-sections \ - -T "${COOKBOOK_SOURCE}/bootstrap/src/${ARCH}.ld" \ - -z max-page-size=4096 \ - "${COOKBOOK_BUILD}/${TARGET}/release/libbootstrap.a" + +if [ -f "${COOKBOOK_BUILD}/${TARGET}/release/libbootstrap.a" ]; then + "${GNU_TARGET}-ld" \ + -o "${COOKBOOK_BUILD}/bootstrap" \ + -nostdlib \ + --gc-sections \ + -T "${COOKBOOK_SOURCE}/bootstrap/src/${ARCH}.ld" \ + -z max-page-size=4096 \ + "${COOKBOOK_BUILD}/${TARGET}/release/libbootstrap.a" +else + cp -v "${COOKBOOK_BUILD}/${TARGET}/release/bootstrap" "${COOKBOOK_BUILD}/bootstrap" +fi env -u CARGO -u RUSTFLAGS cargo run --manifest-path "${COOKBOOK_SOURCE}/initfs/tools/Cargo.toml" --bin redox-initfs-ar -- "${COOKBOOK_BUILD}/initfs" "${COOKBOOK_BUILD}/bootstrap" -o "${COOKBOOK_BUILD}/initfs.img" diff --git a/recipes/core/base/recipe.toml b/recipes/core/base/recipe.toml index 30d8575c..cb175a02 100644 --- a/recipes/core/base/recipe.toml +++ b/recipes/core/base/recipe.toml @@ -38,6 +38,7 @@ BINS=( usbhidd usbhubd usbscsid + virtio-gpud virtio-netd xhcid inputd