build.sh 548 B

1234567891011121314151617181920212223
  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)) BROKEN=1 GLUON_TARGET=ar71xx-generic
  15. set +x
  16. echo -e "\nBUILD FINISHED\n"
  17. echo "You can copy the resulting images from the container using:"
  18. echo -e "\ndocker cp ${HOSTNAME}:/usr/src/build/gluon/images <destination>\n"