MK option to build only system image programs

This commit is contained in:
Arun Thomas 2011-07-20 09:57:08 +02:00
parent afd132adc9
commit 3eb22ca4d1
3 changed files with 18 additions and 3 deletions

View file

@ -3,17 +3,23 @@
.include <bsd.own.mk>
.if ${MKIMAGEONLY} == "yes"
# memory driver must be last for ramdisk image
SUBDIR= at_wini bios_wini floppy log tty pci .WAIT ramdisk .WAIT memory
.else
.if ${COMPILER_TYPE} == "gnu"
SUBDIR = acpi
.endif
# memory driver must be last for ramdisk image
SUBDIR+= ahci amddev atl2 at_wini audio bios_wini dec21140A dp8390 dpeth \
e1000 filter floppy fxp hello lance log orinoco pci printer \
random readclock rtl8139 rtl8169 ti1225 tty \
.WAIT ramdisk .WAIT memory
# memory driver must be last for ramdisk image
IMAGE_SUBDIR= at_wini bios_wini floppy log tty pci .WAIT ramdisk .WAIT memory
.endif
.include <bsd.subdir.mk>

View file

@ -3,9 +3,15 @@
.include <bsd.own.mk>
.if ${MKIMAGEONLY} == "yes"
SUBDIR= ds init mfs pfs pm rs sched vfs vm
.else
SUBDIR= ds ext2 hgfs inet init ipc is iso9660fs \
mfs pfs pm procfs rs sched vfs vm devman
IMAGE_SUBDIR= ds init mfs pfs pm rs sched vfs vm
.endif
.include <bsd.subdir.mk>

View file

@ -770,6 +770,9 @@ _MKVARS.no= \
MKPCC MKPCCCMDS \
MKSOFTFLOAT MKSTRIPIDENT \
MKUNPRIVED MKUPDATE MKX11 MKZFS
#MINIX-specific vars
_MKVARS.no+= \
MKIMAGEONLY
.for var in ${_MKVARS.no}
${var}?=no
.endfor