diff options
author | Ben Siraphob <bensiraphob@gmail.com> | 2020-11-18 09:48:08 +0700 |
---|---|---|
committer | Ben Siraphob <bensiraphob@gmail.com> | 2020-11-23 21:18:54 +0700 |
commit | 77e00150baac819fc605e81a8828a1e76cf841b2 (patch) | |
tree | 7f251ab2c83e0f36388f5da6405f8facc22895a4 /lib | |
parent | a9f8357e2e9a3a203243a2be924c374b700a77e0 (diff) |
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"; |