Skip to content

Instantly share code, notes, and snippets.

@Mostly-BSD
Last active August 24, 2019 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mostly-BSD/4652bcbd3310a32f6913e153b2915e83 to your computer and use it in GitHub Desktop.
Save Mostly-BSD/4652bcbd3310a32f6913e153b2915e83 to your computer and use it in GitHub Desktop.
Shell Script to build minimum viable void linux packages for mipsel-musl
# Steps to build mipsel-musl packages from x86_64 (glibc)
# Bootstrap x86-64 glibc
./xbps-src binary-bootstrap
# Now cross compile base-chroot-musl for x86_64-musl
./xbps-src -a x86_64-musl pkg base-chroot-musl
# Prepare a new masterdir with the musl packages
./xbps-src -m masterdir-x86_64-musl binary-bootstrap x86_64-musl
# Now cross compile base-chroot-musl for mipsel-musl
./xbps-src -a mipsel-musl pkg base-chroot-musl
# Build required packages starting from base-system, base-devel
./xbps-sr -m masterdir-musl -a mipsel-musl pkg base-system 2>&1 | tee build-base-system.log
./xbps-src -m masterdir-musl -a mipsel-musl pkg base-devel 2>&1 | tee build-base-devel.log
# base-voidstrap was needed else mkplatformFS was failing.
./xbps-src -m masterdir-musl -a mipsel-musl base-voidstrap base-devel 2>&1 | tee build-base-voidstrap.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment