Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbppc/conf Use mkubootimage, if obs600.
details: https://anonhg.NetBSD.org/src/rev/d827012b959e
branches: trunk
changeset: 785556:d827012b959e
user: kiyohara <kiyohara%NetBSD.org@localhost>
date: Wed Mar 20 06:35:49 2013 +0000
description:
Use mkubootimage, if obs600.
diffstat:
sys/arch/evbppc/conf/Makefile.obs405.inc | 21 +++++++++++++++++++--
1 files changed, 19 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r 23d71d840ac8 -r d827012b959e sys/arch/evbppc/conf/Makefile.obs405.inc
--- a/sys/arch/evbppc/conf/Makefile.obs405.inc Wed Mar 20 00:29:46 2013 +0000
+++ b/sys/arch/evbppc/conf/Makefile.obs405.inc Wed Mar 20 06:35:49 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.obs405.inc,v 1.6 2010/10/30 03:46:03 uebayasi Exp $
+# $NetBSD: Makefile.obs405.inc,v 1.7 2013/03/20 06:35:49 kiyohara Exp $
CFLAGS+=-mcpu=405
AFLAGS+=-mcpu=405
@@ -41,8 +41,25 @@
SYSTEM_FIRST_OBJ= obs600_locore.o
SYSTEM_FIRST_SFILE= ${THISPPC}/obs405/obs600_locore.S
+.if ${USETOOLS} == "yes"
+MKUBOOTIMAGE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkubootimage
+.else
+MKUBOOTIMAGE= mkubootimage
+.endif
+MKUBOOTIMAGEARGS= -A powerpc -T kernel
+MKUBOOTIMAGEARGS+= -a $(TEXTADDR)
+MKUBOOTIMAGEARGS+= -n "NetBSD/openblocks600 ${_OSRELEASE}"
+MKUBOOTIMAGEARGS_NONE= ${MKUBOOTIMAGEARGS} -C none
+MKUBOOTIMAGEARGS_GZ= ${MKUBOOTIMAGEARGS} -C gz
+
SYSTEM_LD_TAIL_EXTRA+=; \
echo ${OBJCOPY} -S -O binary $@ $@.bin; \
- ${OBJCOPY} -S -O binary $@ $@.bin;
+ ${OBJCOPY} -S -O binary $@ $@.bin; \
+ echo "gzip -c $@.bin > $@.bin.gz"; \
+ gzip -c $@.bin > $@.bin.gz; \
+ echo ${MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} $@.bin.gz $@.gz.ub; \
+ ${MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} $@.bin.gz $@.gz.ub; \
+ echo ${MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@.bin $@.ub; \
+ ${MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@.bin $@.ub;
.endif
Home |
Main Index |
Thread Index |
Old Index