buildAth9k.sh 864 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/bash
  2. set -x
  3. set -e
  4. # build AR9271 firmware
  5. # This file is part of PrawnOS (https://www.prawnos.com)
  6. # Copyright (c) 2020 Hal Emmerich <hal@halemmerich.com>
  7. # PrawnOS is free software: you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License version 2
  9. # as published by the Free Software Foundation.
  10. # PrawnOS is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. # You should have received a copy of the GNU General Public License
  15. # along with PrawnOS. If not, see <https://www.gnu.org/licenses/>.
  16. if [ -z "$1" ]
  17. then
  18. echo "No build directory supplied"
  19. exit 1
  20. fi
  21. BUILD_DIR=$1
  22. cd $BUILD_DIR
  23. make toolchain
  24. make -C target_firmware