Enable 32 bit x86 support - postmarket PC to build postmarket OS
Created by: dee-gomma
Hi all,
For who like me is still running an old 32 bit PC and wants to play with postmarketOS, I've created a working fork here. It should work for any x86 architecture (i386 etc., I have i686). Unfortunately it is not yet ready for a pull request (some temporary stuff to be cleaned up, see below), and I have very few spare time lately, so if anybody is interested in completing it that would be great.
Basically, what has been done:
- Generated needed aports for x86 architecture through "aportgen": binutils, busybox-static, gcc, musl
- Modified pmb/parse/arch.py adding x86 architecture mappings (possibly to be reviewed)
- Overwritten aports/cross/quemu-user-static-repack/APKBUILD: original arch x86_64 replaced with x86 and references updated accordingly (quick and dirty temporary solution, we should keep 2 versions for both x86_64 and x86 instead)
I was able to build kernel and pmOS on my i686 PC for a Samsung Galaxy GrandPrime (new potentially supported device, will push it as soon as I clean it up decently) I could not compile Weston UI unfortunately, looks like a dependency (libunwind-dev) has no x86 support.
Thanks to @drebrez for the guidance and you all for building up this great project!