Fixes for arm target
This commit is contained in:
parent
79aa024ba0
commit
fbdd944eb1
19
Makefile
19
Makefile
|
@ -160,10 +160,18 @@ pull:
|
|||
QEMU=SDL_VIDEO_X11_DGAMOUSE=0 qemu-system-$(ARCH)
|
||||
QEMUFLAGS=-serial mon:stdio -d cpu_reset -d guest_errors
|
||||
ifeq ($(ARCH),arm)
|
||||
LD=$(ARCH)-none-eabi-ld
|
||||
QEMUFLAGS+=-cpu arm1176 -machine integratorcp
|
||||
QEMUFLAGS+=-nographic
|
||||
|
||||
CC=$(ARCH)-none-eabi-gcc
|
||||
CXX=$(ARCH)-none-eabi-g++
|
||||
LD=$(ARCH)-none-eabi-ld
|
||||
|
||||
KRUSTCFLAGS+=-C linker=$(CC)
|
||||
KCARGOFLAGS+=-C linker=$(CC)
|
||||
RUSTCFLAGS+=-C linker=$(CC)
|
||||
CARGOFLAGS+=-C linker=$(CC)
|
||||
|
||||
%.list: %
|
||||
$(ARCH)-none-eabi-objdump -C -D $< > $@
|
||||
|
||||
|
@ -201,10 +209,6 @@ else
|
|||
FUMOUNT=sudo umount
|
||||
LD=$(ARCH)-elf-ld
|
||||
LDFLAGS=--gc-sections
|
||||
KRUSTCFLAGS+=-C linker=$(CC)
|
||||
KCARGOFLAGS+=-C linker=$(CC)
|
||||
RUSTCFLAGS+=-C linker=$(CC)
|
||||
CARGOFLAGS+=-C linker=$(CC)
|
||||
VB_AUDIO=coreaudio
|
||||
VBM="/Applications/VirtualBox.app/Contents/MacOS/VBoxManage"
|
||||
else
|
||||
|
@ -221,6 +225,11 @@ else
|
|||
VBM=VBoxManage
|
||||
endif
|
||||
|
||||
KRUSTCFLAGS+=-C linker=$(CC)
|
||||
KCARGOFLAGS+=-C linker=$(CC)
|
||||
RUSTCFLAGS+=-C linker=$(CC)
|
||||
CARGOFLAGS+=-C linker=$(CC)
|
||||
|
||||
%.list: %
|
||||
objdump -C -M intel -D $< > $@
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
"env": "",
|
||||
"vendor": "unknown",
|
||||
"target-family": "redox",
|
||||
"pre-link-args": ["-m32", "-nostdlib", "-static"],
|
||||
"pre-link-args": ["-nostdlib", "-static"],
|
||||
"features": "+soft-float",
|
||||
"dynamic-linking": false,
|
||||
"executables": false,
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
"env": "",
|
||||
"vendor": "unknown",
|
||||
"target-family": "redox",
|
||||
"pre-link-args": ["-m32", "-nostdlib", "-static"],
|
||||
"pre-link-args": ["-nostdlib", "-static"],
|
||||
"features": "+soft-float",
|
||||
"dynamic-linking": false,
|
||||
"executables": true,
|
||||
|
|
Loading…
Reference in a new issue