Skip to content

Commit da831ad

Browse files
committed
Add missing target for limine auto-build
1 parent 5850280 commit da831ad

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

docker-build-toolchain-image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ echo "Building toolchain within Docker container..."
88
docker run --name ghost-toolchain-setup -v "$(pwd):/ghost/source" ubuntu:latest /ghost/source/docker-prepare.sh >>ghost-build.log 2>&1
99

1010
echo "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

1313
echo "Removing temporary container..."
1414
docker rm ghost-toolchain-setup

target/build.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff 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
102120
target_verify_limine
103121

0 commit comments

Comments
 (0)