1 /* 2 * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 /* convoluted way to make sure that the define is pasted just the right way */ 8 #define INCBIN(file, sym, sec) \ 9 __asm__( \ 10 ".section " sec "\n" \ 11 ".global " sym "\n" \ 12 ".type " sym ", %object\n" \ 13 ".align 4\n" \ 14 sym ":\n" \ 15 ".incbin \"" file "\"\n" \ 16 ".size " sym ", .-" sym "\n" \ 17 ".global " sym "_end\n" \ 18 sym "_end:\n" \ 19 ) 20 21 INCBIN(RK3399M0FW, "rk3399m0_bin", ".sram.incbin"); 22 INCBIN(RK3399M0PMUFW, "rk3399m0pmu_bin", ".pmusram.incbin"); 23