mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
517 B

  1. #!/bin/bash
  2. if [ $ROCKCFG_ARM_OPT != generic ] ; then
  3. # Append options so the gcc -V option always comes first.
  4. # GCC 3.x uses CPU names without '-', eg. 926ejs instead of 926ej-s.
  5. var_append GCC3_WRAPPER_APPEND " " \
  6. "-mcpu=${ROCKCFG_ARM_OPT/-s/s}"
  7. var_append GCC4_WRAPPER_APPEND " " \
  8. "-mcpu=$ROCKCFG_ARM_OPT"
  9. fi
  10. if [ $ROCKCFG_ARM_OPT_ARCH != generic ] ; then
  11. var_append GCC3_WRAPPER_APPEND " " \
  12. "-march=$ROCKCFG_ARM_OPT_ARCH"
  13. var_append GCC4_WRAPPER_APPEND " " \
  14. "-march=$ROCKCFG_ARM_OPT_ARCH"
  15. fi