diff options
author | s1341 | 2021-05-06 07:15:34 +0300 |
---|---|---|
committer | John Ericson | 2021-05-11 15:39:08 +0000 |
commit | 1e1d29c2af646b21c04f7a27614317a19ee01bc5 (patch) | |
tree | c9aae224cdc64de857abe26dcba02ecf1456af1c /lib/systems/examples.nix | |
parent | 680b33fe37d4b6fd0bd8fe596ed438c88bfb3637 (diff) |
treewide: Support aarch64-android using minimal prebuilt components
This PR adds a new aarch64 android toolchain, which leverages the existing crossSystem infrastructure and LLVM builders to generate a working toolchain with minimal prebuilt components. The only thing that is prebuilt is the bionic libc. This is because it is practically impossible to compile bionic outside of an AOSP tree. I tried and failed, braver souls may prevail. For now I just grab the relevant binaries from https://android.googlesource.com/. I also grab the msm kernel sources from there to generate headers. I've included a minor patch to the existing kernel-headers derivation in order to expose an internal function. Everything else, from binutils up, is using stock code. Many thanks to @Ericson2314 for his help on this, and for building such a powerful system in the first place! One motivation for this is to be able to build a toolchain which will work on an aarch64 linux machine. To my knowledge, there is no existing toolchain for an aarch64-linux builder and an aarch64-android target.
Diffstat (limited to 'lib/systems/examples.nix')
-rw-r--r-- | lib/systems/examples.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/systems/examples.nix b/lib/systems/examples.nix index 9c0013c39778..d5f2f2068b45 100644 --- a/lib/systems/examples.nix +++ b/lib/systems/examples.nix @@ -70,6 +70,15 @@ rec { useAndroidPrebuilt = true; }; + aarch64-android = { + config = "aarch64-unknown-linux-android"; + sdkVer = "30"; + ndkVer = "21"; + libc = "bionic"; + useAndroidPrebuilt = false; + useLLVM = true; + }; + scaleway-c1 = armv7l-hf-multiplatform // platforms.scaleway-c1; pogoplug4 = { |