[yoshimi] Re: Compiling for arm....
- From: "Tom" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "madtom1999" for DMARC)
- To: yoshimi@xxxxxxxxxxxxx
- Date: Fri, 24 Feb 2017 21:45:58 +0000
On 24/02/17 19:05, Will Godfrey wrote:
The current master has what I *think* are the correct flags for ARM systems.
However I have no ARM hardware at all so can't test them :(
Can somebody with a Pi, Odroid (or anything else) try these and let me know if
they work?
pi room being painted at the moment so cant check but from a discussion
on the forum
|machine = $(shell sh -c 'uname -m 2>/dev/null || echo unknown')
# Raspberry Pi B+, Zero, etc
ifneq (,$(findstring armv6l,$(machine)))
CPU = -mcpu=arm1176jzf-s
FPU = -mfpu=vfp
endif
# Raspberry Pi 2 and 3
ifneq (,$(findstring armv7l,$(machine)))
model = $(shell sh -c 'cat /sys/firmware/devicetree/base/model
2>/dev/null || echo unknown')
ifneq (,$(findstring 3,$(model)))
CPU = -mcpu=cortex-a53
FPU = -mfpu=neon-fp-armv8
else
CPU = -mcpu=cortex-a7 -mthumb
FPU = -mfpu=neon-vfpv4
endif
FPU += -mneon-for-64bits
endif
# ARM A64
ifneq (,$(findstring aarch64,$(machine)))
CPU = -mcpu=cortex-a53
PLATFORM += -mabi=lp64 -mcmodel=tiny
endif|
|HTH|
|Tom|
Other related posts: