From c8e720aaaeb6b1efe836459c30b0e1782ade5c2a Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Thu, 28 Feb 2019 23:00:47 +0000 Subject: [PATCH] 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. --- sys/modules/geom/geom_flashmap/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/modules/geom/geom_flashmap/Makefile b/sys/modules/geom/geom_flashmap/Makefile index 8b56c145ea5..97e4fd7337b 100644 --- a/sys/modules/geom/geom_flashmap/Makefile +++ b/sys/modules/geom/geom_flashmap/Makefile @@ -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