Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/shark/conf Write the rule of ldscript generation.
details: https://anonhg.NetBSD.org/src/rev/efe0140da7f3
branches: trunk
changeset: 810126:efe0140da7f3
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Wed Aug 19 05:47:38 2015 +0000
description:
Write the rule of ldscript generation.
diffstat:
sys/arch/shark/conf/Makefile.shark.inc | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
diffs (36 lines):
diff -r 802e74aae2d2 -r efe0140da7f3 sys/arch/shark/conf/Makefile.shark.inc
--- a/sys/arch/shark/conf/Makefile.shark.inc Wed Aug 19 05:46:11 2015 +0000
+++ b/sys/arch/shark/conf/Makefile.shark.inc Wed Aug 19 05:47:38 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.shark.inc,v 1.24 2015/03/03 09:23:02 martin Exp $
+# $NetBSD: Makefile.shark.inc,v 1.25 2015/08/19 05:47:38 uebayasi Exp $
CPPFLAGS+= -D${MACHINE}
CFLAGS+= -fno-unwind-tables
@@ -7,17 +7,21 @@
# Need to convert the kernel from ELF to a.out so that OpenFirmware
# can load it.
-LINKSCRIPT= -T ldscript
+KERNLDSCRIPT= ldscript
+EXTRA_CLEAN+= ${KERNLDSCRIPT}
+
+LINKSCRIPT= -T ${KERNLDSCRIPT}
LOADADDRESS= 0xF0000020
-SYSTEM_LD_HEAD_EXTRA+=; \
+ldscript: \
+ ${ARM}/conf/kern.ldscript.head \
+ ${ARM}/conf/kern.ldscript.tail \
+ $S/conf/mkldscript.sh \
+ ${SYSTEM_OBJ}
( cat ${ARM}/conf/kern.ldscript.head ; \
OBJDUMP=${OBJDUMP} ${HOST_SH} $S/conf/mkldscript.sh \
${SYSTEM_OBJ} ; \
cat ${ARM}/conf/kern.ldscript.tail ) > ldscript
-KERNLDSCRIPT= ${ARM}/conf/kern.ldscript.head \
- $S/conf/mkldscript.sh \
- ${ARM}/conf/kern.ldscript.tail
SYSTEM_LD_TAIL_EXTRA+=; \
echo "${OBJCOPY} ${OBJCOPY_ELF2AOUT_FLAGS} $@ $@.aout"; \
Home |
Main Index |
Thread Index |
Old Index