systems: support TI MSP430 microcontrollers
This commit is contained in:
parent
a620334527
commit
1eca945e94
|
@ -102,6 +102,11 @@ rec {
|
||||||
riscv64 = riscv "64";
|
riscv64 = riscv "64";
|
||||||
riscv32 = riscv "32";
|
riscv32 = riscv "32";
|
||||||
|
|
||||||
|
msp430 = {
|
||||||
|
config = "msp430-elf";
|
||||||
|
libc = "newlib";
|
||||||
|
};
|
||||||
|
|
||||||
avr = {
|
avr = {
|
||||||
config = "avr";
|
config = "avr";
|
||||||
};
|
};
|
||||||
|
|
|
@ -20,6 +20,7 @@ rec {
|
||||||
isRiscV = { cpu = { family = "riscv"; }; };
|
isRiscV = { cpu = { family = "riscv"; }; };
|
||||||
isSparc = { cpu = { family = "sparc"; }; };
|
isSparc = { cpu = { family = "sparc"; }; };
|
||||||
isWasm = { cpu = { family = "wasm"; }; };
|
isWasm = { cpu = { family = "wasm"; }; };
|
||||||
|
isMsp430 = { cpu = { family = "msp430"; }; };
|
||||||
isAvr = { cpu = { family = "avr"; }; };
|
isAvr = { cpu = { family = "avr"; }; };
|
||||||
isAlpha = { cpu = { family = "alpha"; }; };
|
isAlpha = { cpu = { family = "alpha"; }; };
|
||||||
|
|
||||||
|
|
|
@ -109,6 +109,7 @@ rec {
|
||||||
|
|
||||||
alpha = { bits = 64; significantByte = littleEndian; family = "alpha"; };
|
alpha = { bits = 64; significantByte = littleEndian; family = "alpha"; };
|
||||||
|
|
||||||
|
msp430 = { bits = 16; significantByte = littleEndian; family = "msp430"; };
|
||||||
avr = { bits = 8; family = "avr"; };
|
avr = { bits = 8; family = "avr"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -186,6 +186,7 @@ stdenv.mkDerivation {
|
||||||
}.${targetPlatform.parsed.cpu.name}
|
}.${targetPlatform.parsed.cpu.name}
|
||||||
else if targetPlatform.isPower then if targetPlatform.isBigEndian then "ppc" else "lppc"
|
else if targetPlatform.isPower then if targetPlatform.isBigEndian then "ppc" else "lppc"
|
||||||
else if targetPlatform.isSparc then "sparc"
|
else if targetPlatform.isSparc then "sparc"
|
||||||
|
else if targetPlatform.isMsp430 then "msp430"
|
||||||
else if targetPlatform.isAvr then "avr"
|
else if targetPlatform.isAvr then "avr"
|
||||||
else if targetPlatform.isAlpha then "alpha"
|
else if targetPlatform.isAlpha then "alpha"
|
||||||
else throw "unknown emulation for platform: " + targetPlatform.config;
|
else throw "unknown emulation for platform: " + targetPlatform.config;
|
||||||
|
|
|
@ -140,6 +140,7 @@ in
|
||||||
android64 = mapTestOnCross lib.systems.examples.aarch64-android-prebuilt (linuxCommon // {
|
android64 = mapTestOnCross lib.systems.examples.aarch64-android-prebuilt (linuxCommon // {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
msp430 = mapTestOnCross lib.systems.examples.msp430 embedded;
|
||||||
avr = mapTestOnCross lib.systems.examples.avr embedded;
|
avr = mapTestOnCross lib.systems.examples.avr embedded;
|
||||||
arm-embedded = mapTestOnCross lib.systems.examples.arm-embedded embedded;
|
arm-embedded = mapTestOnCross lib.systems.examples.arm-embedded embedded;
|
||||||
powerpc-embedded = mapTestOnCross lib.systems.examples.ppc-embedded embedded;
|
powerpc-embedded = mapTestOnCross lib.systems.examples.ppc-embedded embedded;
|
||||||
|
|
Loading…
Reference in a new issue