From be7bd675d160bc7e08687ab430595f3648d17a23 Mon Sep 17 00:00:00 2001 From: Aditya Angadi Date: Mon, 6 Apr 2020 19:22:04 +0530 Subject: configs/rddanielxlr: add initial build configuration files Add the initial build configuration files for RD-Daniel Config-XLR platform. Change-Id: Icf8b7acbd710464b0b46752fdb05bb6899c5c746 Signed-off-by: Aditya Angadi --- configs/rddanielxlr/grub_config/busybox-dhcp.cfg | 11 +++ configs/rddanielxlr/grub_config/busybox.cfg | 11 +++ configs/rddanielxlr/grub_config/rddanielxlr.cfg | 1 + configs/rddanielxlr/rddanielxlr | 110 +++++++++++++++++++++++ 4 files changed, 133 insertions(+) create mode 100644 configs/rddanielxlr/grub_config/busybox-dhcp.cfg create mode 100644 configs/rddanielxlr/grub_config/busybox.cfg create mode 100755 configs/rddanielxlr/grub_config/rddanielxlr.cfg create mode 100755 configs/rddanielxlr/rddanielxlr diff --git a/configs/rddanielxlr/grub_config/busybox-dhcp.cfg b/configs/rddanielxlr/grub_config/busybox-dhcp.cfg new file mode 100644 index 0000000..594f45e --- /dev/null +++ b/configs/rddanielxlr/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-DanielXLR 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/rddanielxlr/grub_config/busybox.cfg b/configs/rddanielxlr/grub_config/busybox.cfg new file mode 100644 index 0000000..8716a4c --- /dev/null +++ b/configs/rddanielxlr/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-DanielXLR 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/rddanielxlr/grub_config/rddanielxlr.cfg b/configs/rddanielxlr/grub_config/rddanielxlr.cfg new file mode 100755 index 0000000..cd2e9f5 --- /dev/null +++ b/configs/rddanielxlr/grub_config/rddanielxlr.cfg @@ -0,0 +1 @@ +set prefix=($root)/grub/ diff --git a/configs/rddanielxlr/rddanielxlr b/configs/rddanielxlr/rddanielxlr new file mode 100755 index 0000000..b036c23 --- /dev/null +++ b/configs/rddanielxlr/rddanielxlr @@ -0,0 +1,110 @@ +# 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/rddanielxlr/grub_config/rddanielxlr.cfg + +# ARM_TF Flags +ARM_TF_PLATS="rddanielxlr" +ARM_TF_DEBUG_ENABLED=1 +ARM_TF_ENABLE_SPM=0 +ARM_TF_RAS_EXTENSION=0 + +#Number of Chips +ARM_TF_BUILD_FLAGS="CSS_SGI_CHIP_COUNT=4 W=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="rddanielcfgxlr rddaniel_mm_standalone" +else + UEFI_PLATFORMS="rddanielcfgxlr" +fi +declare -A UEFI_PLAT_rddanielcfgxlr +UEFI_PLAT_rddanielcfgxlr[platname]="RdDanielCfgXlr" +UEFI_PLAT_rddanielcfgxlr[output]=css-common +UEFI_PLAT_rddanielcfgxlr[defines]="-D EDK2_PLAT=rddanielcfgxlr -D EDK2_ENABLE_SMSC_91X -D VALIDATION_LVL=$VALIDATION_LVL" +UEFI_PLAT_rddanielcfgxlr[defines]="${UEFI_PLAT_rddanielxlr[defines]} -D EDK2_ENABLE_RAS=$ARM_TF_RAS_EXTENSION" +UEFI_PLAT_rddanielcfgxlr[binary]="BL33_AP_UEFI.fd" +UEFI_PLAT_rddanielcfgxlr[outbin]=uefi.bin + +#Standalone MM Build Options +UEFI_MM_BUILD_ENABLED=$ARM_TF_ENABLE_SPM +declare -A UEFI_PLAT_rddanielxlr_mm_standalone +UEFI_PLAT_rddanielxlr_mm_standalone[platname]="SgiMmStandalone" +UEFI_PLAT_rddanielxlr_mm_standalone[output]=css-common +UEFI_PLAT_rddanielxlr_mm_standalone[binary]="BL32_AP_MM.fd" +UEFI_PLAT_rddanielxlr_mm_standalone[outbin]=mm_standalone.bin +UEFI_MM_PAYLOAD_BIN="mm_standalone.bin" + +#SCP options +SCP_BUILD_ENABLED=1 +SCP_PLATFORMS="rddanielxlr" +SCP_BUILD_MODE=debug +SCP_COMPILER_PATH=$TOP_DIR/tools/gcc/gcc-arm-none-eabi-5_4-2016q3/bin + +# Misc options +COMPONENT_FLAVOUR=rddanielxlr + +TARGET_BINS_PLATS="rddanielxlr" +declare -A TARGET_rddanielxlr +TARGET_rddanielxlr[arm-tf]="rddanielxlr" +TARGET_rddanielxlr[output]="rddanielxlr" +TARGET_rddanielxlr[uefi]="css-common" +TARGET_rddanielxlr[linux]="Image" +TARGET_rddanielxlr[ramdisk]=0x88000000 +TARGET_rddanielxlr[tbbr]=1 +TARGET_rddanielxlr[scp]="rddanielxlr" +SCP_BYPASS_ROM_SUPPORT[rddanielxlr]=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 " -- cgit v1.2.3