build(rk3568): add build configs for rk3568
This is needed to support compiling new source file.
Also updated the default tf-a build configs for rk3568.
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I3ee2c1f64e65d76bdfcf262d28122c11cdf7c9c8
diff --git a/group/tf-l1-build-plat/rk3568-coreboot:nil b/group/tf-l1-build-plat/rk3568-coreboot:nil
new file mode 100644
index 0000000..5515958
--- /dev/null
+++ b/group/tf-l1-build-plat/rk3568-coreboot:nil
@@ -0,0 +1,6 @@
+#
+# Copyright (c) 2023 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
diff --git a/group/tf-l1-build-plat/rk3568-default:nil b/group/tf-l1-build-plat/rk3568-default:nil
new file mode 100644
index 0000000..6330aaf
--- /dev/null
+++ b/group/tf-l1-build-plat/rk3568-default:nil
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2023 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+post_tf_archive() {
+ echo "Removing bl31.bin"
+ rm -f "$archive/bl31.bin"
+ touch "$archive/bl31.bin.deleted"
+}
diff --git a/script/tf-coverity/tf-cov-make b/script/tf-coverity/tf-cov-make
index 795d2f9..fb19fe3 100755
--- a/script/tf-coverity/tf-cov-make
+++ b/script/tf-coverity/tf-cov-make
@@ -451,6 +451,8 @@
ENABLE_STACK_PROTECTOR=strong all
make PLAT=px30 $(common_flags) PLAT_RK_SECURE_DDR_MINILOADER=1 \
ENABLE_STACK_PROTECTOR=strong all
+make PLAT=rk3568 $(common_flags) COREBOOT=1 PLAT_RK_SECURE_DDR_MINILOADER=1 \
+ ENABLE_STACK_PROTECTOR=strong all
# Although we do several consecutive builds for the Tegra platform below, we
# don't need to clean between each one because the Tegra makefiles specify
diff --git a/tf_config/rk3568-coreboot b/tf_config/rk3568-coreboot
new file mode 100644
index 0000000..cdecd50
--- /dev/null
+++ b/tf_config/rk3568-coreboot
@@ -0,0 +1,3 @@
+COREBOOT=1
+CROSS_COMPILE=aarch64-none-elf-
+PLAT=rk3568
diff --git a/tf_config/rk3568-default b/tf_config/rk3568-default
new file mode 100644
index 0000000..595ff6b
--- /dev/null
+++ b/tf_config/rk3568-default
@@ -0,0 +1,3 @@
+CROSS_COMPILE=aarch64-none-elf-
+ENABLE_STACK_PROTECTOR=strong
+PLAT=rk3568