discover: Recognise and open LUKS encrypted partitions
[petitboot] / discover / Makefile.am
index f55f1cd39b77471bdb870914eef238c6ed78bd3b..bfe33fad142db16e5a4592541601efff1b9522ca 100644 (file)
@@ -28,8 +28,6 @@ discover_pb_discover_SOURCES = \
        discover/devmapper.h \
        discover/event.c \
        discover/event.h \
-       discover/params.c \
-       discover/params.h \
        discover/parser.c \
        discover/parser.h \
        discover/parser-conf.c \
@@ -52,17 +50,19 @@ discover_pb_discover_SOURCES = \
        discover/user-event.h \
        discover/kboot-parser.c \
        discover/yaboot-parser.c \
-       discover/pxe-parser.c
+       discover/pxe-parser.c \
+       discover/syslinux-parser.c
 
 discover_pb_discover_LDADD = \
        discover/grub2/grub2-parser.ro \
+       discover/native/native-parser.ro \
        discover/platform.ro \
        $(core_lib) \
        $(UDEV_LIBS)
 
 discover_pb_discover_LDFLAGS = \
        $(AM_LDFLAGS) \
-       -ldevmapper
+       $(DEVMAPPER_LIBS)
 
 discover_pb_discover_CPPFLAGS = \
        $(AM_CPPFLAGS) \
@@ -79,11 +79,18 @@ discover_platform_ro_SOURCES = \
        discover/ipmi.h \
        discover/dt.c \
        discover/dt.h \
-       discover/hostboot.h \
-       discover/platform-powerpc.c
+       discover/hostboot.h
 
-discover_platform_ro_CPPFLAGS = \
-       $(AM_CPPFLAGS)
+if PLATFORM_ARM64
+discover_platform_ro_SOURCES += discover/platform-arm64.c
+endif
+
+if PLATFORM_POWERPC
+discover_platform_ro_SOURCES += discover/platform-powerpc.c
+endif
+
+# Build dummy last to put it at the end of the platforms section.
+discover_platform_ro_SOURCES += discover/platform-dummy.c
 
 if ENABLE_MTD
 discover_platform_ro_SOURCES += \
@@ -95,5 +102,8 @@ discover_platform_ro_LDFLAGS = \
 
 endif
 
+discover_platform_ro_CPPFLAGS = \
+       $(AM_CPPFLAGS)
+
 discover_platform_ro_LINK = \
        $(LD) -r -o $@