2016-10-12 01:10:12 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
|
|
|
|
*
|
2017-05-03 09:38:09 +01:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2016-10-12 01:10:12 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* convoluted way to make sure that the define is pasted just the right way */
|
2019-12-13 19:44:55 +00:00
|
|
|
#define INCBIN(file, sym, sec) \
|
2016-10-12 01:10:12 +01:00
|
|
|
__asm__( \
|
2019-12-13 19:44:55 +00:00
|
|
|
".section " sec "\n" \
|
|
|
|
".global " sym "\n" \
|
|
|
|
".type " sym ", %object\n" \
|
2016-10-12 01:10:12 +01:00
|
|
|
".align 4\n" \
|
2019-12-13 19:44:55 +00:00
|
|
|
sym ":\n" \
|
|
|
|
".incbin \"" file "\"\n" \
|
|
|
|
".size " sym ", .-" sym "\n" \
|
|
|
|
".global " sym "_end\n" \
|
|
|
|
sym "_end:\n" \
|
2016-10-12 01:10:12 +01:00
|
|
|
)
|
|
|
|
|
2019-12-13 19:44:55 +00:00
|
|
|
INCBIN(RK3399M0FW, "rk3399m0_bin", ".sram.incbin");
|
|
|
|
INCBIN(RK3399M0PMUFW, "rk3399m0pmu_bin", ".pmusram.incbin");
|