defs-source.sh 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # -----------------------------------------------------------------------------
  2. # This file is part of the xPacks distribution.
  3. # (https://xpack.github.io)
  4. # Copyright (c) 2019 Liviu Ionescu.
  5. #
  6. # Permission to use, copy, modify, and/or distribute this software
  7. # for any purpose is hereby granted, under the terms of the MIT license.
  8. # -----------------------------------------------------------------------------
  9. # Helper script used in the second edition of the build scripts.
  10. # As the name implies, it should contain only definitions and should
  11. # be included with 'source' by the host and container scripts.
  12. # Warning: MUST NOT depend on $HOME or other environment variables.
  13. # -----------------------------------------------------------------------------
  14. # Used to display the application name.
  15. APP_NAME=${APP_NAME:-"GNU RISC-V Embedded GCC"}
  16. # Used as part of file/folder paths.
  17. APP_UC_NAME=${APP_UC_NAME:-"RISC-V Embedded GCC"}
  18. APP_LC_NAME=${APP_LC_NAME:-"riscv-none-embed-gcc"}
  19. DISTRO_UC_NAME=${DISTRO_UC_NAME:-"xPack"}
  20. DISTRO_LC_NAME=${DISTRO_LC_NAME:-"xpack"}
  21. DISTRO_TOP_FOLDER=${DISTRO_TOP_FOLDER:-"xPacks"}
  22. # Use the new xPack naming convention.
  23. HAS_NAME_ARCH="y"
  24. BRANDING=${BRANDING:-"${DISTRO_UC_NAME} ${APP_NAME}"}
  25. BUGURL=${BUGURL:-"https://github.com/sifive/freedom-tools/issues"}
  26. GCC_TARGET=${GCC_TARGET:-"riscv-none-embed"}
  27. GCC_ARCH=${GCC_ARCH:-"rv32imac"}
  28. GCC_ABI=${GCC_ABI:-"ilp32"}
  29. CONTAINER_SCRIPT_NAME=${CONTAINER_SCRIPT_NAME:-"container-build.sh"}
  30. CONTAINER_LIBS_FUNCTIONS_SCRIPT_NAME=${CONTAINER_LIBS_FUNCTIONS_SCRIPT_NAME:-"container-libs-functions-source.sh"}
  31. CONTAINER_APP_FUNCTIONS_SCRIPT_NAME=${CONTAINER_APP_FUNCTIONS_SCRIPT_NAME:-"container-apps-functions-source.sh"}
  32. # -----------------------------------------------------------------------------