@ -12,31 +12,29 @@ with import ./release-lib.nix { inherit supportedSystems scrubJobs; };
let
nativePlatforms = linux ;
/* B a s i c l i s t o f p a c k a g e s t o c r o s s - b u i l d */
basicCrossDrv = {
bison = nativePlatforms ;
busybox = nativePlatforms ;
coreutils = nativePlatforms ;
dropbear = nativePlatforms ;
common = {
buildPackages . binutils = nativePlatforms ;
gmp = nativePlatforms ;
} ;
/* B a s i c l i s t o f p a c k a g e s t o b e n a t i v e l y b u i l t ,
but need a crossSystem defined to get meaning * /
basicNativeDrv = {
buildPackages . binutils = nativePlatforms ;
gnuCommon = common // {
buildPackages . gccCrossStageFinal = nativePlatforms ;
buildPackages . gdbCros s = nativePlatforms ;
coreutils = nativePlatforms ;
} ;
basic = basicCrossDrv // basicNativeDrv ;
linuxCommon = gnuCommon // {
buildPackages . gdbCross = nativePlatforms ;
windows = {
buildPackages . binutils = nativePlatforms ;
buildPackages . gccCrossStageFinal = nativePlatforms ;
bison = nativePlatforms ;
busybox = nativePlatforms ;
dropbear = nativePlatforms ;
ed = nativePlatforms ;
ncurses = nativePlatforms ;
patch = nativePlatforms ;
} ;
coreutils = nativePlatforms ;
windowsCommon = gnuCommon // {
boehmgc = nativePlatforms ;
gmp = nativePlatforms ;
guile_1_8 = nativePlatforms ;
libffi = nativePlatforms ;
libtool = nativePlatforms ;
@ -44,6 +42,10 @@ let
windows . wxMSW = nativePlatforms ;
} ;
darwinCommon = {
buildPackages . binutils = darwin ;
} ;
in
{
@ -92,9 +94,7 @@ in
arch = " a r m 6 4 " ;
libc = " l i b S y s t e m " ;
} ;
in mapTestOnCross crossSystem {
buildPackages . binutils = darwin ;
} ;
in mapTestOnCross crossSystem darwinCommon ;
darwinToArm = let
crossSystem = {
@ -102,9 +102,7 @@ in
arch = " a r m v 7 - a " ;
libc = " l i b S y s t e m " ;
} ;
in mapTestOnCross crossSystem {
buildPackages . binutils = darwin ;
} ;
in mapTestOnCross crossSystem darwinCommon ;
/* T e s t s o m e c r o s s b u i l d s t o t h e S h e e v a p l u g */
crossSheevaplugLinux = let
@ -118,7 +116,7 @@ in
libc = " g l i b c " ;
openssl . system = " l i n u x - g e n e r i c 3 2 " ;
} ;
in mapTestOnCross crossSystem ( basic // {
in mapTestOnCross crossSystem ( linuxCommon // {
ubootSheevaplug = nativePlatforms ;
} ) ;
@ -131,7 +129,7 @@ in
libc = " m s v c r t " ; # This distinguishes the mingw (non posix) toolchain
platform = { } ;
} ;
in mapTestOnCross crossSystem windows ;
in mapTestOnCross crossSystem windowsCommon ;
/* T e s t s o m e c r o s s b u i l d s o n 6 4 b i t m i n g w - w 6 4 */
@ -143,7 +141,7 @@ in
libc = " m s v c r t " ; # This distinguishes the mingw (non posix) toolchain
platform = { } ;
} ;
in mapTestOnCross crossSystem windows ;
in mapTestOnCross crossSystem windowsCommon ;
/* L i n u x o n t h e f u l o o n g */
@ -162,11 +160,7 @@ in
abi = " n 3 2 " ;
} ;
} ;
in mapTestOnCross crossSystem {
coreutils = nativePlatforms ;
ed = nativePlatforms ;
patch = nativePlatforms ;
} ;
in mapTestOnCross crossSystem linuxCommon ;
/* L i n u x o n R a s p b e r r y p i */
@ -188,10 +182,7 @@ in
abi = " a a p c s - l i n u x " ;
} ;
} ;
in mapTestOnCross crossSystem {
coreutils = nativePlatforms ;
ed = nativePlatforms ;
patch = nativePlatforms ;
in mapTestOnCross crossSystem ( linuxCommon // {
vim = nativePlatforms ;
unzip = nativePlatforms ;
ddrescue = nativePlatforms ;
@ -199,7 +190,7 @@ in
patchelf = nativePlatforms ;
buildPackages . binutils = nativePlatforms ;
mpg123 = nativePlatforms ;
} ;
} ) ;
/* C r o s s - b u i l t b o o t s t r a p t o o l s f o r e v e r y s u p p o r t e d p l a t f o r m */