diff options
author | Thomas Abraham <thomas.abraham@arm.com> | 2019-07-22 10:48:18 +0530 |
---|---|---|
committer | Thomas Abraham <thomas.abraham@arm.com> | 2019-10-22 13:40:34 +0530 |
commit | 34aeb2a406ac3300562885caa860d7340efba372 (patch) | |
tree | 77b2e367885400c7873541d52b1ea29c6f06526e | |
parent | 5fdf571c5435f0fba28de31a90c53967482ec5e3 (diff) |
configs/rddaniel: add initial build configuration files
Add the initial build configuration files for RD-Daniel platform. Support
for uefi and busybox boot is enabled.
Change-Id: Iedf084552e3ebfe9820b998d9423661d51cd9c35
Signed-off-by: Thomas Abraham <thomas.abraham@arm.com>
-rw-r--r-- | configs/rddaniel/grub_config/busybox-dhcp.cfg | 11 | ||||
-rw-r--r-- | configs/rddaniel/grub_config/busybox.cfg | 11 | ||||
-rwxr-xr-x | configs/rddaniel/grub_config/rddaniel.cfg | 1 | ||||
-rwxr-xr-x | configs/rddaniel/rddaniel | 107 |
4 files changed, 130 insertions, 0 deletions
diff --git a/configs/rddaniel/grub_config/busybox-dhcp.cfg b/configs/rddaniel/grub_config/busybox-dhcp.cfg new file mode 100644 index 0000000..b8a90d0 --- /dev/null +++ b/configs/rddaniel/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-Daniel 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/rddaniel/grub_config/busybox.cfg b/configs/rddaniel/grub_config/busybox.cfg new file mode 100644 index 0000000..d0a5b26 --- /dev/null +++ b/configs/rddaniel/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-Daniel 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/rddaniel/grub_config/rddaniel.cfg b/configs/rddaniel/grub_config/rddaniel.cfg new file mode 100755 index 0000000..cd2e9f5 --- /dev/null +++ b/configs/rddaniel/grub_config/rddaniel.cfg @@ -0,0 +1 @@ +set prefix=($root)/grub/ diff --git a/configs/rddaniel/rddaniel b/configs/rddaniel/rddaniel new file mode 100755 index 0000000..7cc4c01 --- /dev/null +++ b/configs/rddaniel/rddaniel @@ -0,0 +1,107 @@ +# 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/rddaniel/grub_config/rddaniel.cfg + +# ARM_TF Flags +ARM_TF_PLATS="rddaniel" +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="rddaniel rddaniel_mm_standalone" +else + UEFI_PLATFORMS="rddaniel" +fi +declare -A UEFI_PLAT_rddaniel +UEFI_PLAT_rddaniel[platname]="ArmSgi" +UEFI_PLAT_rddaniel[output]=css-common +UEFI_PLAT_rddaniel[defines]="-D EDK2_PLAT=rddaniel -D EDK2_ENABLE_SMSC_91X -D VALIDATION_LVL=$VALIDATION_LVL" +UEFI_PLAT_rddaniel[defines]="${UEFI_PLAT_rddaniel[defines]} -D EDK2_ENABLE_RAS=$ARM_TF_RAS_EXTENSION" +UEFI_PLAT_rddaniel[binary]="BL33_AP_UEFI.fd" +UEFI_PLAT_rddaniel[outbin]=uefi.bin + +#Standalone MM Build Options +UEFI_MM_BUILD_ENABLED=$ARM_TF_ENABLE_SPM +declare -A UEFI_PLAT_rddaniel_mm_standalone +UEFI_PLAT_rddaniel_mm_standalone[platname]="SgiMmStandalone" +UEFI_PLAT_rddaniel_mm_standalone[output]=css-common +UEFI_PLAT_rddaniel_mm_standalone[binary]="BL32_AP_MM.fd" +UEFI_PLAT_rddaniel_mm_standalone[outbin]=mm_standalone.bin +UEFI_MM_PAYLOAD_BIN="mm_standalone.bin" + +#SCP options +SCP_BUILD_ENABLED=1 +SCP_PLATFORMS="rddaniel" +SCP_BUILD_MODE=release +SCP_COMPILER_PATH=$TOP_DIR/tools/gcc/gcc-arm-none-eabi-5_4-2016q3/bin + +# Misc options +COMPONENT_FLAVOUR=rddaniel + +TARGET_BINS_PLATS="rddaniel" +declare -A TARGET_rddaniel +TARGET_rddaniel[arm-tf]="rddaniel" +TARGET_rddaniel[output]="rddaniel" +TARGET_rddaniel[uefi]="css-common" +TARGET_rddaniel[linux]="Image" +TARGET_rddaniel[ramdisk]=0x88000000 +TARGET_rddaniel[tbbr]=1 +TARGET_rddaniel[scp]="rddaniel" +SCP_BYPASS_ROM_SUPPORT[rddaniel]=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 " |