SUBDIR+= ahci amddev atl2 at_wini audio dec21140A dp8390 dpeth \
e1000 fbd filter floppy fxp hello lance log orinoco pci printer \
random readclock rtl8139 rtl8169 ti1225 tty vbox acpi \
- ext2_ramdisk ramdisk memory
+ memory
+.endif
+.if ${MKBUILDEXT2RD} != "yes"
+SUBDIR+= ramdisk
+.else
+SUBDIR+= ramdisk_ext2
.endif
.include <bsd.subdir.mk>
# Makefile for memory driver (MEMORY)
+
PROG= memory
SRCS= memory.c imgrd.mfs
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
+MKBUILDEXT2RD?= no
-RAMDISK_PATH?= ${NETBSDSRCDIR}/drivers/ramdisk
+.if ${MKBUILDEXT2RD} != "yes"
+RAMDISK_PATH= ${NETBSDSRCDIR}/drivers/ramdisk
+.else
+RAMDISK_PATH= ${NETBSDSRCDIR}/drivers/ramdisk_ext2
+.endif
DPADD+= ${LIBBLOCKDRIVER} ${LIBCHARDRIVER} ${LIBSYS}
LDADD+= -lblockdriver -lchardriver -lsys
BINFILES = dev2name mount sh service \
sysenv
-SBINFILES = ahci at_wini ext2 floppy mfs procfs \
+SBINFILES = ahci at_wini ext2 floppy procfs \
fsck.mfs
ETCFILES = system.conf mtab passwd pwd.db spwd.db master.passwd \
# we have to make sure they are already installed
# (that's a little bit to coarse grain though...)
install_files:
- ${MAKE} -C ${MINIXSRCDIR}/commands install
- ${MAKE} -C ${MINIXSRCDIR}/usr.bin install
- ${MAKE} -C ${MINIXSRCDIR}/usr.sbin install
- ${MAKE} -C ${MINIXSRCDIR}/usr.bin install
- ${MAKE} -C ${MINIXSRCDIR}/sbin install
- ${MAKE} -C ${MINIXSRCDIR}/bin install
- ${MAKE} -C ${MINIXSRCDIR}/servers install
- ${MAKE} -C ${MINIXSRCDIR}/drivers/acpi install
- ${MAKE} -C ${MINIXSRCDIR}/drivers/ahci install
- ${MAKE} -C ${MINIXSRCDIR}/drivers/at_wini install
- ${MAKE} -C ${MINIXSRCDIR}/drivers/floppy install
- ${MAKE} -C ${MINIXSRCDIR}/drivers/pci install
+ ${MAKE} -C ${NETBSDSRCDIR}/commands install
+ ${MAKE} -C ${NETBSDSRCDIR}/usr.bin install
+ ${MAKE} -C ${NETBSDSRCDIR}/usr.sbin install
+ ${MAKE} -C ${NETBSDSRCDIR}/usr.bin install
+ ${MAKE} -C ${NETBSDSRCDIR}/sbin install
+ ${MAKE} -C ${NETBSDSRCDIR}/bin install
+ ${MAKE} -C ${NETBSDSRCDIR}/servers install
+ ${MAKE} -C ${NETBSDSRCDIR}/drivers/acpi install
+ ${MAKE} -C ${NETBSDSRCDIR}/drivers/ahci install
+ ${MAKE} -C ${NETBSDSRCDIR}/drivers/at_wini install
+ ${MAKE} -C ${NETBSDSRCDIR}/drivers/floppy install
+ ${MAKE} -C ${NETBSDSRCDIR}/drivers/pci install
image.d: install_files