diff options
Diffstat (limited to 'configs')
-rw-r--r-- | configs/rdn1edgex2/grub_config/busybox-dhcp.cfg | 11 | ||||
-rw-r--r-- | configs/rdn1edgex2/grub_config/busybox.cfg | 11 | ||||
-rwxr-xr-x | configs/rdn1edgex2/grub_config/rdn1edge.cfg | 1 | ||||
-rwxr-xr-x | configs/rdn1edgex2/rdn1edgex2 | 114 |
4 files changed, 137 insertions, 0 deletions
diff --git a/configs/rdn1edgex2/grub_config/busybox-dhcp.cfg b/configs/rdn1edgex2/grub_config/busybox-dhcp.cfg new file mode 100644 index 0000000..6540075 --- /dev/null +++ b/configs/rdn1edgex2/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-N1-Edge BusyBox' { + linux /Image acpi=force earlycon=pl011,0x7ff80000 ip=dhcp root=PARTUUID=9c53a91b-e182-4ff1-aeac-6ee2c432ae94 rootwait verbose debug + initrd /ramdisk-busybox.img +} diff --git a/configs/rdn1edgex2/grub_config/busybox.cfg b/configs/rdn1edgex2/grub_config/busybox.cfg new file mode 100644 index 0000000..f166539 --- /dev/null +++ b/configs/rdn1edgex2/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-N1-Edge BusyBox' { + linux /Image acpi=force earlycon=pl011,0x7ff80000 root=PARTUUID=9c53a91b-e182-4ff1-aeac-6ee2c432ae94 rootwait verbose debug + initrd /ramdisk-busybox.img +} diff --git a/configs/rdn1edgex2/grub_config/rdn1edge.cfg b/configs/rdn1edgex2/grub_config/rdn1edge.cfg new file mode 100755 index 0000000..cd2e9f5 --- /dev/null +++ b/configs/rdn1edgex2/grub_config/rdn1edge.cfg @@ -0,0 +1 @@ +set prefix=($root)/grub/ diff --git a/configs/rdn1edgex2/rdn1edgex2 b/configs/rdn1edgex2/rdn1edgex2 new file mode 100755 index 0000000..f274017 --- /dev/null +++ b/configs/rdn1edgex2/rdn1edgex2 @@ -0,0 +1,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 " |