Jorge Ramirez-Ortiz | bf084dc | 2018-09-23 09:36:13 +0200 | [diff] [blame] | 1 | # |
Lad Prabhakar | 7fda4b0 | 2021-03-09 17:26:38 +0000 | [diff] [blame] | 2 | # Copyright (c) 2018-2021, Renesas Electronics Corporation. All rights reserved. |
Jorge Ramirez-Ortiz | bf084dc | 2018-09-23 09:36:13 +0200 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
Biju Das | 4ec2d8f | 2020-12-16 08:57:59 +0000 | [diff] [blame] | 7 | include plat/renesas/common/common.mk |
Jorge Ramirez-Ortiz | bf084dc | 2018-09-23 09:36:13 +0200 | [diff] [blame] | 8 | |
Toshiyuki Ogasahara | 61a4ba2 | 2021-07-12 18:40:26 +0900 | [diff] [blame] | 9 | ENABLE_STACK_PROTECTOR := strong |
| 10 | |
Jorge Ramirez-Ortiz | bf084dc | 2018-09-23 09:36:13 +0200 | [diff] [blame] | 11 | ifndef LSI |
| 12 | $(error "Error: Unknown LSI. Please use LSI=<LSI name> to specify the LSI") |
| 13 | else |
| 14 | ifeq (${LSI},AUTO) |
| 15 | RCAR_LSI:=${RCAR_AUTO} |
| 16 | else ifeq (${LSI},H3) |
| 17 | RCAR_LSI:=${RCAR_H3} |
| 18 | ifndef LSI_CUT |
| 19 | # enable compatible function. |
| 20 | RCAR_LSI_CUT_COMPAT := 1 |
| 21 | $(eval $(call add_define,RCAR_LSI_CUT_COMPAT)) |
| 22 | else |
| 23 | # disable compatible function. |
| 24 | ifeq (${LSI_CUT},10) |
| 25 | RCAR_LSI_CUT:=0 |
| 26 | else ifeq (${LSI_CUT},11) |
| 27 | RCAR_LSI_CUT:=1 |
| 28 | else ifeq (${LSI_CUT},20) |
| 29 | RCAR_LSI_CUT:=10 |
| 30 | else ifeq (${LSI_CUT},30) |
| 31 | RCAR_LSI_CUT:=20 |
| 32 | else |
| 33 | $(error "Error: ${LSI_CUT} is not supported.") |
| 34 | endif |
| 35 | $(eval $(call add_define,RCAR_LSI_CUT)) |
| 36 | endif |
| 37 | else ifeq (${LSI},H3N) |
| 38 | RCAR_LSI:=${RCAR_H3N} |
| 39 | ifndef LSI_CUT |
| 40 | # enable compatible function. |
| 41 | RCAR_LSI_CUT_COMPAT := 1 |
| 42 | $(eval $(call add_define,RCAR_LSI_CUT_COMPAT)) |
| 43 | else |
| 44 | # disable compatible function. |
| 45 | ifeq (${LSI_CUT},30) |
| 46 | RCAR_LSI_CUT:=20 |
| 47 | else |
| 48 | $(error "Error: ${LSI_CUT} is not supported.") |
| 49 | endif |
| 50 | $(eval $(call add_define,RCAR_LSI_CUT)) |
| 51 | endif |
| 52 | else ifeq (${LSI},M3) |
| 53 | RCAR_LSI:=${RCAR_M3} |
| 54 | ifndef LSI_CUT |
| 55 | # enable compatible function. |
| 56 | RCAR_LSI_CUT_COMPAT := 1 |
| 57 | $(eval $(call add_define,RCAR_LSI_CUT_COMPAT)) |
| 58 | else |
| 59 | # disable compatible function. |
| 60 | ifeq (${LSI_CUT},10) |
| 61 | RCAR_LSI_CUT:=0 |
| 62 | else ifeq (${LSI_CUT},11) |
| 63 | RCAR_LSI_CUT:=1 |
Marek Vasut | 3af2005 | 2019-02-25 14:57:08 +0100 | [diff] [blame] | 64 | else ifeq (${LSI_CUT},13) |
| 65 | RCAR_LSI_CUT:=3 |
| 66 | else ifeq (${LSI_CUT},30) |
| 67 | RCAR_LSI_CUT:=20 |
Jorge Ramirez-Ortiz | bf084dc | 2018-09-23 09:36:13 +0200 | [diff] [blame] | 68 | else |
| 69 | $(error "Error: ${LSI_CUT} is not supported.") |
| 70 | endif |
| 71 | $(eval $(call add_define,RCAR_LSI_CUT)) |
| 72 | endif |
| 73 | else ifeq (${LSI},M3N) |
| 74 | RCAR_LSI:=${RCAR_M3N} |
| 75 | ifndef LSI_CUT |
| 76 | # enable compatible function. |
| 77 | RCAR_LSI_CUT_COMPAT := 1 |
| 78 | $(eval $(call add_define,RCAR_LSI_CUT_COMPAT)) |
| 79 | else |
| 80 | # disable compatible function. |
| 81 | ifeq (${LSI_CUT},10) |
| 82 | RCAR_LSI_CUT:=0 |
| 83 | else ifeq (${LSI_CUT},11) |
| 84 | RCAR_LSI_CUT:=1 |
| 85 | else |
| 86 | $(error "Error: ${LSI_CUT} is not supported.") |
| 87 | endif |
| 88 | $(eval $(call add_define,RCAR_LSI_CUT)) |
| 89 | endif |
| 90 | else ifeq (${LSI},E3) |
| 91 | RCAR_LSI:=${RCAR_E3} |
| 92 | ifndef LSI_CUT |
| 93 | # enable compatible function. |
| 94 | RCAR_LSI_CUT_COMPAT := 1 |
| 95 | $(eval $(call add_define,RCAR_LSI_CUT_COMPAT)) |
| 96 | else |
| 97 | # disable compatible function. |
| 98 | ifeq (${LSI_CUT},10) |
| 99 | RCAR_LSI_CUT:=0 |
Marek Vasut | 3af2005 | 2019-02-25 14:57:08 +0100 | [diff] [blame] | 100 | else ifeq (${LSI_CUT},11) |
| 101 | RCAR_LSI_CUT:=1 |
Jorge Ramirez-Ortiz | bf084dc | 2018-09-23 09:36:13 +0200 | [diff] [blame] | 102 | else |
| 103 | $(error "Error: ${LSI_CUT} is not supported.") |
| 104 | endif |
| 105 | $(eval $(call add_define,RCAR_LSI_CUT)) |
| 106 | endif |
Marek Vasut | 4ae342c | 2019-01-05 13:56:03 +0100 | [diff] [blame] | 107 | else ifeq (${LSI},D3) |
| 108 | RCAR_LSI:=${RCAR_D3} |
| 109 | ifndef LSI_CUT |
| 110 | # enable compatible function. |
| 111 | RCAR_LSI_CUT_COMPAT := 1 |
| 112 | $(eval $(call add_define,RCAR_LSI_CUT_COMPAT)) |
| 113 | else |
| 114 | # disable compatible function. |
| 115 | ifeq (${LSI_CUT},10) |
| 116 | RCAR_LSI_CUT:=0 |
| 117 | else |
| 118 | $(error "Error: ${LSI_CUT} is not supported.") |
| 119 | endif |
| 120 | $(eval $(call add_define,RCAR_LSI_CUT)) |
| 121 | endif |
Valentine Barshak | f218414 | 2018-10-30 02:06:17 +0300 | [diff] [blame] | 122 | else ifeq (${LSI},V3M) |
| 123 | RCAR_LSI:=${RCAR_V3M} |
| 124 | ifndef LSI_CUT |
| 125 | # enable compatible function. |
| 126 | RCAR_LSI_CUT_COMPAT := 1 |
| 127 | $(eval $(call add_define,RCAR_LSI_CUT_COMPAT)) |
| 128 | else |
| 129 | # disable compatible function. |
| 130 | ifeq (${LSI_CUT},10) |
| 131 | RCAR_LSI_CUT:=0 |
| 132 | endif |
| 133 | ifeq (${LSI_CUT},20) |
| 134 | RCAR_LSI_CUT:=10 |
| 135 | endif |
| 136 | $(eval $(call add_define,RCAR_LSI_CUT)) |
| 137 | endif |
Jorge Ramirez-Ortiz | bf084dc | 2018-09-23 09:36:13 +0200 | [diff] [blame] | 138 | else |
| 139 | $(error "Error: ${LSI} is not supported.") |
| 140 | endif |
| 141 | $(eval $(call add_define,RCAR_LSI)) |
| 142 | endif |
| 143 | |
Jorge Ramirez-Ortiz | 87c0405 | 2018-11-19 19:26:56 +0100 | [diff] [blame] | 144 | # lock RPC HYPERFLASH access by default |
| 145 | # unlock to repogram the ATF firmware from u-boot |
| 146 | ifndef RCAR_RPC_HYPERFLASH_LOCKED |
| 147 | RCAR_RPC_HYPERFLASH_LOCKED := 1 |
| 148 | endif |
| 149 | $(eval $(call add_define,RCAR_RPC_HYPERFLASH_LOCKED)) |
| 150 | |
Jorge Ramirez-Ortiz | bf084dc | 2018-09-23 09:36:13 +0200 | [diff] [blame] | 151 | # Process RCAR_SECURE_BOOT flag |
| 152 | ifndef RCAR_SECURE_BOOT |
| 153 | RCAR_SECURE_BOOT := 1 |
| 154 | endif |
| 155 | $(eval $(call add_define,RCAR_SECURE_BOOT)) |
| 156 | |
| 157 | # Process RCAR_QOS_TYPE flag |
| 158 | ifndef RCAR_QOS_TYPE |
| 159 | RCAR_QOS_TYPE := 0 |
| 160 | endif |
| 161 | $(eval $(call add_define,RCAR_QOS_TYPE)) |
| 162 | |
| 163 | # Process RCAR_DRAM_SPLIT flag |
| 164 | ifndef RCAR_DRAM_SPLIT |
| 165 | RCAR_DRAM_SPLIT := 0 |
| 166 | endif |
| 167 | $(eval $(call add_define,RCAR_DRAM_SPLIT)) |
| 168 | |
| 169 | # Process RCAR_BL33_EXECUTION_EL flag |
| 170 | ifndef RCAR_BL33_EXECUTION_EL |
| 171 | RCAR_BL33_EXECUTION_EL := 0 |
| 172 | endif |
| 173 | $(eval $(call add_define,RCAR_BL33_EXECUTION_EL)) |
| 174 | |
| 175 | # Process RCAR_AVS_SETTING_ENABLE flag |
| 176 | ifeq (${RCAR_AVS_SETTING_ENABLE},0) |
| 177 | AVS_SETTING_ENABLE := 0 |
| 178 | else |
| 179 | AVS_SETTING_ENABLE := 1 |
| 180 | endif |
| 181 | $(eval $(call add_define,AVS_SETTING_ENABLE)) |
| 182 | |
| 183 | # Process RCAR_LOSSY_ENABLE flag |
| 184 | ifndef RCAR_LOSSY_ENABLE |
| 185 | RCAR_LOSSY_ENABLE := 0 |
| 186 | endif |
| 187 | $(eval $(call add_define,RCAR_LOSSY_ENABLE)) |
| 188 | |
| 189 | # Process LIFEC_DBSC_PROTECT_ENABLE flag |
| 190 | ifndef LIFEC_DBSC_PROTECT_ENABLE |
| 191 | LIFEC_DBSC_PROTECT_ENABLE := 1 |
| 192 | endif |
| 193 | $(eval $(call add_define,LIFEC_DBSC_PROTECT_ENABLE)) |
| 194 | |
| 195 | # Process PMIC_ROHM_BD9571 flag |
| 196 | ifndef PMIC_ROHM_BD9571 |
| 197 | PMIC_ROHM_BD9571 := 1 |
| 198 | endif |
| 199 | $(eval $(call add_define,PMIC_ROHM_BD9571)) |
| 200 | |
| 201 | # Process PMIC_LEVEL_MODE flag |
| 202 | ifndef PMIC_LEVEL_MODE |
| 203 | PMIC_LEVEL_MODE := 1 |
| 204 | endif |
| 205 | $(eval $(call add_define,PMIC_LEVEL_MODE)) |
| 206 | |
| 207 | # Process RCAR_GEN3_ULCB flag |
| 208 | ifndef RCAR_GEN3_ULCB |
| 209 | RCAR_GEN3_ULCB := 0 |
| 210 | endif |
| 211 | ifeq (${RCAR_GEN3_ULCB},1) |
| 212 | BOARD_DEFAULT := 0x10 |
| 213 | $(eval $(call add_define,BOARD_DEFAULT)) |
| 214 | endif |
| 215 | $(eval $(call add_define,RCAR_GEN3_ULCB)) |
| 216 | |
| 217 | # Process RCAR_REF_INT flag |
| 218 | ifndef RCAR_REF_INT |
| 219 | RCAR_REF_INT :=0 |
| 220 | endif |
| 221 | $(eval $(call add_define,RCAR_REF_INT)) |
| 222 | |
| 223 | # Process RCAR_REWT_TRAINING flag |
| 224 | ifndef RCAR_REWT_TRAINING |
Toshiyuki Ogasahara | 040966b | 2019-03-11 15:03:00 +0900 | [diff] [blame] | 225 | RCAR_REWT_TRAINING := 1 |
Jorge Ramirez-Ortiz | bf084dc | 2018-09-23 09:36:13 +0200 | [diff] [blame] | 226 | endif |
| 227 | $(eval $(call add_define,RCAR_REWT_TRAINING)) |
| 228 | |
| 229 | # Process RCAR_SYSTEM_SUSPEND flag |
| 230 | ifndef RCAR_SYSTEM_SUSPEND |
| 231 | RCAR_SYSTEM_SUSPEND := 1 |
| 232 | endif |
| 233 | $(eval $(call add_define,RCAR_SYSTEM_SUSPEND)) |
| 234 | |
| 235 | # SYSTEM_SUSPEND requires power control of PMIC etc. |
| 236 | # When executing SYSTEM_SUSPEND other than Salvator-X, Salvator-XS and Ebisu, |
| 237 | # processing equivalent to that implemented in PMIC_ROHM_BD9571 is necessary. |
| 238 | ifeq (${RCAR_SYSTEM_SUSPEND},1) |
| 239 | ifeq (${PMIC_ROHM_BD9571},0) |
| 240 | $(error "Error: When you want RCAR_SYSTEM_SUSPEND to be enable, please also set PMIC_ROHM_BD9571 to enable.") |
| 241 | endif |
| 242 | endif |
| 243 | |
| 244 | # Process RCAR_DRAM_LPDDR4_MEMCONF flag |
| 245 | ifndef RCAR_DRAM_LPDDR4_MEMCONF |
| 246 | RCAR_DRAM_LPDDR4_MEMCONF :=1 |
| 247 | endif |
| 248 | $(eval $(call add_define,RCAR_DRAM_LPDDR4_MEMCONF)) |
| 249 | |
Toshiyuki Ogasahara | debafb8 | 2020-11-30 14:52:19 +0900 | [diff] [blame] | 250 | # Process RCAR_DRAM_MEMRANK flag |
| 251 | ifndef RCAR_DRAM_MEMRANK |
| 252 | RCAR_DRAM_MEMRANK :=0 |
| 253 | endif |
| 254 | $(eval $(call add_define,RCAR_DRAM_MEMRANK)) |
| 255 | |
Jorge Ramirez-Ortiz | bf084dc | 2018-09-23 09:36:13 +0200 | [diff] [blame] | 256 | # Process RCAR_DRAM_DDR3L_MEMCONF flag |
| 257 | ifndef RCAR_DRAM_DDR3L_MEMCONF |
| 258 | RCAR_DRAM_DDR3L_MEMCONF :=1 |
| 259 | endif |
| 260 | $(eval $(call add_define,RCAR_DRAM_DDR3L_MEMCONF)) |
| 261 | |
| 262 | # Process RCAR_DRAM_DDR3L_MEMDUAL flag |
| 263 | ifndef RCAR_DRAM_DDR3L_MEMDUAL |
| 264 | RCAR_DRAM_DDR3L_MEMDUAL :=1 |
| 265 | endif |
| 266 | $(eval $(call add_define,RCAR_DRAM_DDR3L_MEMDUAL)) |
| 267 | |
| 268 | # Process RCAR_BL33_ARG0 flag |
| 269 | ifdef RCAR_BL33_ARG0 |
| 270 | $(eval $(call add_define,RCAR_BL33_ARG0)) |
| 271 | endif |
| 272 | |
| 273 | #Process RCAR_BL2_DCACHE flag |
| 274 | ifndef RCAR_BL2_DCACHE |
| 275 | RCAR_BL2_DCACHE := 0 |
| 276 | endif |
| 277 | $(eval $(call add_define,RCAR_BL2_DCACHE)) |
| 278 | |
| 279 | # Process RCAR_DRAM_CHANNEL flag |
| 280 | ifndef RCAR_DRAM_CHANNEL |
| 281 | RCAR_DRAM_CHANNEL :=15 |
| 282 | endif |
| 283 | $(eval $(call add_define,RCAR_DRAM_CHANNEL)) |
| 284 | |
| 285 | #Process RCAR_SYSTEM_RESET_KEEPON_DDR flag |
| 286 | ifndef RCAR_SYSTEM_RESET_KEEPON_DDR |
| 287 | RCAR_SYSTEM_RESET_KEEPON_DDR := 0 |
| 288 | endif |
| 289 | $(eval $(call add_define,RCAR_SYSTEM_RESET_KEEPON_DDR)) |
| 290 | |
Marek Vasut | b25ee35 | 2021-02-13 19:09:29 +0100 | [diff] [blame] | 291 | ifndef RCAR_GEN3_BL33_GZIP |
| 292 | RCAR_GEN3_BL33_GZIP := 0 |
| 293 | endif |
| 294 | $(eval $(call add_define,RCAR_GEN3_BL33_GZIP)) |
| 295 | |
Jorge Ramirez-Ortiz | bf084dc | 2018-09-23 09:36:13 +0200 | [diff] [blame] | 296 | # RCAR_SYSTEM_RESET_KEEPON_DDR requires power control of PMIC etc. |
| 297 | # When executing SYSTEM_SUSPEND other than Salvator-X, Salvator-XS and Ebisu, |
| 298 | # processing equivalent to that implemented in PMIC_ROHM_BD9571 is necessary. |
| 299 | # Also, it is necessary to enable RCAR_SYSTEM_SUSPEND. |
| 300 | ifeq (${RCAR_SYSTEM_RESET_KEEPON_DDR},1) |
| 301 | ifeq (${PMIC_ROHM_BD9571},0) |
| 302 | $(error "Error: When you want RCAR_SYSTEM_RESET_KEEPON_DDR to be enable, please also set PMIC_ROHM_BD9571 to enable.") |
| 303 | endif |
| 304 | ifeq (${RCAR_SYSTEM_SUSPEND},0) |
| 305 | $(error "Error: When you want RCAR_SYSTEM_RESET_KEEPON_DDR to be enable, please also set RCAR_SYSTEM_SUSPEND to enable.") |
| 306 | endif |
| 307 | endif |
| 308 | |
Lad Prabhakar | 7fda4b0 | 2021-03-09 17:26:38 +0000 | [diff] [blame] | 309 | include drivers/renesas/common/ddr/ddr.mk |
Marek Vasut | d7af495 | 2019-06-15 15:01:04 +0200 | [diff] [blame] | 310 | include drivers/renesas/rcar/qos/qos.mk |
Marek Vasut | b4bd242 | 2019-06-17 19:29:03 +0200 | [diff] [blame] | 311 | include drivers/renesas/rcar/pfc/pfc.mk |
Marek Vasut | 93c85fc | 2018-10-02 20:45:18 +0200 | [diff] [blame] | 312 | include lib/libfdt/libfdt.mk |
Jorge Ramirez-Ortiz | bf084dc | 2018-09-23 09:36:13 +0200 | [diff] [blame] | 313 | |
Lad Prabhakar | 7fda4b0 | 2021-03-09 17:26:38 +0000 | [diff] [blame] | 314 | PLAT_INCLUDES += -Idrivers/renesas/common/ddr \ |
Marek Vasut | d7af495 | 2019-06-15 15:01:04 +0200 | [diff] [blame] | 315 | -Idrivers/renesas/rcar/qos \ |
Jorge Ramirez-Ortiz | bf084dc | 2018-09-23 09:36:13 +0200 | [diff] [blame] | 316 | -Idrivers/renesas/rcar/board \ |
Marek Vasut | 38ec9e5 | 2018-12-28 11:26:03 +0100 | [diff] [blame] | 317 | -Idrivers/renesas/rcar/cpld/ \ |
Biju Das | a7d9c7d | 2020-12-16 11:53:59 +0000 | [diff] [blame] | 318 | -Idrivers/renesas/common \ |
Biju Das | 5cd4e33 | 2020-12-16 09:43:41 +0000 | [diff] [blame] | 319 | -Idrivers/renesas/common/iic_dvfs \ |
Biju Das | 0520cdf | 2020-12-16 11:13:06 +0000 | [diff] [blame] | 320 | -Idrivers/renesas/common/avs \ |
Biju Das | ee13d8f | 2020-12-16 10:46:36 +0000 | [diff] [blame] | 321 | -Idrivers/renesas/common/delay \ |
Biju Das | 907c865 | 2020-12-16 10:56:03 +0000 | [diff] [blame] | 322 | -Idrivers/renesas/common/rom \ |
Biju Das | 73e52b8 | 2020-12-16 10:36:17 +0000 | [diff] [blame] | 323 | -Idrivers/renesas/common/scif \ |
Biju Das | 4c32559 | 2020-12-16 09:53:19 +0000 | [diff] [blame] | 324 | -Idrivers/renesas/common/emmc \ |
Biju Das | 112cc42 | 2020-12-16 10:27:45 +0000 | [diff] [blame] | 325 | -Idrivers/renesas/common/pwrc \ |
Biju Das | 030163c | 2020-12-16 10:05:41 +0000 | [diff] [blame] | 326 | -Idrivers/renesas/common/io |
Jorge Ramirez-Ortiz | bf084dc | 2018-09-23 09:36:13 +0200 | [diff] [blame] | 327 | |
Biju Das | 4580328 | 2020-12-16 11:28:07 +0000 | [diff] [blame] | 328 | BL2_SOURCES += plat/renesas/rcar/bl2_plat_setup.c \ |
Biju Das | 4ec2d8f | 2020-12-16 08:57:59 +0000 | [diff] [blame] | 329 | drivers/renesas/rcar/board/board.c |
Jorge Ramirez-Ortiz | bf084dc | 2018-09-23 09:36:13 +0200 | [diff] [blame] | 330 | |
Marek Vasut | b25ee35 | 2021-02-13 19:09:29 +0100 | [diff] [blame] | 331 | ifeq (${RCAR_GEN3_BL33_GZIP},1) |
| 332 | include lib/zlib/zlib.mk |
| 333 | |
| 334 | BL2_SOURCES += common/image_decompress.c \ |
| 335 | $(ZLIB_SOURCES) |
| 336 | endif |
| 337 | |
Toshiyuki Ogasahara | 61a4ba2 | 2021-07-12 18:40:26 +0900 | [diff] [blame] | 338 | ifneq (${ENABLE_STACK_PROTECTOR},0) |
| 339 | BL_COMMON_SOURCES += plat/renesas/rcar/rcar_stack_protector.c |
| 340 | endif |
| 341 | |
Jorge Ramirez-Ortiz | bf084dc | 2018-09-23 09:36:13 +0200 | [diff] [blame] | 342 | ifeq (${RCAR_GEN3_ULCB},1) |
| 343 | BL31_SOURCES += drivers/renesas/rcar/cpld/ulcb_cpld.c |
| 344 | endif |
| 345 | |
Jorge Ramirez-Ortiz | bf084dc | 2018-09-23 09:36:13 +0200 | [diff] [blame] | 346 | # build the layout images for the bootrom and the necessary srecords |
| 347 | rcar: rcar_layout_tool rcar_srecord |
| 348 | distclean realclean clean: clean_layout_tool clean_srecord |
| 349 | |
| 350 | # layout images |
| 351 | LAYOUT_TOOLPATH ?= tools/renesas/rcar_layout_create |
| 352 | |
| 353 | clean_layout_tool: |
| 354 | @echo "clean layout tool" |
| 355 | ${Q}${MAKE} -C ${LAYOUT_TOOLPATH} clean |
| 356 | |
| 357 | .PHONY: rcar_layout_tool |
| 358 | rcar_layout_tool: |
| 359 | @echo "generating layout srecs" |
| 360 | ${Q}${MAKE} CPPFLAGS="-D=AARCH64" --no-print-directory -C ${LAYOUT_TOOLPATH} |
| 361 | |
| 362 | # srecords |
| 363 | SREC_PATH = ${BUILD_PLAT} |
| 364 | BL2_ELF_SRC = ${SREC_PATH}/bl2/bl2.elf |
| 365 | BL31_ELF_SRC = ${SREC_PATH}/bl31/bl31.elf |
| 366 | |
| 367 | clean_srecord: |
| 368 | @echo "clean bl2 and bl31 srecs" |
| 369 | rm -f ${SREC_PATH}/bl2.srec ${SREC_PATH}/bl31.srec |
| 370 | |
| 371 | .PHONY: rcar_srecord |
Marek Vasut | 7043fce | 2018-12-31 19:47:37 +0100 | [diff] [blame] | 372 | rcar_srecord: $(BL2_ELF_SRC) $(BL31_ELF_SRC) |
Jorge Ramirez-Ortiz | bf084dc | 2018-09-23 09:36:13 +0200 | [diff] [blame] | 373 | @echo "generating srec: ${SREC_PATH}/bl2.srec" |
Chris Kay | 523e864 | 2023-12-04 12:03:51 +0000 | [diff] [blame] | 374 | $(Q)$($(ARCH)-oc) -O srec --srec-forceS3 ${BL2_ELF_SRC} ${SREC_PATH}/bl2.srec |
Jorge Ramirez-Ortiz | bf084dc | 2018-09-23 09:36:13 +0200 | [diff] [blame] | 375 | @echo "generating srec: ${SREC_PATH}/bl31.srec" |
Chris Kay | 523e864 | 2023-12-04 12:03:51 +0000 | [diff] [blame] | 376 | $(Q)$($(ARCH)-oc) -O srec --srec-forceS3 ${BL31_ELF_SRC} ${SREC_PATH}/bl31.srec |