Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbmips/conf Enhance NEED_UBOOTIMAGE so that NEED_U...



details:   https://anonhg.NetBSD.org/src/rev/6b1f8117fca3
branches:  trunk
changeset: 767189:6b1f8117fca3
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Jul 10 23:33:59 2011 +0000

description:
Enhance NEED_UBOOTIMAGE so that NEED_UBOOTIMAGE=gz inserts a gzipp'ed image.

diffstat:

 sys/arch/evbmips/conf/Makefile.evbmips.inc |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 8908fcc50155 -r 6b1f8117fca3 sys/arch/evbmips/conf/Makefile.evbmips.inc
--- a/sys/arch/evbmips/conf/Makefile.evbmips.inc        Sun Jul 10 23:32:03 2011 +0000
+++ b/sys/arch/evbmips/conf/Makefile.evbmips.inc        Sun Jul 10 23:33:59 2011 +0000
@@ -29,11 +29,23 @@
 MKUBOOTIMAGEARGS+=      -a ${TEXTADDR:C/....$/0000/} -e $(TEXTADDR)
 MKUBOOTIMAGEARGS+=      -n "$(MACHINE) ${_OSRELEASE} ($(KERNEL_BUILD:T))"
 
+.if ${NEED_UBOOTIMAGE} == "gz"
+MKUBOOTIMAGEARGS+=     -C gz
+
+SYSTEM_LD_TAIL_EXTRA+=; \
+       echo ${TOOL_GZIP} -9cn $@.bin '>' $@.bin.gz; \
+       ${TOOL_GZIP} -9cn $@.bin > $@.bin.gz; \
+       echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS} $@.bin.gz $@.ub; \
+       ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS} $@.bin.gz $@.ub
+
+EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin.gz@}
+.else
 SYSTEM_LD_TAIL_EXTRA+=; \
        echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS} $@.bin $@.ub; \
        ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS} $@.bin $@.ub; \
 
+.endif
+
 EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.ub@}
 .endif
 .endif
-



Home | Main Index | Thread Index | Old Index