forked from LemonOSProject/LemonOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Dockerfile to work with xbstrap, update docs and README
- Loading branch information
Showing
11 changed files
with
75 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,12 +9,9 @@ Lemon OS includes its own [modular kernel](Kernel) with SMP and networking, [win | |
|
||
If you have any questions or concerns feel free to open a GitHub issue, join our [Discord server](https://discord.gg/NAYp6AUYWM) or email me at [email protected]. | ||
|
||
[Website](https://lemonos.org) \ | ||
[Discord Server](https://discord.gg/NAYp6AUYWM) | ||
|
||
## Building | ||
- [Building Lemon OS (Requires building toolchain)](Documentation/Build/Building-Lemon-OS.md) | ||
- [Building Lemon OS with Docker](Documentation/Build/Building-Lemon-OS-with-Docker.md) | ||
## [Website](https://lemonos.org) | ||
## [Discord Server](https://discord.gg/NAYp6AUYWM) | ||
## [Building Lemon OS](Documentation/Build/Building-Lemon-OS.md) | ||
|
||
## Prebuilt Image | ||
[Nightly Images](https://github.com/LemonOSProject/LemonOS/actions/workflows/ci.yml?query=is%3Asuccess+branch%3Amaster) - Go to latest job, `Lemon.img` located under Artifacts\ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,23 @@ | ||
FROM alpine:3.12 | ||
|
||
RUN apk add --no-cache nasm python3 ninja make cmake automake autoconf libtool make gcc g++ musl-dev git curl patch e2fsprogs dosfstools | ||
RUN apk add --no-cache nasm python3 python3-dev ninja make cmake automake autoconf libtool make gcc g++ musl-dev git curl patch zstd coreutils \ | ||
# automake needs GNU gzip | ||
gzip \ | ||
# libtool | ||
help2man xz \ | ||
# wayland-scanner | ||
expat-dev \ | ||
# used by binutils | ||
texinfo bison flex \ | ||
# limine, disk image | ||
mtools dosfstools e2fsprogs | ||
|
||
RUN cd /root && curl https://raw.githubusercontent.com/fido2020/Lemon-OS/master/Toolchain/buildtoolchain.sh -o buildtoolchain.sh && curl https://raw.githubusercontent.com/fido2020/Lemon-OS/master/Toolchain/lemon-binutils-2.32.patch -o lemon-binutils-2.32.patch && chmod 755 /root/buildtoolchain.sh | ||
RUN python3 -m ensurepip; python3 -m pip install meson xbstrap | ||
|
||
RUN /root/buildtoolchain.sh prepare | ||
RUN /root/buildtoolchain.sh binutils | ||
RUN /root/buildtoolchain.sh llvm CC=gcc CXX=g++ | ||
RUN /root/buildtoolchain.sh limine | ||
RUN if [ ! -f "/root/.local/share/lemon/bin/clang" ]; then ninja -C /root/llvm-project/build install; fi && ln -sf /root/.local/share/lemon/bin/clang /root/.local/share/lemon/bin/lemon-clang && ln -sf /root/.local/share/lemon/bin/clang++ /root/.local/share/lemon/bin/lemon-clang++ && ln -sf ../../include/c++ /root/.local/share/lemon/sysroot/system/include/c++ \ | ||
&& cd /root/.local/share/lemon/bin && rm clang-repl clang-scan-deps clang-check clang-refactor clang-rename clang-extdef-mapping diagtool \ | ||
&& /root/buildtoolchain.sh clean && python3 -m ensurepip --default-pip && python3 -m pip install meson && chmod -R a+rx /root | ||
|
||
ENV PATH=$PATH:/root/.local/share/lemon/bin:/root/.local/share/lemon/x86_64-lemon/bin/ | ||
WORKDIR /var | ||
RUN set -e; git clone https://github.com/LemonOSProject/LemonOS --depth 1; find LemonOS/ -maxdepth 1 -mindepth 1 -type d \ | ||
-not -name patches -not -name Ports -not -name Scripts -exec rm -rf {} + | ||
RUN cd LemonOS; mkdir Build; cd Build; xbstrap init .. | ||
RUN cd LemonOS/Build; xbstrap compile-tool --all; | ||
RUN mkdir -p /var/lemon-tools/Build; mv /var/LemonOS/Toolchain /var/lemon-tools; mv /var/LemonOS/Build/tool-builds /var/lemon-tools/Build/tool-builds; \ | ||
tar -cvf - lemon-tools | zstd - -o lemon-tools.tar.zst; rm -rf LemonOS lemon-tools; chmod 644 /var/lemon-tools.tar.zst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
container: | ||
runtime: docker | ||
image: lemontoolchain | ||
src_mount: /var/LemonOS | ||
build_mount: /var/LemonOS/Build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
|
||
docker pull computerfido/lemontoolchain:latest | ||
|
||
SPATH=$(dirname $(readlink -f "$0")) | ||
|
||
cd $SPATH/.. | ||
|
||
mkdir -p Build | ||
|
||
cp Scripts/docker-bootstrap-site.yml Build/bootstrap-site.yml | ||
echo " create_extra_args: ['--user', '$(id -u):$(id -g)']" >> Build/bootstrap-site.yml | ||
|
||
cd Build/ | ||
xbstrap init .. | ||
docker run -v "$SPATH/..:/var/LemonOS" -w $(pwd) --user $(id -u):$(id -g) -it computerfido/lemontoolchain:latest sh -c "zstd -d /var/lemon-tools.tar.zst --stdout | tar -oxvf - -C /var/LemonOS --strip-components=1; chown -hR $(id -u) /var/LemonOS" | ||
xbstrap install-tool --all |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule mlibc
updated
4 files
+1 −1 | README.md | |
+2 −0 | abis/linux/x86_64/socket.h | |
+1 −1 | subprojects/frigg.wrap | |
+35 −0 | sysdeps/managarm/generic/file.cpp |