From 77e00150baac819fc605e81a8828a1e76cf841b2 Mon Sep 17 00:00:00 2001 From: Ben Siraphob Date: Wed, 18 Nov 2020 09:48:08 +0700 Subject: [PATCH] Initial implementation of remarkable1 cross-compile --- lib/systems/examples.nix | 5 +++++ lib/systems/platforms.nix | 14 ++++++++++++++ 2 files changed, 19 insertions(+) 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";