lol

lib.systems: add ubootArch

u-boot has its own rosetta stone, almost but not exactly the same as
the Linux kernel's. This commit adds it and the two cases where it
diverges.

+6
+6
lib/systems/default.nix
··· 178 178 else if final.isLoongArch64 then "loongarch" 179 179 else final.parsed.cpu.name; 180 180 181 + # https://source.denx.de/u-boot/u-boot/-/blob/9bfb567e5f1bfe7de8eb41f8c6d00f49d2b9a426/common/image.c#L81-106 182 + ubootArch = 183 + if final.isx86_32 then "x86" # not i386 184 + else if final.isMips64 then "mips64" # uboot *does* distinguish between mips32/mips64 185 + else final.linuxArch; # other cases appear to agree with linuxArch 186 + 181 187 qemuArch = 182 188 if final.isAarch32 then "arm" 183 189 else if final.isS390 && !final.isS390x then null