build_all_target.sh 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/bash
  2. # Copyright (C) 2019 RDA Technologies Limited and/or its affiliates("RDA").
  3. # All rights reserved.
  4. #
  5. # This software is supplied "AS IS" without any warranties.
  6. # RDA assumes no responsibility or liability for the use of the software,
  7. # conveys no license or title under any patent, copyright, or mask work
  8. # right to the product. RDA reserves the right to make changes in the
  9. # software without notification. RDA also make no representation or
  10. # warranty that such application will be suitable for the specified use
  11. # without further testing or modification.
  12. set -e
  13. build_target() {
  14. source tools/launch.sh $1
  15. cout
  16. cmake ../.. -G Ninja
  17. ninja
  18. croot
  19. }
  20. for TARGET in $(
  21. cd target
  22. /bin/ls
  23. ); do
  24. if test -f target/$TARGET/target.config; then
  25. case $TARGET in
  26. 8910DM_License)
  27. echo "$TARGET in known not work"
  28. ;;
  29. *)
  30. build_target $TARGET
  31. ;;
  32. esac
  33. fi
  34. done