Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/conf If MD ldscript is generated, give it dependency on ...
details: https://anonhg.NetBSD.org/src/rev/df832a2a93ea
branches: trunk
changeset: 339983:df832a2a93ea
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Wed Aug 19 05:46:11 2015 +0000
description:
If MD ldscript is generated, give it dependency on ${SYSTEM_OBJ}.
diffstat:
sys/conf/Makefile.kern.inc | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r b398fac9e7c8 -r df832a2a93ea sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc Wed Aug 19 04:53:03 2015 +0000
+++ b/sys/conf/Makefile.kern.inc Wed Aug 19 05:46:11 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.kern.inc,v 1.184 2015/05/01 02:00:41 nat Exp $
+# $NetBSD: Makefile.kern.inc,v 1.185 2015/08/19 05:46:11 uebayasi Exp $
#
# This file contains common `MI' targets and definitions and it is included
# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -243,6 +243,13 @@
${LD} -Map $@.map --cref ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}' '$${EXTRA_OBJ}' vers.o; \
${LD} -Map $@.map --cref ${LINKFLAGS} -o $@ ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
+# Give MD generated ldscript dependency on ${SYSTEM_OBJ}
+.if defined(KERNLDSCRIPT)
+.if target(${KERNLDSCRIPT})
+${KERNLDSCRIPT}: ${SYSTEM_OBJ}
+.endif
+.endif
+
TEXTADDR?= ${LOADADDRESS} # backwards compatibility
LINKTEXT?= ${TEXTADDR:C/.+/-Ttext &/}
LINKDATA?= ${DATAADDR:C/.+/-Tdata &/}
Home |
Main Index |
Thread Index |
Old Index