Skip to content

Commit

Permalink
rename os -> dainkrnl
Browse files Browse the repository at this point in the history
  • Loading branch information
kivikakk committed Mar 2, 2021
1 parent 7930fca commit 26aded7
Show file tree
Hide file tree
Showing 25 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ QEMU_CMD = qemu-system-aarch64 \
-device usb-mouse \
-usb \

tftp: dainboot/zig-cache/bin/BOOTAA64.rockpro64.efi os/zig-cache/bin/dainkrnl.rockpro64
tftp: dainboot/zig-cache/bin/BOOTAA64.rockpro64.efi dainkrnl/zig-cache/bin/dainkrnl.rockpro64
tools/update-tftp

qemu: target/disk/EFI/BOOT/BOOTAA64.efi target/disk/dainkrnl target/disk/dtb
Expand All @@ -36,11 +36,11 @@ dtb/qemu.dtb:
$(QEMU_CMD) -machine dumpdtb=$@
dtc $@ -o $@

OS_FILES=$(shell find os -name zig-cache -prune -o -type f) $(shell find common -type f)
os/zig-cache/bin/dainkrnl.%: $(OS_FILES)
cd os && zig build -Dboard=$*
OS_FILES=$(shell find dainkrnl -name zig-cache -prune -o -type f) $(shell find common -type f)
dainkrnl/zig-cache/bin/dainkrnl.%: $(OS_FILES)
cd dainkrnl && zig build -Dboard=$*

target/disk/dainkrnl: os/zig-cache/bin/dainkrnl.qemu
target/disk/dainkrnl: dainkrnl/zig-cache/bin/dainkrnl.qemu
mkdir -p $(@D)
cp $< $@

Expand All @@ -60,13 +60,13 @@ CI_QEMU_ACCEL=tcg

ci: dainboot/zig-cache/bin/BOOTAA64.qemu.efi \
dainboot/zig-cache/bin/BOOTAA64.rockpro64.efi \
os/zig-cache/bin/dainkrnl.qemu \
os/zig-cache/bin/dainkrnl.rockpro64 \
dainkrnl/zig-cache/bin/dainkrnl.qemu \
dainkrnl/zig-cache/bin/dainkrnl.rockpro64 \
target/disk/dainkrnl target/disk/dtb target/disk/EFI/BOOT/BOOTAA64.efi
env CI_QEMU_ACCEL="$(CI_QEMU_ACCEL)" tools/ci-expect

clean:
-rm -rf dtb/zig-cache os/zig-cache dainboot/zig-cache target
-rm -rf dtb/zig-cache dainkrnl/zig-cache dainboot/zig-cache target

%.dts:
dtc -I dtb -O dts $*
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion debug.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cd "$(dirname "$0")"
gdb os/zig-cache/bin/dainkrnl.qemu -ex 'set substitute-path /Users/kameliya/Code/daintree/os os' -ex 'set arch aarch64' -ex 'target remote :1234'
gdb dainkrnl/zig-cache/bin/dainkrnl.qemu -ex 'set substitute-path /Users/kameliya/Code/daintree/dainkrnl dainkrnl' -ex 'set arch aarch64' -ex 'target remote :1234'
2 changes: 1 addition & 1 deletion objdump.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cd "$(dirname "$0")"
objdump -dSl --prefix=. --prefix-strip=4 os/zig-cache/bin/dainkrnl|less
objdump -dSl --prefix=. --prefix-strip=4 dainkrnl/zig-cache/bin/dainkrnl|less
2 changes: 1 addition & 1 deletion tools/update-tftp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

rsync -av dainboot/zig-cache/bin/BOOTAA64.rockpro64.efi toaster.local:/volume1/docker/tftp/efi/boot/BOOTAA64.efi
rsync -av os/zig-cache/bin/dainkrnl.rockpro64 toaster.local:/volume1/docker/tftp/dainkrnl
rsync -av dainkrnl/zig-cache/bin/dainkrnl.rockpro64 toaster.local:/volume1/docker/tftp/dainkrnl
rsync -av dtb/rk3399-rockpro64.dtb toaster.local:/volume1/docker/tftp/dtb/rockchip/

0 comments on commit 26aded7

Please sign in to comment.