Home | History | Annotate | Line # | Download | only in conf
Makefile.evbarm.inc revision 1.19
      1 #	$NetBSD: Makefile.evbarm.inc,v 1.19 2008/10/25 22:27:37 apb Exp $
      2 
      3 .if defined(BOARDMKFRAG)	# Must be a full pathname.
      4 .include "${BOARDMKFRAG}"
      5 .endif
      6 
      7 .if defined(KERNEL_BASE_PHYS)
      8 
      9 LINKFLAGS=	-T ldscript
     10 
     11 netbsd: ldscript             # XXX
     12 EXTRA_CLEAN+= ldscript tmp
     13 
     14 # generate ldscript from common template
     15 ldscript: ${THISARM}/conf/ldscript.evbarm ${THISARM}/conf/Makefile.evbarm.inc Makefile ${BOARDMKFRAG}
     16 	echo ${KERNELS}
     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 $@
     20 
     21 .endif	# KERNEL_BASE_PHYS
     22