arm-trusted-firmware/plat/rockchip
Quentin Schulz ddd70f199b fix(rk3399): fix unquoted .incbin for clang
While GCC doesn't complain about anything for .incbin, clang does:
"""
<instantiation>:6:10: error: expected string in '.incbin' directive
 .incbin /build/rk3399/release/m0/rk3399m0.bin
         ^
plat/rockchip/rk3399/drivers/pmu/pmu_fw.S:20:1: note: while in macro instantiation
INCBIN """/build/rk3399/release/m0/rk3399m0.bin""", "rk3399m0_bin", ".sram.incbin"
^
<instantiation>:6:10: error: expected string in '.incbin' directive
 .incbin /build/rk3399/release/m0/rk3399m0pmu.bin
         ^
plat/rockchip/rk3399/drivers/pmu/pmu_fw.S:21:1: note: while in macro instantiation
INCBIN """/build/rk3399/release/m0/rk3399m0pmu.bin""", "rk3399m0pmu_bin", ".pmusram.incbin"
^
"""

Adding quotes around \file in .incbin fixes the clang issue but GCC now
complains:
"""
plat/rockchip/rk3399/drivers/pmu/pmu_fw.S: Assembler messages:
plat/rockchip/rk3399/drivers/pmu/pmu_fw.S:14: Error: junk at end of line, first unrecognized character is `/'
plat/rockchip/rk3399/drivers/pmu/pmu_fw.S:20:  Info: macro invoked from here
plat/rockchip/rk3399/drivers/pmu/pmu_fw.S:14: Error: unable to include `./'
plat/rockchip/rk3399/drivers/pmu/pmu_fw.S:20:  Info: macro invoked from here
plat/rockchip/rk3399/drivers/pmu/pmu_fw.S:14: Error: junk at end of line, first unrecognized character is `/'
plat/rockchip/rk3399/drivers/pmu/pmu_fw.S:21:  Info: macro invoked from here
plat/rockchip/rk3399/drivers/pmu/pmu_fw.S:14: Error: unable to include `./'
plat/rockchip/rk3399/drivers/pmu/pmu_fw.S:21:  Info: macro invoked from here
"""

Considering that the symbol is defined with escaped quotes, it is
probably safe to remove the double quotes around the INBCIN macro
parameter, so let's do that to make both compilers happy.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Change-Id: Id18b0341353ffc00e44e2d3c643ccdd05cc20c4f
2024-12-13 18:01:53 +01:00
..
common fix(rockchip): pmu: Do not mark already defined functions as weak 2024-11-05 14:27:54 +01:00
px30 fix(px30): remove unused function 2024-11-05 14:26:50 +01:00
rk3288 fix(rk3288): remove unused function 2024-11-05 14:27:11 +01:00
rk3328 fix(rk3328): apply ERRATA_A53_1530924 erratum 2023-11-27 18:10:30 +01:00
rk3368 fix(tree): correct some typos 2023-05-09 15:57:12 +01:00
rk3399 fix(rk3399): fix unquoted .incbin for clang 2024-12-13 18:01:53 +01:00
rk3568 feat(rockchip): add RK3566/RK3568 Socs support 2024-06-07 11:59:46 +02:00
rk3588 fix(rk3588): pmu: fix assembly symbol redefinition 2024-11-05 14:27:56 +01:00