Skip to content

Commit 4b5f108

Browse files
switch to Jinx (#117)
Signed-off-by: Anhad Singh <[email protected]>
1 parent dd72c3d commit 4b5f108

File tree

266 files changed

+6910
-6933
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

266 files changed

+6910
-6933
lines changed

.gitattributes

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
* text=auto eol=lf
2-
*.real linguist-language=Assembly
2+
3+
jinx-config linguist-language=Shell
4+
host-recipes/* linguist-language=Shell
5+
recipes/* linguist-language=Shell
6+
source-recipes/* linguist-language=Shell

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
- name: Install dependencies
2525
run: |
2626
sudo apt-get update
27-
sudo apt-get install -y nasm
27+
sudo apt-get install -y nasm make
2828
python3 -m pip install requests xbstrap
2929
- name: Build Documentation
30-
run: ./aero.py --document
30+
run: make doc
3131
- name: Formatting Check
3232
run: |
3333
./aero.py --fmt

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,12 @@ base-files/server
2525

2626
# todo: remove these
2727
debug
28+
29+
# XXXXXXXXXXXXXXXX
30+
3rdparty/
31+
.jinx-cache
32+
sources/
33+
host-pkgs/
34+
host-builds/
35+
pkgs/
36+
builds/

Makefile

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
jinx:
2+
if [ ! -d "target/jinx" ]; then \
3+
git clone https://github.com/mintsuki/jinx target/jinx; \
4+
fi
5+
6+
# FIXME: autosync
7+
mkdir -p target/cargo-home
8+
cp build-support/rust/config.toml target/cargo-home/config.toml
9+
10+
.PHONY: distro
11+
distro: jinx
12+
./target/jinx/jinx build-all
13+
14+
SOURCE_DIR := src
15+
USERLAND_DIR := userland
16+
USERLAND_TARGET := builds/userland/target/init
17+
KERNEL_TARGET := src/target/x86_64-aero_os/release/aero_kernel
18+
19+
.PHONY: clean
20+
clean:
21+
rm -rf src/target
22+
23+
$(KERNEL_TARGET): $(shell find $(SOURCE_DIR) -type f -not -path '$(SOURCE_DIR)/target/*')
24+
cd src && cargo build --package aero_kernel --target .cargo/x86_64-aero_os.json --release
25+
@$(MAKE) iso
26+
27+
$(USERLAND_TARGET): $(shell find $(USERLAND_DIR) -type f -not -path '$(USERLAND_DIR)/target/*')
28+
./target/jinx/jinx rebuild userland
29+
@$(MAKE) distro-image
30+
31+
.PHONY: iso
32+
iso: $(KERNEL_TARGET)
33+
./build-support/mkiso.sh
34+
35+
.PHONY: distro-image
36+
distro-image: distro
37+
./build-support/mkimage.sh
38+
39+
.PHONY: qemu
40+
qemu: $(KERNEL_TARGET) $(USERLAND_TARGET)
41+
${QEMU_PATH}/qemu-system-x86_64 -cdrom target/aero.iso -m 8G -serial stdio --boot d -s -enable-kvm -cpu host -drive file=target/disk.img,if=none,id=NVME1,format=raw -device nvme,drive=NVME1,serial=nvme
42+
43+
.PHONY: doc
44+
doc:
45+
rm -rf target/doc
46+
cd src && cargo doc --package aero_kernel --target .cargo/x86_64-aero_os.json --release --target-dir=../target/doc/
47+
cp web/index.html target/doc/index.html

base-files/bin

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/usr/bin

base-files/etc/X11/xinit/xinitrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/sh
2+
jwm &
File renamed without changes.

base-files/lib

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/usr/lib

base-files/lib64

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/usr/lib

base-files/sbin

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/usr/bin

0 commit comments

Comments
 (0)