mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2026-01-02 05:25:19 -08:00
update readme
This commit is contained in:
25
README.md
25
README.md
@@ -35,6 +35,7 @@ You’ll need the following tools installed:
|
|||||||
- `qemu-system-i386`
|
- `qemu-system-i386`
|
||||||
|
|
||||||
Optional:
|
Optional:
|
||||||
|
|
||||||
- `gdb`
|
- `gdb`
|
||||||
- `vncviewer` (TigerVNC or similar)
|
- `vncviewer` (TigerVNC or similar)
|
||||||
|
|
||||||
@@ -42,13 +43,27 @@ Optional:
|
|||||||
|
|
||||||
## 🛠️ Building ClassicOS
|
## 🛠️ Building ClassicOS
|
||||||
|
|
||||||
Clone and build:
|
Clone repository:
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
git clone https://github.com/gbowne1/ClassicOS.git
|
git clone https://github.com/gbowne1/ClassicOS.git
|
||||||
cd ClassicOS
|
cd ClassicOS
|
||||||
make
|
|
||||||
```
|
```
|
||||||
|
|
||||||
build kernel
|
Run `configure` script to build a cross-compiler toolchain for `i386-elf`:
|
||||||
for %f in (*.c) do gcc -m32 -O0 -Wall -Wextra -Werror -pedantic -ffreestanding -nostdlib -fno-pic -fno-stack-protector -fno-pie -march=i386 -mtune=i386 -c "%f" -o "%f.o"
|
|
||||||
|
```sh
|
||||||
|
./configure
|
||||||
|
```
|
||||||
|
|
||||||
|
Source the `.build.env` file to add the cross-compiler toolchain to your PATH:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
source .build.env
|
||||||
|
```
|
||||||
|
|
||||||
|
Build the kernel:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
make
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user