split_by_variant.sh 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/sh
  2. # ---------------------------------------------------------
  3. # Set the core module defines according to Core Module
  4. # ---------------------------------------------------------
  5. # ---------------------------------------------------------
  6. # Set up the Versatile type define
  7. # ---------------------------------------------------------
  8. mkdir -p ${obj}include
  9. variant=PB926EJ-S
  10. if [ "$1" = "" ]
  11. then
  12. echo "$0:: No parameters - using versatilepb_config"
  13. echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
  14. variant=PB926EJ-S
  15. else
  16. case "$1" in
  17. versatilepb_config | \
  18. versatile_config)
  19. echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
  20. ;;
  21. versatileab_config)
  22. echo "#define CONFIG_ARCH_VERSATILE_AB" > ${obj}include/config.h
  23. variant=AB926EJ-S
  24. ;;
  25. *)
  26. echo "$0:: Unrecognised config - using versatilepb_config"
  27. echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
  28. variant=PB926EJ-S
  29. ;;
  30. esac
  31. fi
  32. # ---------------------------------------------------------
  33. # Complete the configuration
  34. # ---------------------------------------------------------
  35. $MKCONFIG -a versatile arm arm926ejs versatile armltd versatile
  36. echo "Variant:: $variant"