File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -486,6 +486,8 @@ valopt musl-root-i686 "" "i686-unknown-linux-musl install directory"
486
486
valopt musl-root-arm " " " arm-unknown-linux-musleabi install directory"
487
487
valopt musl-root-armhf " " " arm-unknown-linux-musleabihf install directory"
488
488
valopt musl-root-armv7 " " " armv7-unknown-linux-musleabihf install directory"
489
+ valopt musl-root-mips " " " mips-unknown-linux-musl install directory"
490
+ valopt musl-root-mipsel " " " mipsel-unknown-linux-musl install directory"
489
491
valopt extra-filename " " " Additional data that is hashed and passed to the -C extra-filename flag"
490
492
valopt qemu-armhf-rootfs " " " rootfs in qemu testing, you probably don't want to use this"
491
493
Original file line number Diff line number Diff line change @@ -511,6 +511,18 @@ impl Config {
511
511
. or_insert ( Target :: default ( ) ) ;
512
512
target. musl_root = Some ( parse_configure_path ( value) ) ;
513
513
}
514
+ "CFG_MUSL_ROOT_MIPS" if value. len ( ) > 0 => {
515
+ let target = "mips-unknown-linux-musl" . to_string ( ) ;
516
+ let target = self . target_config . entry ( target)
517
+ . or_insert ( Target :: default ( ) ) ;
518
+ target. musl_root = Some ( parse_configure_path ( value) ) ;
519
+ }
520
+ "CFG_MUSL_ROOT_MIPSEL" if value. len ( ) > 0 => {
521
+ let target = "mipsel-unknown-linux-musl" . to_string ( ) ;
522
+ let target = self . target_config . entry ( target)
523
+ . or_insert ( Target :: default ( ) ) ;
524
+ target. musl_root = Some ( parse_configure_path ( value) ) ;
525
+ }
514
526
"CFG_DEFAULT_AR" if value. len ( ) > 0 => {
515
527
self . rustc_default_ar = Some ( value. to_string ( ) ) ;
516
528
}
Original file line number Diff line number Diff line change @@ -78,5 +78,7 @@ ENV RUST_CONFIGURE_ARGS \
78
78
--target=$TARGETS \
79
79
--musl-root-arm=/usr/local/arm-linux-musleabi \
80
80
--musl-root-armhf=/usr/local/arm-linux-musleabihf \
81
- --musl-root-armv7=/usr/local/armv7-linux-musleabihf
81
+ --musl-root-armv7=/usr/local/armv7-linux-musleabihf \
82
+ --musl-root-mips=/usr/local/mips-linux-musl \
83
+ --musl-root-mipsel=/usr/local/mipsel-linux-musl
82
84
ENV SCRIPT python2.7 ../x.py dist --target $TARGETS
You can’t perform that action at this time.
0 commit comments