blob: 687d1e88a3ac93349fd54e6e84fab12b1114ff44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# $NetBSD: Makefile,v 1.53 2021/05/25 10:58:41 martin Exp $
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
IMAGE= ramdisk.fs
# This must be kept in sync with config option MEMORY_DISK_ROOT_SIZE in
# src/sys/arch/macppc/conf/INSTALL
# src/sys/arch/macppc/conf/INSTALL_601
# src/sys/arch/macppc/conf/GENERIC_MD
IMAGESIZE= 2880k
MAKEFS_FLAGS+= -f 15
WARNS= 1
# No point in using 64bit binaries (if building for MACHINE_ARCH=powerpc64)
# on the ramdisk, keep it small
DBG= -Os -m32
HACK_LD_FLAGS= -m elf32ppc_nbsd
LDFLAGS+= -m32 -Wl,-melf32ppc_nbsd
CRUNCHBIN= ramdiskbin
CRUNCHENV+= LDFLAGS=${LDFLAGS:Q}
LISTS= ${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst
MTREECONF= ${DISTRIBDIR}/common/mtree.common
IMAGEENDIAN= be
MAKEDEVTARGETS= floppy
IMAGEDEPENDS= ${CRUNCHBIN} \
dot.profile \
${DESTDIR}/usr/mdec/ofwboot ${DESTDIR}/usr/mdec/bootxx \
${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \
${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \
${DISTRIBDIR}/common/services
SMALLPROG_INET6=1
.if ${USE_INET6} != "no"
LISTS+= ${DISTRIBDIR}/common/list.inet6
.endif
# Use stubs to eliminate some large stuff from libc
HACKSRC= ${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc"
${CRUNCHBIN}: libhack.o
.include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.dhcpcd"
.include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image"
release:
.include <bsd.prog.mk>
|