blob: c68f7630f3dbaea280308d2a231203e2917e7c2d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Platform specific constants
{ lib
, hostPlatform
}:
rec {
# meta.platforms
platforms = [
"i686-linux"
"x86_64-linux"
];
# system arch as used within the stage0 project
stage0Arch = {
"i686-linux" = "x86";
"x86_64-linux" = "AMD64";
}.${hostPlatform.system} or (throw "Unsupported system: ${hostPlatform.system}");
# lower-case form is widely used by m2libc
m2libcArch = lib.toLower stage0Arch;
# Passed to M2-Mesoplanet as --operating-system
m2libcOS = if hostPlatform.isLinux then "linux" else throw "Unsupported system: ${hostPlatform.system}";
baseAddress = {
"i686-linux" = "0x08048000";
"x86_64-linux" = "0x00600000";
}.${hostPlatform.system} or (throw "Unsupported system: ${hostPlatform.system}");
}
|