Makefile.evbarm.inc revision 1.20 1 # $NetBSD: Makefile.evbarm.inc,v 1.20 2011/01/31 06:09:32 matt Exp $
2
3 .if defined(BOARDMKFRAG) # Must be a full pathname.
4 .include "${BOARDMKFRAG}"
5 .endif
6
7 EXTRA_CLEAN+= ldscript tmp ${KERNELS:=.map}
8
9 .if defined(KERNEL_BASE_PHYS)
10
11 LINKFLAGS= -T ldscript
12
13 netbsd: ldscript # XXX
14
15 # generate ldscript from common template
16 ldscript: ${THISARM}/conf/ldscript.evbarm ${THISARM}/conf/Makefile.evbarm.inc Makefile ${BOARDMKFRAG}
17 echo ${KERNELS}
18 ${TOOL_SED} -e 's/@KERNEL_BASE_PHYS@/${KERNEL_BASE_PHYS}/' \
19 -e 's/@KERNEL_BASE_VIRT@/${KERNEL_BASE_VIRT}/' \
20 ${THISARM}/conf/ldscript.evbarm > tmp && mv tmp $@
21
22 .endif # KERNEL_BASE_PHYS
23