diff options
author | Yi Kong <yikong@google.com> | 2018-06-17 02:15:27 -0700 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2018-06-19 00:44:19 +0000 |
commit | 40e65a488cdefd4c800fc7cb3472f3b3c3a97c42 (patch) | |
tree | 05d61bc5b0518566a6bd12ce9b1792dae75d7cf5 | |
parent | 75a43d595cbbd637294e0c54d98051fe03e06b83 (diff) | |
download | arm-linux-androideabi-4.9-android-9.0.0_r21.tar.gz |
Add wrapper over GNU asandroid-9.0.0_r47android-9.0.0_r46android-9.0.0_r45android-9.0.0_r44android-9.0.0_r43android-9.0.0_r42android-9.0.0_r41android-9.0.0_r40android-9.0.0_r39android-9.0.0_r38android-9.0.0_r37android-9.0.0_r36android-9.0.0_r35android-9.0.0_r34android-9.0.0_r33android-9.0.0_r32android-9.0.0_r31android-9.0.0_r30android-9.0.0_r22android-9.0.0_r21android-9.0.0_r20android-9.0.0_r19android-9.0.0_r16pie-qpr3-s1-releasepie-qpr3-releasepie-qpr3-b-releasepie-qpr2-releasepie-qpr1-s3-releasepie-qpr1-s2-releasepie-qpr1-s1-releasepie-qpr1-releasepie-dr1-devpie-b4s4-releasepie-b4s4-dev
Since our GNU toolchain is too old to recognise newer archictures like
cortex-a55, add a wrapper to rewrite these architectures to a similar
older architecture.
Test: m checkbuild
Bug: 110235326
Change-Id: I4cf4eb2ef4326dcafdfd8799510523333eba2fd4
Merged-In: I4cf4eb2ef4326dcafdfd8799510523333eba2fd4
(cherry picked from commit 309aefd83c4adb20482e2863899914f47a31fe39)
-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 |