blob: bee9777a4e93b9f28917725e6c680ef858a48d8e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
def onlinker_script(unit, *args):
"""
@usage: LINKER_SCRIPT(Files...)
Specify files to be used as a linker script
"""
for arg in args:
if not arg.endswith(".ld") and not arg.endswith(".ld.in"):
unit.message(['error', "Invalid linker script extension: {}".format(arg)])
return
unit.onglobal_srcs(list(args))
|