mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-16 08:46:48 +00:00
18 lines
452 B
Bash
Executable File
18 lines
452 B
Bash
Executable File
#! /bin/sh
|
|
set -eux
|
|
|
|
# Cargo passes the path to the built executable as the first argument.
|
|
KERNEL=$1
|
|
|
|
# Copy the needed files into an ISO image.
|
|
mkdir -p target/iso_root/boot
|
|
cp $KERNEL target/iso_root/boot/jinux
|
|
mkdir -p target/iso_root/boot/grub
|
|
cp build/grub/conf/grub.cfg target/iso_root/boot/grub
|
|
|
|
# Copy ramdisk
|
|
cp regression/build/ramdisk.cpio.gz target/iso_root/boot
|
|
|
|
# Make boot device .iso image
|
|
grub-mkrescue -o $KERNEL.iso target/iso_root
|