Home | History | Annotate | Line # | Download | only in conf
Makefile.evbarm.inc revision 1.21.4.2
      1  1.21.4.2      yamt #	$NetBSD: Makefile.evbarm.inc,v 1.21.4.2 2014/05/22 11:39:40 yamt Exp $
      2  1.21.4.1      yamt 
      3  1.21.4.1      yamt #
      4  1.21.4.1      yamt # If this is a install kernel and the ramdisk image exists in the object
      5  1.21.4.1      yamt # tree, insert it into the kernel *before* we make the u-boot images.
      6  1.21.4.1      yamt #
      7  1.21.4.2      yamt RAMDISKNAME?=	ramdisk
      8  1.21.4.2      yamt .if ${KERNEL_BUILD:T:M*INSTALL*} != ""
      9  1.21.4.2      yamt RAMDISKDIR!=	cd ${NETBSDSRCDIR}/distrib/${THISARM:T}/instkernel/${RAMDISKNAME} && ${PRINTOBJDIR}
     10  1.21.4.1      yamt 
     11  1.21.4.2      yamt .if exists(${RAMDISKDIR}/${RAMDISKNAME}.fs)
     12  1.21.4.2      yamt SYSTEM_DEP+=	${RAMDISKDIR}/${RAMDISKNAME}.fs
     13  1.21.4.1      yamt SYSTEM_LD_TAIL_EXTRA+=; \
     14  1.21.4.2      yamt 	echo ${TOOL_MDSETIMAGE} -s $@ ${RAMDISKDIR}/${RAMDISKNAME}.fs; \
     15  1.21.4.2      yamt 	${TOOL_MDSETIMAGE} -s $@ ${RAMDISKDIR}/${RAMDISKNAME}.fs
     16  1.21.4.1      yamt .endif
     17  1.21.4.1      yamt .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.21.4.2      yamt .if defined(KERNEL_BASE_PHYS) && defined(KERNEL_BASE_VIRT)
     24  1.21.4.2      yamt . if ${KERNEL_BASE_PHYS} == ${KERNEL_BASE_VIRT}
     25  1.21.4.2      yamt CPPFLAGS+=-DKERNEL_BASES_EQUAL -DKERNEL_BASE_VOFFSET=0
     26  1.21.4.2      yamt . else
     27  1.21.4.2      yamt CPPFLAGS+=-DKERNEL_BASE_VOFFSET="(${KERNEL_BASE_VIRT}-${KERNEL_BASE_PHYS})"
     28  1.21.4.2      yamt . endif
     29  1.21.4.2      yamt .endif
     30  1.21.4.2      yamt 
     31      1.20      matt EXTRA_CLEAN+= ldscript tmp ${KERNELS:=.map}
     32      1.20      matt 
     33      1.15   thorpej .if defined(KERNEL_BASE_PHYS)
     34  1.21.4.2      yamt LINKTEXT=
     35  1.21.4.2      yamt KERNLDSCRIPT=	ldscript
     36  1.21.4.2      yamt EXTRA_LINKFLAGS+=	-T ldscript
     37      1.14       bsh 
     38      1.21  jakllsch # generate ldscript from common template
     39      1.18      matt ldscript: ${THISARM}/conf/ldscript.evbarm ${THISARM}/conf/Makefile.evbarm.inc Makefile ${BOARDMKFRAG}
     40      1.14       bsh 	echo ${KERNELS}
     41      1.19       apb 	${TOOL_SED} -e 's/@KERNEL_BASE_PHYS@/${KERNEL_BASE_PHYS}/' \
     42      1.14       bsh 	    -e 's/@KERNEL_BASE_VIRT@/${KERNEL_BASE_VIRT}/' \
     43      1.14       bsh 	    ${THISARM}/conf/ldscript.evbarm > tmp && mv tmp $@
     44      1.15   thorpej 
     45  1.21.4.2      yamt .else
     46  1.21.4.2      yamt LINKTEXT=	-Ttext ${LOADADDRESS}
     47      1.15   thorpej .endif	# KERNEL_BASE_PHYS
     48