Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/conf Create a RPI compatible image which cn ...



details:   https://anonhg.NetBSD.org/src/rev/001bd7e43a02
branches:  trunk
changeset: 450436:001bd7e43a02
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Apr 14 07:57:51 2019 +0000

description:
Create a RPI compatible image which cn be used with

kernel_address=0x10000040

in config.txt.

XXX alignment requirement needs fixing

diffstat:

 sys/arch/evbarm/conf/mk.generic |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 2ad8bb8298e1 -r 001bd7e43a02 sys/arch/evbarm/conf/mk.generic
--- a/sys/arch/evbarm/conf/mk.generic   Sun Apr 14 04:16:32 2019 +0000
+++ b/sys/arch/evbarm/conf/mk.generic   Sun Apr 14 07:57:51 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: mk.generic,v 1.7 2019/03/30 17:40:34 jmcneill Exp $
+#      $NetBSD: mk.generic,v 1.8 2019/04/14 07:57:51 skrll Exp $
 
 .include "$S/arch/arm/nvidia/tegra_xusb-fw.mk"
 
@@ -17,11 +17,16 @@
 MKUBOOTIMAGEARGS+=     -e 0
 MKUBOOTIMAGEARGS+=     -n "NetBSD/${BOARDTYPE:U${MACHINE_ARCH}} ${_OSRELEASE}"
 
+MKKNLIMG=              ${THISARM}/compile/rpi-mkknlimg.sh
+
 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;
+       ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS} $@.bin $@.ub; \
+       echo ${MKKNLIMG} $@.bin $@.img; \
+       ${HOST_SH} ${MKKNLIMG} $@.bin $@.img;
 
 EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin@}
 EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.ub@}
+EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.img@}



Home | Main Index | Thread Index | Old Index