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