diff --git a/distrib/common/Makefile.image b/distrib/common/Makefile.image index 4ce611db1b4c..1a55eda58bab 100644 --- a/distrib/common/Makefile.image +++ b/distrib/common/Makefile.image @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.image,v 1.43 2024/05/17 19:54:28 christos Exp $ +# $NetBSD: Makefile.image,v 1.44 2024/05/17 21:31:10 christos Exp $ # # Makefile snippet to build a tree from the provided lists, # and make an ffs file system image from that tree @@ -107,8 +107,7 @@ ${IMAGE}: ${WORKBUILT} ${IMAGEPREBUILD} .endif if [ "X${IMAGERUNTIME}" != "X" ]; then \ - release_destdir=${WORKDIR}; \ - cd $$release_destdir; \ + release_destdir=${CUROBJDIR}/${WORKDIR}; \ cd ${DESTDIR}; \ for imge in ${IMAGERUNTIME}; \ do \ @@ -117,7 +116,7 @@ ${IMAGE}: ${WORKBUILT} done; \ cd "${CUROBJDIR}"; \ fi - for i in ${IMAGERUNTIME} ${IMAGESPECEXTRA}; do \ + for i in ${IMAGESPECEXTRA}; do \ if [ -n "$$i" ] && [ -e ${WORKDIR}/$$i ]; then \ ${MAKESPEC} -d ${WORKDIR} $$i >> ${WORKSPEC}; \ fi; \ diff --git a/distrib/evbarm/instkernel/sshramdisk/Makefile b/distrib/evbarm/instkernel/sshramdisk/Makefile index 557dda81a480..3294640d166a 100644 --- a/distrib/evbarm/instkernel/sshramdisk/Makefile +++ b/distrib/evbarm/instkernel/sshramdisk/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.27 2024/05/17 20:26:48 christos Exp $ +# $NetBSD: Makefile,v 1.28 2024/05/17 21:31:10 christos Exp $ .include .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" @@ -30,6 +30,7 @@ IMAGEDEPENDS= ${CRUNCHBIN} \ ${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \ ${DISTRIBDIR}/common/services IMAGERUNTIME= libdata/firmware +IMAGESPECEXTRA= libdata # Use stubs to eliminate some large stuff from libc HACKSRC= ${DISTRIBDIR}/utils/libhack