0
0
mirror of https://github.com/yude/firmament synced 2024-12-22 04:00:10 +09:00

Update initialization script

This commit is contained in:
yude 2021-05-04 11:04:59 +09:00
parent bc954f09d5
commit e29db5a8ed
Signed by: yude
GPG Key ID: EB0FE5D925C4A968
2 changed files with 2 additions and 14 deletions

View File

@ -1,17 +1,4 @@
# See here for image contents: https://github.com/sarisia/mikanos-docker
FROM ghcr.io/sarisia/mikanos:latest
ENV DISPLAY=$DISPLAY
# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-here>
#RUN "source /home/vscode/edk2/edksetup.sh" >> /home/vscode/.bashrc
#RUN rm /home/vscode/edk2/Conf/target.txt
RUN ln -s /workspaces/firmament/.devcontainer/Conf/target.txt /home/vscode/edk2/Conf/target.txt
RUN ln -s /workspaces/firmament /home/vscode/edk2/firmament
RUN ln -s /home/vscode/edk2/Build/LoaderX64/DEBUG_CLANG38/X64/Loader.efi /home/vscode/BOOTX64.EFI
RUN ln -s /workspaces/firmament/.devcontainer/make_disk.sh /home/vscode/make_disk.sh
RUN ln -s /workspaces/firmament/.devcontainer/run_qemu.sh /home/vscode/run_qemu.sh
RUN chmod +x /home/vscode/run_qemu.sh
RUN chmod +x /home/vscode/make_disk.sh

View File

@ -1,7 +1,8 @@
# firmament: 🌄 Challenge of building operating system (reffering to MikanOS)
## Setup
1. Build container on Visual Studio Code.
2. Run: `cd ~/edk2; source edksetup.sh`
1. Run: `.devcontainer/init.sh` (on `/workspaces/firmament`)
1. Run: `cd ~/edk2; source edksetup.sh`
## Utils
### Build
* Run: `cd ~/edk2; build`