Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbarm/conf Supply CPP define KERNEL_BASE_VOFFSET w...



details:   https://anonhg.NetBSD.org/src/rev/2f4ee4a0215c
branches:  trunk
changeset: 328633:2f4ee4a0215c
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Apr 11 02:36:43 2014 +0000

description:
Supply CPP define KERNEL_BASE_VOFFSET which is the physical to virtual
offset of the kernel.

diffstat:

 sys/arch/evbarm/conf/Makefile.evbarm.inc |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (25 lines):

diff -r efedb109e167 -r 2f4ee4a0215c sys/arch/evbarm/conf/Makefile.evbarm.inc
--- a/sys/arch/evbarm/conf/Makefile.evbarm.inc  Fri Apr 11 02:27:20 2014 +0000
+++ b/sys/arch/evbarm/conf/Makefile.evbarm.inc  Fri Apr 11 02:36:43 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.evbarm.inc,v 1.29 2014/03/29 14:04:31 matt Exp $
+#      $NetBSD: Makefile.evbarm.inc,v 1.30 2014/04/11 02:36:43 matt Exp $
 
 #
 # If this is a install kernel and the ramdisk image exists in the object
@@ -20,9 +20,12 @@
 .include "${BOARDMKFRAG}"
 .endif
 
-.if defined(KERNEL_BASE_PHYS) && defined(KERNEL_BASE_VIRT) \
-    && ${KERNEL_BASE_PHYS} == ${KERNEL_BASE_VIRT}
-CPPFLAGS+=-DKERNEL_BASES_EQUAL
+.if defined(KERNEL_BASE_PHYS) && defined(KERNEL_BASE_VIRT)
+. if ${KERNEL_BASE_PHYS} == ${KERNEL_BASE_VIRT}
+CPPFLAGS+=-DKERNEL_BASES_EQUAL -DKERNEL_BASE_VOFFSET=0
+. else
+CPPFLAGS+=-DKERNEL_BASE_VOFFSET="(${KERNEL_BASE_VIRT}-${KERNEL_BASE_PHYS})"
+. endif
 .endif
 
 EXTRA_CLEAN+= ldscript tmp ${KERNELS:=.map}



Home | Main Index | Thread Index | Old Index