svn commit: r344675 - head/sys/modules/geom/geom_flashmap

Justin Hibbits jhibbits at FreeBSD.org
Thu Feb 28 23:00:48 UTC 2019


Author: jhibbits
Date: Thu Feb 28 23:00:47 2019
New Revision: 344675
URL: https://svnweb.freebsd.org/changeset/base/344675

Log:
  GEOM: Add fdt_slicer to the GEOM flashmap module for fdt-based platforms
  
  geom_flashmap depends on a slicer being available in order to do any
  work.  On fdt platforms this is provided by fdt_slicer, but this needs
  to be available.  Often it's compiled into the kernel for platforms that
  boot from the relevant media, but this is not always the case.  Add the
  file to the geom_flashmap module so that it can be used on platforms
  which don't always need this functionality available.

Modified:
  head/sys/modules/geom/geom_flashmap/Makefile

Modified: head/sys/modules/geom/geom_flashmap/Makefile
==============================================================================
--- head/sys/modules/geom/geom_flashmap/Makefile	Thu Feb 28 22:57:09 2019	(r344674)
+++ head/sys/modules/geom/geom_flashmap/Makefile	Thu Feb 28 23:00:47 2019	(r344675)
@@ -5,4 +5,9 @@
 KMOD=	geom_flashmap
 SRCS=	geom_flashmap.c
 
+.if !empty(OPT_FDT)
+.PATH:	${SRCTOP}/sys/dev/fdt
+SRCS+=	fdt_slicer.c
+.endif
+
 .include <bsd.kmod.mk>


More information about the svn-src-head mailing list