forked from riscv-mcu/openocd-xpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefs-source.sh
47 lines (34 loc) · 1.79 KB
/
defs-source.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# -----------------------------------------------------------------------------
# This file is part of the xPack distribution.
# (https://xpack.github.io)
# Copyright (c) 2019 Liviu Ionescu.
#
# Permission to use, copy, modify, and/or distribute this software
# for any purpose is hereby granted, under the terms of the MIT license.
# -----------------------------------------------------------------------------
# Helper script used in the second edition of the build scripts.
# As the name implies, it should contain only definitions and should
# be included with 'source' by the host and container scripts.
# Warning: MUST NOT depend on $HOME or other environment variables.
# -----------------------------------------------------------------------------
# Used to display the application name.
APP_NAME=${APP_NAME:-"OpenOCD"}
# Used as part of file/folder paths.
APP_UC_NAME=${APP_UC_NAME:-"OpenOCD"}
APP_LC_NAME=${APP_LC_NAME:-"openocd"}
DISTRO_UC_NAME=${DISTRO_UC_NAME:-"Nuclei"}
DISTRO_LC_NAME=${DISTRO_LC_NAME:-"nuclei"}
DISTRO_TOP_FOLDER=${DISTRO_TOP_FOLDER:-"Nuclei"}
# Use the new xPack naming convention.
HAS_NAME_ARCH="y"
BRANDING=${BRANDING:-"${DISTRO_UC_NAME} OpenOCD"}
CONTAINER_SCRIPT_NAME=${CONTAINER_SCRIPT_NAME:-"container-build.sh"}
COMMON_LIBS_FUNCTIONS_SCRIPT_NAME=${COMMON_LIBS_FUNCTIONS_SCRIPT_NAME:-"common-libs-functions-source.sh"}
COMMON_APPS_FUNCTIONS_SCRIPT_NAME=${COMMON_APPS_FUNCTIONS_SCRIPT_NAME:-"common-apps-functions-source.sh"}
# -----------------------------------------------------------------------------
# If you want to build OpenOCD from the OpenOCD upstream/master repo rather
# than the xPack Project repo then uncomment the following defines and tweak
# as needed.
# OPENOCD_GIT_URL=git://git.code.sf.net/p/openocd/code
# OPENOCD_GIT_BRANCH=master
# OPENOCD_GIT_COMMIT=HEAD