summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorAaron Lindsay <aerialx@users.noreply.github.com>2019-03-25 19:17:37 -0700
committerAaron Lindsay <aerialx@users.noreply.github.com>2019-03-25 20:33:58 -0700
commit1eca945e948f89cf8baf0bfc6f91c303985fefbf (patch)
tree9d47953d942fc4ede9a6585a08f6e392d2f79dd2 /lib
parenta62033452796e7e0565450cf7733b748b008c8d7 (diff)
downloadnixpkgs-1eca945e948f89cf8baf0bfc6f91c303985fefbf.tar
nixpkgs-1eca945e948f89cf8baf0bfc6f91c303985fefbf.tar.gz
nixpkgs-1eca945e948f89cf8baf0bfc6f91c303985fefbf.tar.bz2
nixpkgs-1eca945e948f89cf8baf0bfc6f91c303985fefbf.tar.lz
nixpkgs-1eca945e948f89cf8baf0bfc6f91c303985fefbf.tar.xz
nixpkgs-1eca945e948f89cf8baf0bfc6f91c303985fefbf.tar.zst
nixpkgs-1eca945e948f89cf8baf0bfc6f91c303985fefbf.zip
systems: support TI MSP430 microcontrollers
Diffstat (limited to 'lib')
-rw-r--r--lib/systems/examples.nix5
-rw-r--r--lib/systems/inspect.nix1
-rw-r--r--lib/systems/parse.nix1
3 files changed, 7 insertions, 0 deletions
diff --git a/lib/systems/examples.nix b/lib/systems/examples.nix
index ac1633a1a15..27a32181df8 100644
--- a/lib/systems/examples.nix
+++ b/lib/systems/examples.nix
@@ -102,6 +102,11 @@ rec {
   riscv64 = riscv "64";
   riscv32 = riscv "32";
 
+  msp430 = {
+    config = "msp430-elf";
+    libc = "newlib";
+  };
+
   avr = {
     config = "avr";
   };
diff --git a/lib/systems/inspect.nix b/lib/systems/inspect.nix
index 932f8fd1e53..f8d5ca84d7a 100644
--- a/lib/systems/inspect.nix
+++ b/lib/systems/inspect.nix
@@ -20,6 +20,7 @@ rec {
     isRiscV        = { cpu = { family = "riscv"; }; };
     isSparc        = { cpu = { family = "sparc"; }; };
     isWasm         = { cpu = { family = "wasm"; }; };
+    isMsp430       = { cpu = { family = "msp430"; }; };
     isAvr          = { cpu = { family = "avr"; }; };
     isAlpha        = { cpu = { family = "alpha"; }; };
 
diff --git a/lib/systems/parse.nix b/lib/systems/parse.nix
index fab50bc0ebd..8cc7d3ae271 100644
--- a/lib/systems/parse.nix
+++ b/lib/systems/parse.nix
@@ -109,6 +109,7 @@ rec {
     
     alpha    = { bits = 64; significantByte = littleEndian; family = "alpha"; };
 
+    msp430   = { bits = 16; significantByte = littleEndian; family = "msp430"; };
     avr      = { bits = 8; family = "avr"; };
   };