discover: Update to reflect generic signed boot API
[petitboot] / discover / Makefile.am
index 7808110811cb00654f5605a51031235f780be568..3992a6659b3e7c5426b1a0be4c8b7e03b1a6bcf1 100644 (file)
@@ -24,6 +24,8 @@ discover_pb_discover_SOURCES = \
        discover/device-handler.h \
        discover/discover-server.c \
        discover/discover-server.h \
+       discover/devmapper.c \
+       discover/devmapper.h \
        discover/event.c \
        discover/event.h \
        discover/params.c \
@@ -50,7 +52,8 @@ 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 \
@@ -58,6 +61,10 @@ discover_pb_discover_LDADD = \
        $(core_lib) \
        $(UDEV_LIBS)
 
+discover_pb_discover_LDFLAGS = \
+       $(AM_LDFLAGS) \
+       $(DEVMAPPER_LIBS)
+
 discover_pb_discover_CPPFLAGS = \
        $(AM_CPPFLAGS) \
        -DLOCAL_STATE_DIR='"$(localstatedir)"' \
@@ -73,7 +80,21 @@ discover_platform_ro_SOURCES = \
        discover/ipmi.h \
        discover/dt.c \
        discover/dt.h \
+       discover/hostboot.h \
        discover/platform-powerpc.c
 
+discover_platform_ro_CPPFLAGS = \
+       $(AM_CPPFLAGS)
+
+if ENABLE_MTD
+discover_platform_ro_SOURCES += \
+       discover/hostboot.c
+
+discover_platform_ro_LDFLAGS = \
+       $(core_lib) \
+       $(UDEV_LIBS)
+
+endif
+
 discover_platform_ro_LINK = \
        $(LD) -r -o $@