1 1.22.2.1 tls # $NetBSD: Makefile.evbarm.inc,v 1.22.2.1 2013/06/23 06:20:04 tls 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.22.2.1 tls .if ${KERNEL_BUILD:T:MRPI_INSTALL} != "" 8 1.22.2.1 tls RAMDISKDIR!= cd ${NETBSDSRCDIR}/distrib/${THISARM:T}/instkernel/sshramdisk && ${PRINTOBJDIR} 9 1.22.2.1 tls 10 1.22.2.1 tls .if exists(${RAMDISKDIR}/sshramdisk.fs) 11 1.22.2.1 tls SYSTEM_LD_TAIL_EXTRA+=; \ 12 1.22.2.1 tls echo ${TOOL_MDSETIMAGE} -s $@ ${RAMDISKDIR}/sshramdisk.fs; \ 13 1.22.2.1 tls ${TOOL_MDSETIMAGE} -s $@ ${RAMDISKDIR}/sshramdisk.fs 14 1.22.2.1 tls .endif 15 1.22.2.1 tls .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