diff options
author | Aditya Angadi <aditya.angadi@arm.com> | 2020-11-22 21:11:08 +0530 |
---|---|---|
committer | Thomas Abraham <thomas.abraham@arm.com> | 2020-11-27 22:44:37 +0530 |
commit | 8dca705156f5fd194e30bef94ea23fdd2d35e077 (patch) | |
tree | f2eb82f92d72940daad8fa04e15b753ce310c0bf | |
parent | 28145c5f50ba02c3ad08422bbdabaf09aeae22a6 (diff) |
configs/rdn2: add initial build configuration files
Add the initial build configuration files for RD-N2 platform. Support
for uefi and busybox boot is also enabled.
Change-Id: Iea2fa0ea0e0f2ccd6bcffd8775d6e0d59a1d76fb
Signed-off-by: Aditya Angadi <aditya.angadi@arm.com>
-rwxr-xr-x | build-test-uefi.sh | 1 | ||||
-rw-r--r-- | configs/rdn2/grub_config/busybox-dhcp.cfg | 11 | ||||
-rw-r--r-- | configs/rdn2/grub_config/busybox.cfg | 11 | ||||
-rwxr-xr-x | configs/rdn2/grub_config/rdn2.cfg | 1 | ||||
-rwxr-xr-x | configs/rdn2/rdn2 | 111 | ||||
-rwxr-xr-x | sgi/build-test-busybox.sh | 1 |
6 files changed, 136 insertions, 0 deletions
diff --git a/build-test-uefi.sh b/build-test-uefi.sh index cd6f911..b51db63 100755 --- a/build-test-uefi.sh +++ b/build-test-uefi.sh @@ -34,6 +34,7 @@ arm_platforms[rdn1edge]=1 arm_platforms[rde1edge]=1 arm_platforms[rddaniel]=1 arm_platforms[rddanielxlr]=1 +arm_platforms[rdn2]=1 __print_supported_arm_platforms() { diff --git a/configs/rdn2/grub_config/busybox-dhcp.cfg b/configs/rdn2/grub_config/busybox-dhcp.cfg new file mode 100644 index 0000000..20cbf92 --- /dev/null +++ b/configs/rdn2/grub_config/busybox-dhcp.cfg @@ -0,0 +1,11 @@ +set debug="loader,mm" +set term="vt100" +set default="0" +set timeout="1" + +search --set=root --fs-uuid 535add81-5875-4b4a-b44a-464aee5f5cbd + +menuentry 'RD-N2 BusyBox' { + linux /Image acpi=force console=ttyAMA0,115200 ip=dhcp root=PARTUUID=9c53a91b-e182-4ff1-aeac-6ee2c432ae94 rootwait verbose debug + initrd /ramdisk-busybox.img +} diff --git a/configs/rdn2/grub_config/busybox.cfg b/configs/rdn2/grub_config/busybox.cfg new file mode 100644 index 0000000..5f025aa --- /dev/null +++ b/configs/rdn2/grub_config/busybox.cfg @@ -0,0 +1,11 @@ +set debug="loader,mm" +set term="vt100" +set default="0" +set timeout="1" + +search --set=root --fs-uuid 535add81-5875-4b4a-b44a-464aee5f5cbd + +menuentry 'RD-N2 BusyBox' { + linux /Image acpi=force console=ttyAMA0,115200 root=PARTUUID=9c53a91b-e182-4ff1-aeac-6ee2c432ae94 rootwait verbose debug + initrd /ramdisk-busybox.img +} diff --git a/configs/rdn2/grub_config/rdn2.cfg b/configs/rdn2/grub_config/rdn2.cfg new file mode 100755 index 0000000..cd2e9f5 --- /dev/null +++ b/configs/rdn2/grub_config/rdn2.cfg @@ -0,0 +1 @@ +set prefix=($root)/grub/ diff --git a/configs/rdn2/rdn2 b/configs/rdn2/rdn2 new file mode 100755 index 0000000..726905e --- /dev/null +++ b/configs/rdn2/rdn2 @@ -0,0 +1,111 @@ +# Copyright (c) 2020, 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 + +export CROSS_COMPILE_64=${TOP_DIR}/tools/gcc/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu- +export CROSS_COMPILE=$CROSS_COMPILE_64 +export LINUX_COMPILER=$CROSS_COMPILE_64 + +#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/rdn2/grub_config/rdn2.cfg + +# ARM_TF Flags +ARM_TF_PLATS="rdn2" +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 + +# Filesystem options +VALID_FILESYSTEMS="busybox" + +#UEFI Options. +UEFI_BUILD_ENABLED=1 +if [ "$ARM_TF_ENABLE_SPM" == "1" ]; then + UEFI_PLATFORMS="rdn2 rdn2_mm_standalone" +else + UEFI_PLATFORMS="rdn2" +fi +declare -A UEFI_PLAT_rdn2 +UEFI_PLAT_rdn2[platname]="RdN2" +UEFI_PLAT_rdn2[output]=css-common +UEFI_PLAT_rdn2[defines]="-D EDK2_PLAT=rdn2 -D VALIDATION_LVL=$VALIDATION_LVL" +UEFI_PLAT_rdn2[defines]="${UEFI_PLAT_rdn2[defines]} -D EDK2_ENABLE_RAS=$ARM_TF_RAS_EXTENSION" +UEFI_PLAT_rdn2[binary]="BL33_AP_UEFI.fd" +UEFI_PLAT_rdn2[outbin]=uefi.bin + +#Standalone MM Build Options +UEFI_MM_BUILD_ENABLED=$ARM_TF_ENABLE_SPM +declare -A UEFI_PLAT_rdn2_mm_standalone +UEFI_PLAT_rdn2_mm_standalone[platname]="SgiMmStandalone" +UEFI_PLAT_rdn2_mm_standalone[output]=css-common +UEFI_PLAT_rdn2_mm_standalone[binary]="BL32_AP_MM.fd" +UEFI_PLAT_rdn2_mm_standalone[outbin]=mm_standalone.bin +UEFI_MM_PAYLOAD_BIN="mm_standalone.bin" + +#SCP options +SCP_BUILD_ENABLED=1 +SCP_PLATFORMS="rdn2" +SCP_BUILD_MODE=debug +SCP_COMPILER_PATH=$TOP_DIR/tools/gcc/gcc-arm-8.3-2019.03-x86_64-arm-eabi/bin + +# Misc options +COMPONENT_FLAVOUR=rdn2 + +TARGET_BINS_PLATS="rdn2" +declare -A TARGET_rdn2 +TARGET_rdn2[arm-tf]="rdn2" +TARGET_rdn2[output]="rdn2" +TARGET_rdn2[uefi]="css-common" +TARGET_rdn2[linux]="Image" +TARGET_rdn2[ramdisk]=0x88000000 +TARGET_rdn2[tbbr]=1 +TARGET_rdn2[scp]="rdn2" +SCP_BYPASS_ROM_SUPPORT[rdn2]=false +BUILD_SCRIPTS="build-scp.sh build-arm-tf.sh build-uefi.sh build-linux.sh build-busybox.sh build-grub.sh build-target-bins.sh " diff --git a/sgi/build-test-busybox.sh b/sgi/build-test-busybox.sh index 7dd3cce..1b8490c 100755 --- a/sgi/build-test-busybox.sh +++ b/sgi/build-test-busybox.sh @@ -39,6 +39,7 @@ platforms_rdinfra[rdn1edgex2]=1 platforms_rdinfra[rde1edge]=1 platforms_rdinfra[rddaniel]=1 platforms_rdinfra[rddanielxlr]=1 +platforms_rdinfra[rdn2]=1 __print_examples() { |