Skip to content
Snippets Groups Projects
Verified Commit f871864b authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Bootloader recipe update

parent d24375a0
No related branches found
No related tags found
No related merge requests found
...@@ -4,11 +4,18 @@ git = "https://gitlab.redox-os.org/redox-os/bootloader.git" ...@@ -4,11 +4,18 @@ git = "https://gitlab.redox-os.org/redox-os/bootloader.git"
[build] [build]
template = "custom" template = "custom"
script = """ script = """
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
ARCH="$(echo "${TARGET}" | cut -d - -f1)" ARCH="$(echo "${TARGET}" | cut -d - -f1)"
nasm \ if [ "${ARCH}" == "x86_64" ]
-f bin \ then
-o "${COOKBOOK_STAGE}/bootloader" \ export TARGET="x86-unknown-none"
-D "ARCH_${ARCH}" \ "${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}"
-i"${COOKBOOK_SOURCE}/${ARCH}/" \ cp "build/${TARGET}/bootloader.bin" "${COOKBOOK_STAGE}/bootloader"
"${COOKBOOK_SOURCE}/${ARCH}/disk.asm" fi
# TODO: fails due to environmental variables
# export TARGET="${ARCH}-unknown-uefi"
# cleanenv "${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}"
# cp "build/${TARGET}/bootloader.efi" "${COOKBOOK_STAGE}/bootloader.efi"
""" """
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment