File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ echo "Building toolchain within Docker container..."
88docker run --name ghost-toolchain-setup -v " $( pwd) :/ghost/source" ubuntu:latest /ghost/source/docker-prepare.sh >> ghost-build.log 2>&1
99
1010echo " Committing image..."
11- docker commit --change=' WORKDIR /ghost/source' --change=' CMD [ "/bin/bash"] ' ghost-toolchain-setup ghost-toolchain-64
11+ docker commit --change=' WORKDIR /ghost/source' --change=' CMD "/bin/bash"' ghost-toolchain-setup ghost-toolchain-64
1212
1313echo " Removing temporary container..."
1414docker rm ghost-toolchain-setup
Original file line number Diff line number Diff line change @@ -98,6 +98,24 @@ target_pack() {
9898}
9999
100100
101+ #
102+ # Checks if limine is present and otherwise builds it
103+ #
104+ target_verify_limine () {
105+ if [ ! -d " limine-$LIMINE_VERSION " ]; then
106+ echo " Download limine"
107+ curl -LO https://ghostkernel.org/repository/limine/limine-$LIMINE_VERSION .tar.gz
108+ tar -xzf limine-$LIMINE_VERSION .tar.gz
109+
110+ echo " Building limine"
111+ pushd limine-$LIMINE_VERSION > /dev/null || exit 1
112+ ./configure --enable-bios --enable-bios-cd --enable-uefi-cd --enable-uefi-x86-64
113+ make -j" $( nproc) "
114+ popd > /dev/null || exit 1
115+ fi
116+ }
117+
118+
101119# execute targets
102120target_verify_limine
103121
You can’t perform that action at this time.
0 commit comments