diff options
author | John Ericson <git@JohnEricson.me> | 2020-11-24 10:03:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-24 10:03:54 -0500 |
commit | d19b920c60f0b2330694f82211b638293d04ca50 (patch) | |
tree | 1bf2f9e77ec70706dd37953560c36b6e7799586d /lib | |
parent | 79086e5d55e037b994c839c2894a3667ae72547b (diff) | |
parent | 77e00150baac819fc605e81a8828a1e76cf841b2 (diff) |
Merge pull request #102503 from siraben/remarkable-init
Initial implementation of remarkable1 cross-compile
Diffstat (limited to 'lib')
-rw-r--r-- | lib/systems/examples.nix | 5 | ||||
-rw-r--r-- | lib/systems/platforms.nix | 14 |
2 files changed, 19 insertions, 0 deletions
diff --git a/lib/systems/examples.nix b/lib/systems/examples.nix index b824bea6c20c..3bbe61ed33a5 100644 --- a/lib/systems/examples.nix +++ b/lib/systems/examples.nix @@ -34,6 +34,11 @@ rec { platform = platforms.raspberrypi; }; + remarkable1 = { + config = "armv7l-unknown-linux-gnueabihf"; + platform = platforms.zero-gravitas; + }; + armv7l-hf-multiplatform = { config = "armv7l-unknown-linux-gnueabihf"; platform = platforms.armv7l-hf-multiplatform; diff --git a/lib/systems/platforms.nix b/lib/systems/platforms.nix index ab3cf1d54301..42d9809fd7d0 100644 --- a/lib/systems/platforms.nix +++ b/lib/systems/platforms.nix @@ -203,6 +203,20 @@ rec { # Legacy attribute, for compatibility with existing configs only. raspberrypi2 = armv7l-hf-multiplatform; + zero-gravitas = { + name = "zero-gravitas"; + kernelBaseConfig = "zero-gravitas_defconfig"; + kernelArch = "arm"; + # kernelTarget verified by checking /boot on reMarkable 1 device + kernelTarget = "zImage"; + kernelAutoModules = false; + kernelDTB = true; + gcc = { + fpu = "neon"; + cpu = "cortex-a9"; + }; + }; + scaleway-c1 = armv7l-hf-multiplatform // { gcc = { cpu = "cortex-a9"; |