Make gzip'ed uboot images.
This commit is contained in:
parent
638497ceb6
commit
b935d50fc4
@ -1,14 +1,16 @@
|
||||
# $NetBSD: mk.beagle,v 1.6 2012/07/14 06:55:18 matt Exp $
|
||||
CPPFLAGS+= -mcpu=cortex-a8
|
||||
# $NetBSD: mk.beagle,v 1.7 2012/08/20 12:44:31 matt Exp $
|
||||
CPPFLAGS+= -mcpu=cortex-a8
|
||||
|
||||
SYSTEM_FIRST_OBJ= beagle_start.o
|
||||
SYSTEM_FIRST_SFILE= ${THISARM}/beagle/beagle_start.S
|
||||
|
||||
_OSRELEASE!= ${HOST_SH} $S/conf/osrelease.sh
|
||||
|
||||
MKUBOOTIMAGEARGS= -A arm -T kernel -C none
|
||||
MKUBOOTIMAGEARGS= -A arm -T kernel
|
||||
MKUBOOTIMAGEARGS+= -a $(LOADADDRESS) -e $(LOADADDRESS)
|
||||
MKUBOOTIMAGEARGS+= -n "NetBSD/$(BOARDTYPE) ${_OSRELEASE}"
|
||||
MKUBOOTIMAGEARGS_NONE= ${MKUBOOTIMAGEARGS} -C none
|
||||
MKUBOOTIMAGEARGS_GZ= ${MKUBOOTIMAGEARGS} -C gz
|
||||
|
||||
KERNEL_BASE_PHYS=$(LOADADDRESS)
|
||||
KERNEL_BASE_VIRT=$(LOADADDRESS)
|
||||
@ -16,9 +18,14 @@ KERNEL_BASE_VIRT=$(LOADADDRESS)
|
||||
SYSTEM_LD_TAIL_EXTRA+=; \
|
||||
echo ${OBJCOPY} -S -O binary $@ $@.bin; \
|
||||
${OBJCOPY} -S -O binary $@ $@.bin; \
|
||||
echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS} $@.bin $@.ub; \
|
||||
${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS} $@.bin $@.ub; \
|
||||
echo
|
||||
echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@.bin $@.ub; \
|
||||
${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@.bin $@.ub; \
|
||||
echo ${TOOL_GZIP} -c $@.bin > $@.bin.gz; \
|
||||
${TOOL_GZIP} -c $@.bin > $@.bin.gz; \
|
||||
echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} $@.bin.gz $@.gz.ub; \
|
||||
${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} $@.bin.gz $@.gz.ub
|
||||
|
||||
EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin@}
|
||||
EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.ub@}
|
||||
EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin.gz@}
|
||||
EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.gz.ub@}
|
||||
|
Loading…
Reference in New Issue
Block a user