diff options
author | Yi Kong <yikong@google.com> | 2018-06-15 15:33:23 -0700 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2018-06-15 23:14:52 +0000 |
commit | d7844fcca05d2e35e2d75fd814636158b3ee2b04 (patch) | |
tree | 981d4e00a9d0664547c44bfefa9989264e181541 | |
parent | 2e8808b841953c8b90f36fc0b3bc77ccce321352 (diff) | |
download | arm-linux-androideabi-4.9-d7844fcca05d2e35e2d75fd814636158b3ee2b04.tar.gz |
Add wrapper over GNU asndk-r18bndk-r18-beta2ndk-r18-beta1android-p-preview-5android-p-preview-4android-o-mr1-iot-release-1.0.2android-n-iot-release-smart-display-r2android-n-iot-release-smart-displayndk-release-r18
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
-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 |