1 # $NetBSD: Makefile.evbarm.inc,v 1.18 2008/04/27 18:58:46 matt Exp $
3 .if defined(BOARDMKFRAG) # Must be a full pathname.
4 .include "${BOARDMKFRAG}"
7 .if defined(KERNEL_BASE_PHYS)
11 netbsd: ldscript # XXX
12 EXTRA_CLEAN+= ldscript tmp
14 # generate ldscript from common template
15 ldscript: ${THISARM}/conf/ldscript.evbarm ${THISARM}/conf/Makefile.evbarm.inc Makefile ${BOARDMKFRAG}
17 ${TOOL_SED} -e 's/@KERNEL_BASE_PHYS@/${KERNEL_BASE_PHYS}/' \
18 -e 's/@KERNEL_BASE_VIRT@/${KERNEL_BASE_VIRT}/' \
19 ${THISARM}/conf/ldscript.evbarm > tmp && mv tmp $@
21 .endif # KERNEL_BASE_PHYS