NJU-ProjectN/abstract-machine ics2023 initialized
NJU-ProjectN/abstract-machine 3348db971fd860be5cb28e21c18f9d0e65d0c96a Merge pull request #8 from Jasonyanyusong/master
This commit is contained in:
parent
2824efad33
commit
8e4feb4010
129 changed files with 9017 additions and 0 deletions
17
abstract-machine/scripts/platform/qemu.mk
Normal file
17
abstract-machine/scripts/platform/qemu.mk
Normal file
|
@ -0,0 +1,17 @@
|
|||
.PHONY: build-arg
|
||||
|
||||
LDFLAGS += -N -Ttext-segment=0x00100000
|
||||
QEMU_FLAGS += -serial mon:stdio \
|
||||
-machine accel=tcg \
|
||||
-smp "$(smp)" \
|
||||
-drive format=raw,file=$(IMAGE)
|
||||
|
||||
build-arg: image
|
||||
@( echo -n $(mainargs); ) | dd if=/dev/stdin of=$(IMAGE) bs=512 count=2 seek=1 conv=notrunc status=none
|
||||
|
||||
BOOT_HOME := $(AM_HOME)/am/src/x86/qemu/boot
|
||||
|
||||
image: $(IMAGE).elf
|
||||
@$(MAKE) -s -C $(BOOT_HOME)
|
||||
@echo + CREATE "->" $(IMAGE_REL)
|
||||
@( cat $(BOOT_HOME)/bootblock.o; head -c 1024 /dev/zero; cat $(IMAGE).elf ) > $(IMAGE)
|
Loading…
Add table
Add a link
Reference in a new issue