[sq] improve makefile

This commit is contained in:
Berkus Decker 2019-01-20 02:28:08 +02:00
parent 9765f3e081
commit 6f9c5d9546
1 changed files with 7 additions and 1 deletions

View File

@ -46,7 +46,7 @@ all: kernel8.img
target/$(TARGET)/release/vesper: $(SOURCES)
cargo xbuild --target=$(TARGET_JSON) --release --features "noserial"
kernel8.img: target/$(TARGET)/release/vesper
kernel8.img: target/$(TARGET)/release/vesper $(SOURCES)
cp $< ./kernel8
$(OBJCOPY) $(OBJCOPY_PARAMS) $< kernel8.img
@ -59,6 +59,9 @@ qemu: all
sdcard: all
cp kernel8.img /Volumes/BOOT/
sdeject: sdcard
diskutil unmount /Volumes/BOOT/
clippy:
cargo xclippy --target=$(TARGET_JSON)
@ -71,3 +74,6 @@ objdump:
nm:
cargo nm --target $(TARGET_JSON) -- kernel8 | sort
hopper: all
hopperv4 -e kernel8.img -R --base-address 0x80000 --entrypoint 0x80000 --file-offset 0 --aarch64