build.sh 876 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/bash
  2. set -x -e
  3. # Clean up
  4. rm -rf gluon
  5. git clone https://github.com/freifunk-gluon/gluon.git gluon -b "${GLUON_TAG}"
  6. # Add site configuration
  7. mkdir -p gluon/site
  8. cp /usr/src/site.mk gluon/site/
  9. cp /usr/src/site.conf gluon/site/
  10. cp -r /usr/src/i18n gluon/site/
  11. # Build
  12. cd gluon
  13. make update
  14. time make -j $(($(nproc)+1)) V=s BROKEN=1 GLUON_TARGET=ar71xx-generic
  15. time make -j $(($(nproc)+1)) V=s BROKEN=1 GLUON_TARGET=ar71xx-nand
  16. make dirclean
  17. time make -j $(($(nproc)+1)) V=s BROKEN=1 GLUON_TARGET=mpc85xx-generic
  18. make dirclean
  19. time make -j $(($(nproc)+1)) V=s BROKEN=1 GLUON_TARGET=x86-generic
  20. make dirclean
  21. time make -j $(($(nproc)+1)) V=s BROKEN=1 GLUON_TARGET=x86-64
  22. make dirclean
  23. set +x
  24. echo -e "\nBUILD FINISHED\n"
  25. echo "You can copy the resulting images from the container using:"
  26. echo -e "\ndocker cp ${HOSTNAME}:/usr/src/build/gluon/output <destination>\n"