defs-source.sh 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 Arm Embedded GCC"}
  16. # Used as part of file/folder paths.
  17. APP_UC_NAME=${APP_UC_NAME:-"ARM Embedded GCC"}
  18. APP_LC_NAME=${APP_LC_NAME:-"arm-none-eabi-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. GCC_TARGET=${GCC_TARGET:-"arm-none-eabi"}
  26. CONTAINER_SCRIPT_NAME=${CONTAINER_SCRIPT_NAME:-"container-build.sh"}
  27. CONTAINER_LIBS_FUNCTIONS_SCRIPT_NAME=${CONTAINER_LIBS_FUNCTIONS_SCRIPT_NAME:-"container-libs-functions-source.sh"}
  28. CONTAINER_APPS_FUNCTIONS_SCRIPT_NAME=${CONTAINER_APPS_FUNCTIONS_SCRIPT_NAME:-"container-apps-functions-source.sh"}
  29. # -----------------------------------------------------------------------------