Sat May 4 00:41:06 2024 UTC (29d)
Add dhcpcd to riscv ramdisk, etc.

Be consistent with configs for pretty much every other (modern) arch
and provide dhcpcd, lest someone end up using this image and then be
surprised (as happened relatively recently with evbmips images). This
means of course we also need bpf.

While here, add a few wedge devices, too. This aligns us with the
device definitions evbmips uses (that appears to be where the riscv
Makefile was copied from back in 2015).


(gutteridge)
diff -r1.3 -r1.4 src/distrib/riscv/ramdisk/Makefile

cvs diff -r1.3 -r1.4 src/distrib/riscv/ramdisk/Makefile (expand / switch to unified diff)

--- src/distrib/riscv/ramdisk/Makefile 2023/06/14 23:03:19 1.3
+++ src/distrib/riscv/ramdisk/Makefile 2024/05/04 00:41:06 1.4
@@ -1,38 +1,40 @@ @@ -1,38 +1,40 @@
1# $NetBSD: Makefile,v 1.3 2023/06/14 23:03:19 gutteridge Exp $ 1# $NetBSD: Makefile,v 1.4 2024/05/04 00:41:06 gutteridge Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" 4.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
5 5
6IMAGE= ramdisk.fs 6IMAGE= ramdisk.fs
7IMAGESIZE= 4096k 7IMAGESIZE= 4096k
8MAKEFS_FLAGS+= -f 15 8MAKEFS_FLAGS+= -f 15
9 9
10WARNS= 1 10WARNS= 1
11DBG= -Os 11DBG= -Os
12 12
13CRUNCHBIN= ramdiskbin 13CRUNCHBIN= ramdiskbin
14LISTS= ${.CURDIR}/list 14LISTS= ${.CURDIR}/list
15#LISTS+= ${DISTRIBDIR}/common/list.sysinst 15#LISTS+= ${DISTRIBDIR}/common/list.sysinst
16MTREECONF= ${DISTRIBDIR}/common/mtree.common 16MTREECONF= ${DISTRIBDIR}/common/mtree.common
17IMAGEENDIAN= le 17IMAGEENDIAN= le
18 18
19IMAGEDEPENDS= ${CRUNCHBIN} \ 19IMAGEDEPENDS= ${CRUNCHBIN} \
20 dot.profile \ 20 dot.profile \
21 ${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \ 21 ${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \
22 ${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \ 22 ${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \
23 ${DISTRIBDIR}/common/services 23 ${DISTRIBDIR}/common/services
24 24
25MAKEDEVTARGETS= std md0 wd0 wd1 wd2 wd3 cd0 cd1 sd0 sd1 sd2 sd3 st0 ipty 25MAKEDEVTARGETS= std md0 wd0 wd1 wd2 wd3 cd0 cd1 sd0 sd1 sd2 sd3 st0 ipty \
 26 bpf dk0 dk1 dk2 dk3
26 27
27# Use stubs to eliminate some large stuff from libc 28# Use stubs to eliminate some large stuff from libc
28HACKSRC= ${DISTRIBDIR}/utils/libhack 29HACKSRC= ${DISTRIBDIR}/utils/libhack
29.include "${HACKSRC}/Makefile.inc" 30.include "${HACKSRC}/Makefile.inc"
30${CRUNCHBIN}: libhack.o 31${CRUNCHBIN}: libhack.o
31 32
32.include "${DISTRIBDIR}/common/Makefile.crunch" 33.include "${DISTRIBDIR}/common/Makefile.crunch"
 34.include "${DISTRIBDIR}/common/Makefile.dhcpcd"
33.include "${DISTRIBDIR}/common/Makefile.makedev" 35.include "${DISTRIBDIR}/common/Makefile.makedev"
34.include "${DISTRIBDIR}/common/Makefile.image" 36.include "${DISTRIBDIR}/common/Makefile.image"
35 37
36release: 38release:
37 39
38.include <bsd.prog.mk> 40.include <bsd.prog.mk>