From 454df2b0c36161de67c3f143ab85fb16c33c23f2 Mon Sep 17 00:00:00 2001 From: Tad Fisher Date: Sun, 29 Nov 2020 23:01:58 -0800 Subject: [PATCH] Cross-compiling configuration for reMarkable 2 tablet --- lib/systems/examples.nix | 5 +++++ lib/systems/platforms.nix | 15 +++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/lib/systems/examples.nix b/lib/systems/examples.nix index 3bbe61ed33a5..2476c3541b10 100644 --- a/lib/systems/examples.nix +++ b/lib/systems/examples.nix @@ -39,6 +39,11 @@ rec { platform = platforms.zero-gravitas; }; + remarkable2 = { + config = "armv7l-unknown-linux-gnueabihf"; + platform = platforms.zero-sugar; + }; + 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 42d9809fd7d0..7097e147966e 100644 --- a/lib/systems/platforms.nix +++ b/lib/systems/platforms.nix @@ -217,6 +217,21 @@ rec { }; }; + zero-sugar = { + name = "zero-sugar"; + kernelBaseConfig = "zero-sugar_defconfig"; + kernelArch = "arm"; + kernelDTB = true; + kernelAutoModules = false; + kernelPreferBuiltin = true; + kernelTarget = "zImage"; + gcc = { + cpu = "cortex-a7"; + fpu = "neon-vfpv4"; + float-abi = "hard"; + }; + }; + scaleway-c1 = armv7l-hf-multiplatform // { gcc = { cpu = "cortex-a9";