split_by_variant.sh 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. variant=PB926EJ-S
  9. if [ "$1" == "" ]
  10. then
  11. echo "$0:: No parameters - using versatilepb_config"
  12. echo "#define CONFIG_ARCH_VERSATILE_PB" > ./include/config.h
  13. variant=PB926EJ-S
  14. else
  15. case "$1" in
  16. versatilepb_config | \
  17. versatile_config)
  18. echo "#define CONFIG_ARCH_VERSATILE_PB" > ./include/config.h
  19. ;;
  20. versatileab_config)
  21. echo "#define CONFIG_ARCH_VERSATILE_AB" > ./include/config.h
  22. variant=AB926EJ-S
  23. ;;
  24. *)
  25. echo "$0:: Unrecognised config - using versatilepb_config"
  26. echo "#define CONFIG_ARCH_VERSATILE_PB" > ./include/config.h
  27. variant=PB926EJ-S
  28. ;;
  29. esac
  30. fi
  31. # ---------------------------------------------------------
  32. # Complete the configuration
  33. # ---------------------------------------------------------
  34. ./mkconfig -a versatile arm arm926ejs versatile NULL versatile
  35. echo "Variant:: $variant"