Patrick Georgi | 0a3d4e0 | 2020-03-04 14:39:09 +0100 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 2 | |
| 3 | ################################################################################ |
| 4 | # Take care of subdirectories |
| 5 | ################################################################################ |
| 6 | |
Julius Werner | 7dcf9d5 | 2015-10-16 13:10:02 -0700 | [diff] [blame] | 7 | subdirs-y += armv8/ |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 8 | |
| 9 | ################################################################################ |
| 10 | # ARM specific options |
| 11 | ################################################################################ |
| 12 | |
Julius Werner | fffee87 | 2016-03-07 17:55:43 -0800 | [diff] [blame] | 13 | ifeq ($(CONFIG_ARCH_RAMSTAGE_ARM64),y) |
| 14 | check-ramstage-overlap-regions += postram_cbfs_cache stack ttb |
| 15 | endif |
| 16 | |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 17 | ################################################################################ |
| 18 | # bootblock |
| 19 | ################################################################################ |
| 20 | |
| 21 | ifeq ($(CONFIG_ARCH_BOOTBLOCK_ARM64),y) |
| 22 | |
Julius Werner | 99f4683 | 2018-05-16 14:14:04 -0700 | [diff] [blame] | 23 | decompressor-y += boot.c |
| 24 | bootblock-y += boot.c |
| 25 | decompressor-y += div0.c |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 26 | bootblock-y += div0.c |
Julius Werner | 99f4683 | 2018-05-16 14:14:04 -0700 | [diff] [blame] | 27 | decompressor-y += eabi_compat.c |
| 28 | bootblock-y += eabi_compat.c |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 29 | |
Julius Werner | 87feced | 2020-09-29 19:23:36 -0700 | [diff] [blame] | 30 | decompressor-$(CONFIG_ARM64_USE_ARCH_TIMER) += arch_timer.c |
T Michael Turney | 3775f1c | 2018-04-24 10:15:46 -0700 | [diff] [blame] | 31 | bootblock-$(CONFIG_ARM64_USE_ARCH_TIMER) += arch_timer.c |
Furquan Shaikh | 668316b | 2014-08-30 21:59:11 -0700 | [diff] [blame] | 32 | bootblock-y += transition.c transition_asm.S |
Benjamin Doron | f27b22a | 2023-06-14 18:43:59 -0400 | [diff] [blame^] | 33 | ifneq ($(CONFIG_ARM64_CURRENT_EL),3) |
| 34 | bootblock-y += smc.c smc_asm.S |
| 35 | endif |
Furquan Shaikh | 668316b | 2014-08-30 21:59:11 -0700 | [diff] [blame] | 36 | |
Julius Werner | 99f4683 | 2018-05-16 14:14:04 -0700 | [diff] [blame] | 37 | decompressor-y += memset.S |
Furquan Shaikh | 464f5ca | 2015-06-08 10:31:55 -0700 | [diff] [blame] | 38 | bootblock-y += memset.S |
Julius Werner | 99f4683 | 2018-05-16 14:14:04 -0700 | [diff] [blame] | 39 | decompressor-y += memcpy.S |
Furquan Shaikh | 464f5ca | 2015-06-08 10:31:55 -0700 | [diff] [blame] | 40 | bootblock-y += memcpy.S |
Julius Werner | 99f4683 | 2018-05-16 14:14:04 -0700 | [diff] [blame] | 41 | decompressor-y += memmove.S |
Furquan Shaikh | 464f5ca | 2015-06-08 10:31:55 -0700 | [diff] [blame] | 42 | bootblock-y += memmove.S |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 43 | |
| 44 | # Build the bootblock |
| 45 | |
Julius Werner | ec5e5e0 | 2014-08-20 15:29:56 -0700 | [diff] [blame] | 46 | $(objcbfs)/bootblock.debug: $$(bootblock-objs) $(obj)/config.h |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 47 | @printf " LINK $(subst $(obj)/,,$(@))\n" |
Furquan Shaikh | 46514c2 | 2020-06-11 11:59:07 -0700 | [diff] [blame] | 48 | $(LD_bootblock) $(LDFLAGS_bootblock) -o $@ -L$(obj) --whole-archive --start-group $(filter-out %.ld,$(bootblock-objs)) --end-group -T $(call src-to-obj,bootblock,$(CONFIG_MEMLAYOUT_LD_FILE)) |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 49 | |
Julius Werner | 99f4683 | 2018-05-16 14:14:04 -0700 | [diff] [blame] | 50 | $(objcbfs)/decompressor.debug: $$(decompressor-objs) $(obj)/config.h |
| 51 | @printf " LINK $(subst $(obj)/,,$(@))\n" |
Furquan Shaikh | 46514c2 | 2020-06-11 11:59:07 -0700 | [diff] [blame] | 52 | $(LD_bootblock) $(LDFLAGS_bootblock) -o $@ -L$(obj) --whole-archive --start-group $(filter-out %.ld,$(decompressor-objs)) --end-group -T $(call src-to-obj,decompressor,$(CONFIG_MEMLAYOUT_LD_FILE)) |
Julius Werner | 99f4683 | 2018-05-16 14:14:04 -0700 | [diff] [blame] | 53 | |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 54 | endif # CONFIG_ARCH_BOOTBLOCK_ARM64 |
| 55 | |
Furquan Shaikh | 6f33f0a | 2014-10-02 16:43:19 -0700 | [diff] [blame] | 56 | ############################################################################### |
| 57 | # verification stage |
| 58 | ############################################################################### |
| 59 | |
| 60 | ifeq ($(CONFIG_ARCH_VERSTAGE_ARM64),y) |
| 61 | |
Julius Werner | e91d170 | 2017-03-20 15:32:15 -0700 | [diff] [blame] | 62 | $(objcbfs)/verstage.debug: $$(verstage-objs) |
Furquan Shaikh | 6f33f0a | 2014-10-02 16:43:19 -0700 | [diff] [blame] | 63 | @printf " LINK $(subst $(obj)/,,$(@))\n" |
Furquan Shaikh | 46514c2 | 2020-06-11 11:59:07 -0700 | [diff] [blame] | 64 | $(LD_verstage) $(LDFLAGS_verstage) -o $@ -L$(obj) --whole-archive --start-group $(filter-out %.ld,$(verstage-objs)) --end-group -T $(call src-to-obj,verstage,$(CONFIG_MEMLAYOUT_LD_FILE)) |
Furquan Shaikh | 6f33f0a | 2014-10-02 16:43:19 -0700 | [diff] [blame] | 65 | |
Aaron Durbin | bc40933 | 2015-05-08 15:52:52 -0500 | [diff] [blame] | 66 | verstage-y += boot.c |
Furquan Shaikh | 6f33f0a | 2014-10-02 16:43:19 -0700 | [diff] [blame] | 67 | verstage-y += div0.c |
| 68 | verstage-y += eabi_compat.c |
T Michael Turney | 3775f1c | 2018-04-24 10:15:46 -0700 | [diff] [blame] | 69 | verstage-$(CONFIG_ARM64_USE_ARCH_TIMER) += arch_timer.c |
Julius Werner | 2f891a0 | 2017-03-20 15:38:02 -0700 | [diff] [blame] | 70 | verstage-y += memset.S |
| 71 | verstage-y += memcpy.S |
| 72 | verstage-y += memmove.S |
Furquan Shaikh | 6f33f0a | 2014-10-02 16:43:19 -0700 | [diff] [blame] | 73 | |
Itamar | ab0df6d | 2015-07-31 17:10:46 +0800 | [diff] [blame] | 74 | verstage-y += transition.c transition_asm.S |
Benjamin Doron | f27b22a | 2023-06-14 18:43:59 -0400 | [diff] [blame^] | 75 | ifneq ($(CONFIG_ARM64_CURRENT_EL),3) |
| 76 | verstage-y += smc.c smc_asm.S |
| 77 | endif |
Itamar | ab0df6d | 2015-07-31 17:10:46 +0800 | [diff] [blame] | 78 | |
Furquan Shaikh | 6f33f0a | 2014-10-02 16:43:19 -0700 | [diff] [blame] | 79 | endif # CONFIG_ARCH_VERSTAGE_ARM64 |
| 80 | |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 81 | ################################################################################ |
| 82 | # romstage |
| 83 | ################################################################################ |
| 84 | |
| 85 | ifeq ($(CONFIG_ARCH_ROMSTAGE_ARM64),y) |
| 86 | |
Aaron Durbin | b3847e6 | 2015-03-20 15:55:08 -0500 | [diff] [blame] | 87 | romstage-y += boot.c |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 88 | romstage-y += div0.c |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 89 | romstage-y += eabi_compat.c |
T Michael Turney | 3775f1c | 2018-04-24 10:15:46 -0700 | [diff] [blame] | 90 | romstage-$(CONFIG_ARM64_USE_ARCH_TIMER) += arch_timer.c |
Furquan Shaikh | 464f5ca | 2015-06-08 10:31:55 -0700 | [diff] [blame] | 91 | romstage-y += memset.S |
| 92 | romstage-y += memcpy.S |
| 93 | romstage-y += memmove.S |
Asami Doi | 06993ee | 2019-08-07 13:40:53 +0900 | [diff] [blame] | 94 | romstage-y += ramdetect.c |
Julius Werner | 5d6593a | 2018-08-10 16:13:26 -0700 | [diff] [blame] | 95 | romstage-y += romstage.c |
Furquan Shaikh | 668316b | 2014-08-30 21:59:11 -0700 | [diff] [blame] | 96 | romstage-y += transition.c transition_asm.S |
Benjamin Doron | f27b22a | 2023-06-14 18:43:59 -0400 | [diff] [blame^] | 97 | ifneq ($(CONFIG_ARM64_CURRENT_EL),3) |
| 98 | romstage-y += smc.c smc_asm.S |
| 99 | endif |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 100 | |
Furquan Shaikh | 464f5ca | 2015-06-08 10:31:55 -0700 | [diff] [blame] | 101 | rmodules_arm64-y += memset.S |
| 102 | rmodules_arm64-y += memcpy.S |
| 103 | rmodules_arm64-y += memmove.S |
Furquan Shaikh | a742ef1 | 2014-07-23 11:41:59 -0700 | [diff] [blame] | 104 | rmodules_arm64-y += eabi_compat.c |
| 105 | |
Julius Werner | ec5e5e0 | 2014-08-20 15:29:56 -0700 | [diff] [blame] | 106 | $(objcbfs)/romstage.debug: $$(romstage-objs) |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 107 | @printf " LINK $(subst $(obj)/,,$(@))\n" |
Furquan Shaikh | 46514c2 | 2020-06-11 11:59:07 -0700 | [diff] [blame] | 108 | $(LD_romstage) $(LDFLAGS_romstage) -o $@ -L$(obj) --whole-archive --start-group $(filter-out %.ld,$(romstage-objs)) --end-group -T $(call src-to-obj,romstage,$(CONFIG_MEMLAYOUT_LD_FILE)) |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 109 | |
| 110 | endif # CONFIG_ARCH_ROMSTAGE_ARM64 |
| 111 | |
| 112 | ################################################################################ |
| 113 | # ramstage |
| 114 | ################################################################################ |
| 115 | |
| 116 | ifeq ($(CONFIG_ARCH_RAMSTAGE_ARM64),y) |
| 117 | |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 118 | ramstage-y += div0.c |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 119 | ramstage-y += eabi_compat.c |
| 120 | ramstage-y += boot.c |
Benjamin Doron | f27b22a | 2023-06-14 18:43:59 -0400 | [diff] [blame^] | 121 | ramstage-$(CONFIG_GENERATE_SMBIOS_TABLES) += smbios.c |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 122 | ramstage-y += tables.c |
Asami Doi | 06993ee | 2019-08-07 13:40:53 +0900 | [diff] [blame] | 123 | ramstage-y += ramdetect.c |
T Michael Turney | 3775f1c | 2018-04-24 10:15:46 -0700 | [diff] [blame] | 124 | ramstage-$(CONFIG_ARM64_USE_ARCH_TIMER) += arch_timer.c |
Furquan Shaikh | 464f5ca | 2015-06-08 10:31:55 -0700 | [diff] [blame] | 125 | ramstage-y += memset.S |
| 126 | ramstage-y += memcpy.S |
| 127 | ramstage-y += memmove.S |
Julius Werner | 0a8da74 | 2019-08-02 12:45:24 -0700 | [diff] [blame] | 128 | ramstage-$(CONFIG_ARM64_USE_ARM_TRUSTED_FIRMWARE) += bl31.c |
Furquan Shaikh | 668316b | 2014-08-30 21:59:11 -0700 | [diff] [blame] | 129 | ramstage-y += transition.c transition_asm.S |
Benjamin Doron | f27b22a | 2023-06-14 18:43:59 -0400 | [diff] [blame^] | 130 | ifneq ($(CONFIG_ARM64_CURRENT_EL),3) |
| 131 | ramstage-y += smc.c smc_asm.S |
| 132 | endif |
Patrick Rudolph | a892cde | 2018-04-19 14:39:07 +0200 | [diff] [blame] | 133 | ramstage-$(CONFIG_PAYLOAD_FIT_SUPPORT) += fit_payload.c |
Maximilian Brune | 44bbf6c | 2023-09-18 17:41:15 +0200 | [diff] [blame] | 134 | ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpi.c |
Maximilian Brune | b3e336c | 2023-09-16 19:49:39 +0200 | [diff] [blame] | 135 | ramstage-y += dma.c |
Furquan Shaikh | 668316b | 2014-08-30 21:59:11 -0700 | [diff] [blame] | 136 | |
Furquan Shaikh | 464f5ca | 2015-06-08 10:31:55 -0700 | [diff] [blame] | 137 | rmodules_arm64-y += memset.S |
| 138 | rmodules_arm64-y += memcpy.S |
| 139 | rmodules_arm64-y += memmove.S |
Furquan Shaikh | fbff908 | 2014-07-22 15:59:16 -0700 | [diff] [blame] | 140 | rmodules_arm64-y += eabi_compat.c |
T Michael Turney | 3775f1c | 2018-04-24 10:15:46 -0700 | [diff] [blame] | 141 | rmodules_arm64-$(CONFIG_ARM64_USE_ARCH_TIMER) += arch_timer.c |
Furquan Shaikh | abde3b5 | 2014-08-26 15:39:51 -0700 | [diff] [blame] | 142 | |
Marc Jones | 17b9c19 | 2015-01-16 13:45:23 -0700 | [diff] [blame] | 143 | ramstage-srcs += $(wildcard src/mainboard/$(MAINBOARDDIR)/mainboard.c) |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 144 | |
| 145 | # Build the ramstage |
| 146 | |
Julius Werner | ec5e5e0 | 2014-08-20 15:29:56 -0700 | [diff] [blame] | 147 | $(objcbfs)/ramstage.debug: $$(ramstage-objs) |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 148 | @printf " CC $(subst $(obj)/,,$(@))\n" |
Furquan Shaikh | 46514c2 | 2020-06-11 11:59:07 -0700 | [diff] [blame] | 149 | $(LD_ramstage) $(LDFLAGS_ramstage) -o $@ -L$(obj) --whole-archive --start-group $(filter-out %.ld,$(ramstage-objs)) --end-group -T $(call src-to-obj,ramstage,$(CONFIG_MEMLAYOUT_LD_FILE)) |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 150 | |
Julius Werner | 745a75f | 2015-05-11 16:45:56 -0700 | [diff] [blame] | 151 | # Build ARM Trusted Firmware (BL31) |
| 152 | |
| 153 | ifeq ($(CONFIG_ARM64_USE_ARM_TRUSTED_FIRMWARE),y) |
| 154 | |
Patrick Rudolph | d308ed3 | 2018-07-20 09:08:42 +0200 | [diff] [blame] | 155 | ifeq ($(CONFIG_ARM64_BL31_EXTERNAL_FILE),"") |
| 156 | |
Julius Werner | 745a75f | 2015-05-11 16:45:56 -0700 | [diff] [blame] | 157 | BL31_SOURCE := $(top)/3rdparty/arm-trusted-firmware |
Julius Werner | 50e7670 | 2016-10-29 00:10:53 -0700 | [diff] [blame] | 158 | BL31_BUILD := $(abspath $(obj)/3rdparty/arm-trusted-firmware) |
| 159 | BL31_TARGET := $(BL31_BUILD)/bl31/bl31.elf |
Julius Werner | 745a75f | 2015-05-11 16:45:56 -0700 | [diff] [blame] | 160 | |
Julius Werner | 745a75f | 2015-05-11 16:45:56 -0700 | [diff] [blame] | 161 | ifeq ($(V),1) |
| 162 | BL31_MAKEARGS += V=1 |
| 163 | endif |
| 164 | |
Julius Werner | 91ebbfd | 2017-07-25 13:55:43 -0700 | [diff] [blame] | 165 | # Build ARM TF in debug mode (with assertions) if coreboot has hard assertions |
| 166 | ifeq ($(CONFIG_FATAL_ASSERTS),y) |
Julius Werner | 745a75f | 2015-05-11 16:45:56 -0700 | [diff] [blame] | 167 | BL31_MAKEARGS += DEBUG=1 |
Yu-Ping Wu | 6d169aa | 2023-07-03 16:06:36 +0800 | [diff] [blame] | 168 | endif # CONFIG_FATAL_ASSERTS |
Julius Werner | 745a75f | 2015-05-11 16:45:56 -0700 | [diff] [blame] | 169 | |
Julius Werner | 91ebbfd | 2017-07-25 13:55:43 -0700 | [diff] [blame] | 170 | # ARM TF's VERBOSE (50) is *very* spammy, so default to INFO (40) |
| 171 | BL31_MAKEARGS += LOG_LEVEL=40 |
| 172 | |
| 173 | # Always enable crash reporting, even on a release build |
| 174 | BL31_MAKEARGS += CRASH_REPORTING=1 |
| 175 | |
| 176 | # Enable coreboot-specific features like CBMEM console support |
| 177 | BL31_MAKEARGS += COREBOOT=1 |
| 178 | |
Julius Werner | 745a75f | 2015-05-11 16:45:56 -0700 | [diff] [blame] | 179 | # Avoid build/release|build/debug distinction by overriding BUILD_PLAT directly |
Julius Werner | 50e7670 | 2016-10-29 00:10:53 -0700 | [diff] [blame] | 180 | BL31_MAKEARGS += BUILD_PLAT="$(BL31_BUILD)" |
| 181 | |
| 182 | # Force making .d files and output directories even though target is not 'bl31' |
| 183 | BL31_MAKEARGS += IS_ANYTHING_TO_BUILD=1 |
Julius Werner | 745a75f | 2015-05-11 16:45:56 -0700 | [diff] [blame] | 184 | |
Patrick Georgi | dcc3ecc | 2016-01-28 15:00:54 +0100 | [diff] [blame] | 185 | # Set a consistent build timestamp: the same coreboot has |
Nico Huber | cccb2d7 | 2020-02-09 12:09:18 +0100 | [diff] [blame] | 186 | BL31_MAKEARGS += BUILD_MESSAGE_TIMESTAMP='"$(shell sed -n 's/^.define COREBOOT_BUILD\>.*"\(.*\)".*/\1/p' $(obj)/build.h)"' |
Patrick Georgi | dcc3ecc | 2016-01-28 15:00:54 +0100 | [diff] [blame] | 187 | |
Martin Roth | 76b8c0e | 2017-03-23 09:37:01 -0600 | [diff] [blame] | 188 | BL31_CFLAGS := -fno-pic -fno-stack-protector -Wno-deprecated-declarations -Wno-unused-function |
Yidi Lin | 3d807d2 | 2024-05-04 17:25:33 +0800 | [diff] [blame] | 189 | BL31_LDFLAGS := -Wl,--emit-relocs |
Julius Werner | 745a75f | 2015-05-11 16:45:56 -0700 | [diff] [blame] | 190 | |
Patrick Georgi | 2268b3b | 2015-06-29 22:13:53 +0200 | [diff] [blame] | 191 | BL31 := $(obj)/bl31.elf |
Julius Werner | 745a75f | 2015-05-11 16:45:56 -0700 | [diff] [blame] | 192 | |
Patrick Georgi | dcc3ecc | 2016-01-28 15:00:54 +0100 | [diff] [blame] | 193 | $(BL31): $(obj)/build.h |
Patrick Georgi | 78a5f22 | 2017-01-30 15:29:34 +0100 | [diff] [blame] | 194 | printf " MAKE $(subst $(obj)/,,$(@))\n" |
Yidi Lin | 3d807d2 | 2024-05-04 17:25:33 +0800 | [diff] [blame] | 195 | +unset AS AR CC CPP OC OD LD; \ |
Yidi Lin | 7e3cabe | 2024-05-04 17:18:44 +0800 | [diff] [blame] | 196 | CROSS_COMPILE="$(CROSS_COMPILE_arm64)" \ |
Julius Werner | 745a75f | 2015-05-11 16:45:56 -0700 | [diff] [blame] | 197 | CFLAGS="$(BL31_CFLAGS)" \ |
| 198 | LDFLAGS="$(BL31_LDFLAGS)" \ |
Martin Roth | 80c314d | 2016-12-29 19:55:28 -0700 | [diff] [blame] | 199 | $(MAKE) -C $(BL31_SOURCE) $(BL31_MAKEARGS) $(BL31_TARGET) DISABLE_PEDANTIC=1 |
Julius Werner | 50e7670 | 2016-10-29 00:10:53 -0700 | [diff] [blame] | 200 | mv $(BL31_TARGET) $@ |
Julius Werner | 745a75f | 2015-05-11 16:45:56 -0700 | [diff] [blame] | 201 | |
| 202 | .PHONY: $(BL31) |
| 203 | |
Patrick Rudolph | d308ed3 | 2018-07-20 09:08:42 +0200 | [diff] [blame] | 204 | else |
| 205 | |
| 206 | BL31 := $(call strip_quotes,$(CONFIG_ARM64_BL31_EXTERNAL_FILE)) |
| 207 | |
| 208 | endif # CONFIG_ARM64_BUILD_ARM_TRUSTED_FIRMWARE |
| 209 | |
| 210 | |
Patrick Georgi | 6dc8570 | 2015-11-30 22:44:53 +0100 | [diff] [blame] | 211 | BL31_CBFS := $(CONFIG_CBFS_PREFIX)/bl31 |
Julius Werner | 745a75f | 2015-05-11 16:45:56 -0700 | [diff] [blame] | 212 | $(BL31_CBFS)-file := $(BL31) |
Ronald G. Minnich | c6d1349 | 2018-05-15 18:05:07 -0700 | [diff] [blame] | 213 | $(BL31_CBFS)-type := payload |
Julius Werner | 745a75f | 2015-05-11 16:45:56 -0700 | [diff] [blame] | 214 | $(BL31_CBFS)-compression := $(CBFS_COMPRESS_FLAG) |
| 215 | cbfs-files-y += $(BL31_CBFS) |
| 216 | |
Julius Werner | fffee87 | 2016-03-07 17:55:43 -0800 | [diff] [blame] | 217 | check-ramstage-overlap-files += $(BL31_CBFS) |
| 218 | |
Furquan Shaikh | a384c28 | 2015-05-28 12:13:51 -0700 | [diff] [blame] | 219 | ifeq ($(CONFIG_ARM64_USE_SECURE_OS),y) |
| 220 | |
| 221 | SECURE_OS_FILE := $(CONFIG_ARM64_SECURE_OS_FILE) |
Patrick Georgi | 6dc8570 | 2015-11-30 22:44:53 +0100 | [diff] [blame] | 222 | SECURE_OS_FILE_CBFS := $(CONFIG_CBFS_PREFIX)/secure_os |
Furquan Shaikh | a384c28 | 2015-05-28 12:13:51 -0700 | [diff] [blame] | 223 | $(SECURE_OS_FILE_CBFS)-file := $(SECURE_OS_FILE) |
| 224 | $(SECURE_OS_FILE_CBFS)-type := stage |
| 225 | cbfs-files-y += $(SECURE_OS_FILE_CBFS) |
| 226 | |
Julius Werner | fffee87 | 2016-03-07 17:55:43 -0800 | [diff] [blame] | 227 | check-ramstage-overlap-files += $(SECURE_OS_FILE_CBFS) |
| 228 | |
Furquan Shaikh | a384c28 | 2015-05-28 12:13:51 -0700 | [diff] [blame] | 229 | endif # CONFIG_ARM64_USE_SECURE_OS |
| 230 | |
Julius Werner | 745a75f | 2015-05-11 16:45:56 -0700 | [diff] [blame] | 231 | endif # CONFIG_ARM64_USE_ARM_TRUSTED_FIRMWARE |
| 232 | |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 233 | endif # CONFIG_ARCH_RAMSTAGE_ARM64 |