diff options
author | Icenowy Zheng <icenowy@aosc.io> | 2018-01-19 17:50:01 +0300 |
---|---|---|
committer | Andre Przywara <osp@andrep.de> | 2022-03-06 03:48:11 +0300 |
commit | ece518ff61953d5c4e3db6792c7710e03a313a4f (patch) | |
tree | a4567900b7ab71da9b2f6164720fe0632af54e73 | |
parent | 1fc2af5c4bc30df2a8cc4af523b319d3a5fee6a8 (diff) |
fel-remotefunc-compiler: change march parameter to armv5te
Allwinner also has ARM926EJ-S (ARMv5TE) based SoCs.
Consider them when set -march parameter. Also switch to -Os, since we
are more interested in compact code - performance is secondary when doing
mostly MMIO anyway.
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Andre Przywara <osp@andrep.de>
-rwxr-xr-x | fel-remotefunc-compiler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fel-remotefunc-compiler.rb b/fel-remotefunc-compiler.rb index 4824d51..2afbbfd 100755 --- a/fel-remotefunc-compiler.rb +++ b/fel-remotefunc-compiler.rb @@ -72,7 +72,7 @@ toolchain = toolchains.find { |toolchain| tool_exists("#{toolchain}gcc") } abort "Can't find any usable ARM crosscompiler.\n" unless toolchain # Compile the source file -system("#{toolchain}gcc -c -O3 -marm -march=armv7-a -mfloat-abi=soft -fstack-usage -fpic -o #{ARGV[0]}.o #{ARGV[0]}") +system("#{toolchain}gcc -c -Os -marm -march=armv5te -mfloat-abi=soft -fstack-usage -fpic -o #{ARGV[0]}.o #{ARGV[0]}") exit($?.to_i) if $?.to_i != 0 # Read the stack usage information |