Last active
August 24, 2019 22:52
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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