configure: Add check for UI build
[petitboot] / utils / Makefile.am
index 7c92f2009b80a96f4e1b900bb0273db980eede0a..a523430b54df4c50787a6e625a1aa926dd2e86c3 100644 (file)
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 #
 
-dist_sbin_SCRIPTS += utils/pb-udhcpc
-dist_pkglibexec_SCRIPTS = utils/pb-console utils/pb-sysinfo
-sbin_PROGRAMS += utils/pb-event
+dist_sbin_SCRIPTS += utils/pb-udhcpc utils/pb-plugin utils/pb-sos \
+                    utils/pb-exec utils/scsi-rescan
+dist_pkglibexec_SCRIPTS = utils/pb-console
+sbin_PROGRAMS += utils/pb-event utils/pb-config
 
-utils_pb_event_SOURCES = utils/pb-event.c
+utils_pb_config_LDADD = $(top_builddir)/lib/libpbcore.la \
+                 $(top_builddir)/discover/platform.ro
+
+utils_hooks_30_dtb_updates_SOURCES = utils/hooks/30-dtb-updates.c
+utils_hooks_30_dtb_updates_LDADD = $(top_builddir)/lib/libpbcore.la \
+               $(FDT_LIBS)
+
+if HAVE_LIBFDT
+noinst_PROGRAMS += \
+       utils/hooks/30-dtb-updates
+endif
 
 dist_pkgdata_DATA = \
        utils/kboot.conf.sample \
@@ -24,5 +35,4 @@ dist_pkgdata_DATA = \
        utils/logrotate.conf \
        utils/hooks/01-create-default-dtb \
        utils/hooks/20-update-dtb-sample \
-       utils/hooks/20-set-stdout \
        utils/hooks/90-sort-dtb