[source]
git = "https://gitlab.redox-os.org/redox-os/bootloader.git"

[build]
template = "custom"
script = """
rsync -av --delete "${COOKBOOK_SOURCE}/" ./

ARCH="$(echo "${TARGET}" | cut -d - -f1)"
if [ "${ARCH}" == "x86_64" ]
then
    export TARGET="x86-unknown-none"
    "${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}"
    cp "build/${TARGET}/bootloader.bin" "${COOKBOOK_STAGE}/bootloader"
fi

export TARGET="${ARCH}-unknown-uefi"
"${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}"
cp "build/${TARGET}/bootloader.efi" "${COOKBOOK_STAGE}/bootloader.efi"
"""

[source]
git = "https://gitlab.redox-os.org/redox-os/bootloader.git"

[build]
template = "custom"
script = """
rsync -av --delete "${COOKBOOK_SOURCE}/" ./

ARCH="$(echo "${TARGET}" | cut -d - -f1)"
if [ "${ARCH}" == "x86_64" ]
then
    export TARGET="x86-unknown-none"
    "${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}"
    cp "build/${TARGET}/bootloader.bin" "${COOKBOOK_STAGE}/bootloader.bios"
fi

export TARGET="${ARCH}-unknown-uefi"
"${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}"
cp "build/${TARGET}/bootloader.efi" "${COOKBOOK_STAGE}/bootloader.efi"
"""

Add bios suffix to bios bootloader file
Add bios suffix to bios bootloader file
