Browse Source
* changes: build(fpga): correctly handle gcc as linker for LTO fix(build): enforce single partition for LTO build fix(rockchip): add support for building with LTO enabledpull/2000/merge
Bipin Ravi
8 months ago
committed by
TrustedFirmware Code Review
5 changed files with 32 additions and 26 deletions
@ -0,0 +1,21 @@ |
|||
/* |
|||
* Copyright (c) 2024, ARM Limited and Contributors. All rights reserved. |
|||
* |
|||
* SPDX-License-Identifier: BSD-3-Clause |
|||
*/ |
|||
|
|||
/* convoluted way to make sure that the define is pasted just the right way */ |
|||
.macro INCBIN file sym sec |
|||
.section \sec |
|||
.global \sym |
|||
.type \sym, @object |
|||
.align 4 |
|||
\sym : |
|||
.incbin \file |
|||
.size \sym , .-\sym |
|||
.global \sym\()_end |
|||
\sym\()_end : |
|||
.endm |
|||
|
|||
INCBIN ""RK3399M0FW"", "rk3399m0_bin", ".sram.incbin" |
|||
INCBIN ""RK3399M0PMUFW"", "rk3399m0pmu_bin", ".pmusram.incbin" |
@ -1,22 +0,0 @@ |
|||
/*
|
|||
* Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. |
|||
* |
|||
* SPDX-License-Identifier: BSD-3-Clause |
|||
*/ |
|||
|
|||
/* convoluted way to make sure that the define is pasted just the right way */ |
|||
#define INCBIN(file, sym, sec) \ |
|||
__asm__( \ |
|||
".section " sec "\n" \ |
|||
".global " sym "\n" \ |
|||
".type " sym ", %object\n" \ |
|||
".align 4\n" \ |
|||
sym ":\n" \ |
|||
".incbin \"" file "\"\n" \ |
|||
".size " sym ", .-" sym "\n" \ |
|||
".global " sym "_end\n" \ |
|||
sym "_end:\n" \ |
|||
) |
|||
|
|||
INCBIN(RK3399M0FW, "rk3399m0_bin", ".sram.incbin"); |
|||
INCBIN(RK3399M0PMUFW, "rk3399m0pmu_bin", ".pmusram.incbin"); |
Loading…
Reference in new issue