Home | History | Annotate | Line # | Download | only in conf
Makefile.evbarm.inc revision 1.23
      1  1.23   garbled #	$NetBSD: Makefile.evbarm.inc,v 1.23 2013/03/19 22:16:54 garbled Exp $
      2  1.22      matt 
      3  1.22      matt #
      4  1.22      matt # If this is a install kernel and the ramdisk image exists in the object
      5  1.22      matt # tree, insert it into the kernel *before* we make the u-boot images.
      6  1.22      matt #
      7  1.23   garbled .if ${KERNEL_BUILD:T:MRPI_INSTALL} != ""
      8  1.23   garbled RAMDISKDIR!=	cd ${NETBSDSRCDIR}/distrib/${THISARM:T}/instkernel/sshramdisk && ${PRINTOBJDIR}
      9  1.23   garbled 
     10  1.23   garbled .if exists(${RAMDISKDIR}/sshramdisk.fs)
     11  1.23   garbled SYSTEM_LD_TAIL_EXTRA+=; \
     12  1.23   garbled 	echo ${TOOL_MDSETIMAGE} -s $@ ${RAMDISKDIR}/sshramdisk.fs; \
     13  1.23   garbled 	${TOOL_MDSETIMAGE} -s $@ ${RAMDISKDIR}/sshramdisk.fs
     14  1.23   garbled .endif
     15  1.23   garbled .elif ${KERNEL_BUILD:T:M*INSTALL} != ""
     16  1.22      matt RAMDISKDIR!=	cd ${NETBSDSRCDIR}/distrib/${THISARM:T}/instkernel/ramdisk && ${PRINTOBJDIR}
     17  1.22      matt 
     18  1.22      matt .if exists(${RAMDISKDIR}/ramdisk.fs)
     19  1.22      matt SYSTEM_LD_TAIL_EXTRA+=; \
     20  1.22      matt 	echo ${TOOL_MDSETIMAGE} -s $@ ${RAMDISKDIR}/ramdisk.fs; \
     21  1.22      matt 	${TOOL_MDSETIMAGE} -s $@ ${RAMDISKDIR}/ramdisk.fs
     22  1.22      matt .endif
     23  1.22      matt .endif
     24   1.1  rearnsha 
     25  1.16   thorpej .if defined(BOARDMKFRAG)	# Must be a full pathname.
     26  1.16   thorpej .include "${BOARDMKFRAG}"
     27  1.15   thorpej .endif
     28  1.15   thorpej 
     29  1.20      matt EXTRA_CLEAN+= ldscript tmp ${KERNELS:=.map}
     30  1.20      matt 
     31  1.15   thorpej .if defined(KERNEL_BASE_PHYS)
     32  1.15   thorpej 
     33  1.15   thorpej LINKFLAGS=	-T ldscript
     34  1.14       bsh 
     35  1.14       bsh netbsd: ldscript             # XXX
     36  1.14       bsh 
     37  1.21  jakllsch # generate ldscript from common template
     38  1.18      matt ldscript: ${THISARM}/conf/ldscript.evbarm ${THISARM}/conf/Makefile.evbarm.inc Makefile ${BOARDMKFRAG}
     39  1.14       bsh 	echo ${KERNELS}
     40  1.19       apb 	${TOOL_SED} -e 's/@KERNEL_BASE_PHYS@/${KERNEL_BASE_PHYS}/' \
     41  1.14       bsh 	    -e 's/@KERNEL_BASE_VIRT@/${KERNEL_BASE_VIRT}/' \
     42  1.14       bsh 	    ${THISARM}/conf/ldscript.evbarm > tmp && mv tmp $@
     43  1.15   thorpej 
     44  1.15   thorpej .endif	# KERNEL_BASE_PHYS
     45