diff options
author | Yi Kong <yikong@google.com> | 2018-07-03 09:13:36 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-07-03 09:13:36 -0700 |
commit | 59fe4ffc782d1c8be18e385ffe11724d21c8e5f3 (patch) | |
tree | 48e28f6f57b9d6a2b38f564ca4f8a75c4cd665ae | |
parent | 98d9cb81587f91026645e2a244dfbc48313e1545 (diff) | |
parent | ed1ffc5e65091dfaf792fe150296aebb9b32c090 (diff) | |
download | arm-linux-androideabi-4.9-59fe4ffc782d1c8be18e385ffe11724d21c8e5f3.tar.gz |
Add wrapper over GNU as am: 57cc737572
am: ed1ffc5e65
Change-Id: If49325c308c3872fdc967e95bdbea03d480637fd
-rwxr-xr-x[l---------] | arm-linux-androideabi/bin/as | 15 | ||||
l--------- | arm-linux-androideabi/bin/as.real | 1 |
2 files changed, 15 insertions, 1 deletions
diff --git a/arm-linux-androideabi/bin/as b/arm-linux-androideabi/bin/as index 5378e97..3c8c5f1 120000..100755 --- a/arm-linux-androideabi/bin/as +++ b/arm-linux-androideabi/bin/as @@ -1 +1,14 @@ -../../bin/arm-linux-androideabi-as
\ No newline at end of file +#! /usr/bin/python + +from sys import argv +from subprocess import check_call + +if __name__ == '__main__': + for index, arg in enumerate(argv): + if arg == '-mcpu=cortex-a55': + argv[index] = '-mcpu=cortex-a53' + elif arg == '-mcpu=cortex-a75': + argv[index] = '-mcpu=cortex-a73' + + argv[0] = argv[0] + '.real' + check_call(argv) diff --git a/arm-linux-androideabi/bin/as.real b/arm-linux-androideabi/bin/as.real new file mode 120000 index 0000000..5378e97 --- /dev/null +++ b/arm-linux-androideabi/bin/as.real @@ -0,0 +1 @@ +../../bin/arm-linux-androideabi-as
\ No newline at end of file |