diff options
author | Marcel Moolenaar <marcel@FreeBSD.org> | 2009-12-13 01:20:32 +0000 |
---|---|---|
committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2009-12-13 01:20:32 +0000 |
commit | 066b1a5c7bda073983abfd26c58f78fd353b6e95 (patch) | |
tree | 8b41965165cdcaa7d6edfef54a62a29a4302c63e /sys/boot/common/Makefile.inc | |
parent | 0966baf709cee030d04491a02d2d78fb05f5e504 (diff) | |
download | src-066b1a5c7bda073983abfd26c58f78fd353b6e95.tar.gz src-066b1a5c7bda073983abfd26c58f78fd353b6e95.zip |
Add support for memory disk (md). The size of the memory disk
is determined by MD_IMAGE_SIZE. A file system can be embedded
into the loader with /sys/tools/embed_mfs.sh.
Note that md.c is not included when MD_IMAGE_SIZE is not set.
Notes
Notes:
svn path=/head/; revision=200460
Diffstat (limited to 'sys/boot/common/Makefile.inc')
-rw-r--r-- | sys/boot/common/Makefile.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/boot/common/Makefile.inc b/sys/boot/common/Makefile.inc index 1f31aa9b601d..bb0d12098601 100644 --- a/sys/boot/common/Makefile.inc +++ b/sys/boot/common/Makefile.inc @@ -23,6 +23,11 @@ SRCS+= dev_net.c SRCS+= bcache.c .endif +.if defined(MD_IMAGE_SIZE) +CFLAGS+= -DMD_IMAGE_SIZE=${MD_IMAGE_SIZE} +SRCS+= md.c +.endif + # Machine-independant ISA PnP .if defined(HAVE_ISABUS) SRCS+= isapnp.c |