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