From 6f9c5d95464495d604edfd2a8ac43ea56fc49c84 Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Sun, 20 Jan 2019 02:28:08 +0200 Subject: [PATCH] [sq] improve makefile --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 40f1e69..aab7880 100644 --- a/Makefile +++ b/Makefile @@ -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 +