aboutsummaryrefslogtreecommitdiff
path: root/configs/rdn1edgex2/rdn1edgex2
blob: f2740176466817971cbe5fb67501725e783dc20a (plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# Copyright (c) 2019, ARM Limited and Contributors. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# Neither the name of ARM nor the names of its contributors may be used
# to endorse or promote products derived from this software without specific
# prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

source $DIR/configs/common/common.base

#Default linux configs per OS
LINUX_CONFIG_LIST=""
BUSYBOX_LINUX_CONFIG_LIST="defconfig"

#Grub Build options
GRUB_BUILD_ENABLED=1
GRUB_PATH=grub
GRUB_BUILD_SCRIPT="build-grub.sh "
GRUB_PLAT_CONFIG_FILE=${TOP_DIR}/build-scripts/configs/rdn1edge/grub_config/rdn1edge.cfg

# ARM_TF Flags
ARM_TF_PLATS="rdn1edge"
ARM_TF_DEBUG_ENABLED=1
ARM_TF_ENABLE_SPM=0
ARM_TF_RAS_EXTENSION=0

# Enable support for secure partition, partition manager and RAS.
# If SPM is enabled, ensure that UEFI_MM_BUILD_ENABLED is set to 1.
# If SPM is disabled, ensure that secure storage and RAS features are disabled
# as well in uefi (ref: uefi-tools/edk2-platforms.config file).
if [ "$ARM_TF_ENABLE_SPM" == "1" ]; then
	ARM_TF_BUILD_FLAGS="ENABLE_SPM=$ARM_TF_ENABLE_SPM"
	if [ "$ARM_TF_RAS_EXTENSION" == "1" ]; then
		ARM_TF_BUILD_FLAGS="$ARM_TF_BUILD_FLAGS RAS_EXTENSION=1"
		ARM_TF_BUILD_FLAGS="$ARM_TF_BUILD_FLAGS SDEI_SUPPORT=1"
		ARM_TF_BUILD_FLAGS="$ARM_TF_BUILD_FLAGS EL3_EXCEPTION_HANDLING=1"
		ARM_TF_BUILD_FLAGS="$ARM_TF_BUILD_FLAGS HANDLE_EA_EL3_FIRST=1"
	fi
fi

#TFTF Flags
TFTF_DEBUG_ENABLED=1
TFTF_PATH=validation/comp-test/trusted-firmware-tf
TFTF_PLATS="rdn1edge"
TFTF_REPORTS="uart:raw"

# Filesystem options
VALID_FILESYSTEMS="busybox"

#UEFI Options.
UEFI_BUILD_ENABLED=1
if [ "$ARM_TF_ENABLE_SPM" == "1" ]; then
	UEFI_PLATFORMS="rdn1edge rdn1edge_mm_standalone"
else
	UEFI_PLATFORMS="rdn1edge"
fi
declare -A UEFI_PLAT_rdn1edge
UEFI_PLAT_rdn1edge[platname]="ArmSgi"
UEFI_PLAT_rdn1edge[output]=css-common
UEFI_PLAT_rdn1edge[defines]="-D EDK2_PLAT=rdn1edge -D EDK2_ENABLE_SMSC_91X -D VALIDATION_LVL=$VALIDATION_LVL"
UEFI_PLAT_rdn1edge[defines]="${UEFI_PLAT_rdn1edge[defines]} -D EDK2_ENABLE_RAS=$ARM_TF_RAS_EXTENSION"
UEFI_PLAT_rdn1edge[binary]="BL33_AP_UEFI.fd"
UEFI_PLAT_rdn1edge[outbin]=uefi.bin

#Standalone MM Build Options
UEFI_MM_BUILD_ENABLED=$ARM_TF_ENABLE_SPM
declare -A UEFI_PLAT_rdn1edge_mm_standalone
UEFI_PLAT_rdn1edge_mm_standalone[platname]="SgiMmStandalone"
UEFI_PLAT_rdn1edge_mm_standalone[output]=css-common
UEFI_PLAT_rdn1edge_mm_standalone[binary]="BL32_AP_MM.fd"
UEFI_PLAT_rdn1edge_mm_standalone[outbin]=mm_standalone.bin
UEFI_MM_PAYLOAD_BIN="mm_standalone.bin"

#SCP options
SCP_BUILD_ENABLED=1
SCP_PLATFORMS="rdn1e1"
SCP_BUILD_MODE=release
SCP_COMPILER_PATH=$TOP_DIR/tools/gcc/gcc-arm-none-eabi-5_4-2016q3/bin

# Misc options
COMPONENT_FLAVOUR=rdn1edge

TARGET_BINS_PLATS="rdn1edge"
declare -A TARGET_rdn1edge
TARGET_rdn1edge[arm-tf]="rdn1edge"
TARGET_rdn1edge[output]="rdn1edge"
TARGET_rdn1edge[uefi]="css-common"
TARGET_rdn1edge[linux]="Image"
TARGET_rdn1edge[ramdisk]=0x88000000
TARGET_rdn1edge[tbbr]=1
TARGET_rdn1edge[scp]="rdn1e1"
TARGET_rdn1edge[tftf]="rdn1edge"
SCP_BYPASS_ROM_SUPPORT[rdn1edge]=false
BUILD_SCRIPTS="build-arm-tf.sh build-uefi.sh build-linux.sh build-busybox.sh build-grub.sh build-scp.sh build-target-bins.sh "