| @@ -1,28 +1,29 @@ | | | @@ -1,28 +1,29 @@ |
1 | # $NetBSD: Makefile,v 1.38 2019/12/29 18:26:18 christos Exp $ | | 1 | # $NetBSD: Makefile,v 1.39 2021/03/01 09:24:27 martin 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 | |
6 | .include <bsd.kernobj.mk> | | 6 | .include <bsd.kernobj.mk> |
7 | | | 7 | |
8 | IMAGE= miniroot.fs | | 8 | IMAGE= miniroot.fs |
9 | IMAGESIZE= 4200k | | 9 | IMAGESIZE= 4200k |
10 | MAKEFS_FLAGS+= -o density=8k | | 10 | MAKEFS_FLAGS+= -o density=8k |
11 | | | 11 | |
12 | KERNEL= ${KERNOBJDIR}/INSTALL/netbsd | | 12 | KERNEL= ${KERNOBJDIR}/INSTALL/netbsd |
13 | | | 13 | |
14 | WARNS= 1 | | 14 | WARNS= 1 |
15 | DBG= -Os -fno-unwind-tables | | 15 | DBG= -Os -fno-unwind-tables |
| | | 16 | USE_WIDECHAR= no |
16 | | | 17 | |
17 | CRUNCHBIN= instbin | | 18 | CRUNCHBIN= instbin |
18 | | | 19 | |
19 | LISTS= ${.CURDIR}/list | | 20 | LISTS= ${.CURDIR}/list |
20 | MTREECONF= ${.CURDIR}/mtree.conf | | 21 | MTREECONF= ${.CURDIR}/mtree.conf |
21 | IMAGEENDIAN= be | | 22 | IMAGEENDIAN= be |
22 | PARSELISTENV= KERNEL=${KERNEL} | | 23 | PARSELISTENV= KERNEL=${KERNEL} |
23 | MAKEDEVTARGETS= std md0 cd0 st0 st1 sd0 sd1 sd2 xd0 xy0 | | 24 | MAKEDEVTARGETS= std md0 cd0 st0 st1 sd0 sd1 sd2 xd0 xy0 |
24 | IMAGEDEPENDS= ${CRUNCHBIN} \ | | 25 | IMAGEDEPENDS= ${CRUNCHBIN} \ |
25 | ${KERNEL} \ | | 26 | ${KERNEL} \ |
26 | fstab install.md profile \ | | 27 | fstab install.md profile \ |
27 | ${DESTDIR}/dev/MAKEDEV ${DESTDIR}/dev/MAKEDEV.local \ | | 28 | ${DESTDIR}/dev/MAKEDEV ${DESTDIR}/dev/MAKEDEV.local \ |
28 | ${DESTDIR}/etc/group \ | | 29 | ${DESTDIR}/etc/group \ |
| @@ -35,26 +36,33 @@ IMAGEDEPENDS= ${CRUNCHBIN} \ | | | @@ -35,26 +36,33 @@ IMAGEDEPENDS= ${CRUNCHBIN} \ |
35 | ${DESTDIR}/usr/mdec/bootxx ${DESTDIR}/usr/mdec/bootyy \ | | 36 | ${DESTDIR}/usr/mdec/bootxx ${DESTDIR}/usr/mdec/bootyy \ |
36 | ${DESTDIR}/usr/mdec/netboot ${DESTDIR}/usr/mdec/tapeboot \ | | 37 | ${DESTDIR}/usr/mdec/netboot ${DESTDIR}/usr/mdec/tapeboot \ |
37 | ${DESTDIR}/usr/mdec/ufsboot \ | | 38 | ${DESTDIR}/usr/mdec/ufsboot \ |
38 | ${DISTRIBDIR}/miniroot/install.sh \ | | 39 | ${DISTRIBDIR}/miniroot/install.sh \ |
39 | ${DISTRIBDIR}/miniroot/upgrade.sh \ | | 40 | ${DISTRIBDIR}/miniroot/upgrade.sh \ |
40 | install.sub | | 41 | install.sub |
41 | | | 42 | |
42 | IMAGEPOSTBUILD= ${TOOL_INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} \ | | 43 | IMAGEPOSTBUILD= ${TOOL_INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} \ |
43 | ${DESTDIR}/usr/mdec/bootxx /ufsboot | | 44 | ${DESTDIR}/usr/mdec/bootxx /ufsboot |
44 | IMAGE_RELEASEDIR= installation/miniroot | | 45 | IMAGE_RELEASEDIR= installation/miniroot |
45 | | | 46 | |
46 | # Use stubs to eliminate some large stuff from libc | | 47 | # Use stubs to eliminate some large stuff from libc |
47 | HACKSRC= ${DISTRIBDIR}/utils/libhack | | 48 | HACKSRC= ${DISTRIBDIR}/utils/libhack |
| | | 49 | HACK_CURSES= yes |
| | | 50 | .MAKEFLAGS+= USE_WIDECHAR=no |
| | | 51 | .include "${HACKSRC}/Makefile.inc" |
| | | 52 | ${CRUNCHBIN}: libhack.o |
| | | 53 | |
| | | 54 | # Use stubs to eliminate some large stuff from libc |
| | | 55 | HACKSRC= ${DISTRIBDIR}/utils/libhack |
48 | .include "${HACKSRC}/Makefile.inc" | | 56 | .include "${HACKSRC}/Makefile.inc" |
49 | ${CRUNCHBIN}: libhack.o | | 57 | ${CRUNCHBIN}: libhack.o |
50 | | | 58 | |
51 | install.sub: ${DISTRIBDIR}/miniroot/install.sub | | 59 | install.sub: ${DISTRIBDIR}/miniroot/install.sub |
52 | ${TOOL_SED} -e "/^VERSION=/s/=.*/=${DISTRIBREV}/" < $? > $@ | | 60 | ${TOOL_SED} -e "/^VERSION=/s/=.*/=${DISTRIBREV}/" < $? > $@ |
53 | | | 61 | |
54 | CLEANFILES+= install.sub | | 62 | CLEANFILES+= install.sub |
55 | | | 63 | |
56 | fstab: .PHONY | | 64 | fstab: .PHONY |
57 | | | 65 | |
58 | .include "${DISTRIBDIR}/common/Makefile.crunch" | | 66 | .include "${DISTRIBDIR}/common/Makefile.crunch" |
59 | .include "${DISTRIBDIR}/common/Makefile.makedev" | | 67 | .include "${DISTRIBDIR}/common/Makefile.makedev" |
60 | .include "${DISTRIBDIR}/common/Makefile.image" | | 68 | .include "${DISTRIBDIR}/common/Makefile.image" |