logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://hacktivis.me/git/bootstrap-initrd.git

bootstrap-xz.sh (604B)


  1. #!/bin/sh
  2. set -ex
  3. die() {
  4. echo "die: $@"
  5. exit 1
  6. }
  7. # pdpmake: (Makefile:480): recursive macro am__v_lt_
  8. # pdpmake: (Makefile:451): failed to build 'clean-recursive' exit 1
  9. # pdpmake: (Makefile:646): failed to build 'clean-recursive' exit 1
  10. # Works with GNU make and bmake
  11. command -v make || die "Run /bootstrap-make.sh"
  12. tar xof /xz-*.tar.gz
  13. cd xz-*/
  14. export LD="tcc"
  15. # --disable-symbol-versions: tcc 0.9.28rc doesn't supports .symver
  16. ./configure --prefix=/usr --disable-dependency-tracking --disable-symbol-versions --disable-shared
  17. make clean
  18. make
  19. make install INSTALL=install
  20. cd ..
  21. rm -fr xz-*/