summaryrefslogtreecommitdiff
path: root/cactus/cactus.mk
diff options
context:
space:
mode:
Diffstat (limited to 'cactus/cactus.mk')
-rw-r--r--cactus/cactus.mk32
1 files changed, 32 insertions, 0 deletions
diff --git a/cactus/cactus.mk b/cactus/cactus.mk
new file mode 100644
index 0000000..5c37276
--- /dev/null
+++ b/cactus/cactus.mk
@@ -0,0 +1,32 @@
+#
+# Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+INCLUDES += -I cactus
+
+CACTUS_SOURCES := cactus/aarch64/cactus_entrypoint.S \
+ cactus/aarch64/cactus_arch_helpers.S \
+ cactus/cactus_helpers.c \
+ cactus/cactus_main.c \
+ cactus/cactus_tests_memory_attributes.c \
+ cactus/cactus_tests_misc.c \
+ cactus/cactus_tests_system_setup.c \
+ drivers/arm/pl011/${ARCH}/pl011_console.S \
+ framework/${ARCH}/asm_debug.S \
+ lib/${ARCH}/cache_helpers.S \
+ lib/${ARCH}/misc_helpers.S \
+ lib/stdlib/assert.c \
+ lib/stdlib/putchar.c \
+ lib/stdlib/printf.c \
+ lib/stdlib/rand.c \
+ lib/stdlib/strlen.c \
+ lib/stdlib/subr_prf.c \
+ plat/common/${ARCH}/platform_helpers.S
+
+CACTUS_LINKERFILE := cactus/cactus.ld.S
+
+# Position-independent code
+ASFLAGS_aarch64 += -fpie
+TFTF_CFLAGS_aarch64 += -fpie