X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=appliance%2FMakefile.am;h=d692c7f4d67b3aac52a0f9ee65f1c5b3bd6ff5f5;hb=8736b6fa7173ddc33687c4bd9e3fb22d65922fd1;hp=3362992c0875b6b77d303931b20127275c26dedc;hpb=414aa67f2bcbbc5009b92f32611aa9196836736b;p=libguestfs.git diff --git a/appliance/Makefile.am b/appliance/Makefile.am index 3362992..d692c7f 100644 --- a/appliance/Makefile.am +++ b/appliance/Makefile.am @@ -16,7 +16,12 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. EXTRA_DIST = \ - make.sh update.sh supermin-split.sh supermin-make.sh + make.sh update.sh supermin-split.sh supermin-make.sh \ + libguestfs-supermin-helper \ + kmod.whitelist \ + kmod.whitelist.in \ + packagelist.in \ + init # Build the root filesystem (appliance). # Currently this is arch-dependent, so it seems like putting it in @@ -35,7 +40,7 @@ fs_DATA = $(APPLIANCE_FILES) APPLIANCE_FILES = $(INITRAMFSIMG) $(VMLINUZ) if SUPERMIN APPLIANCE_FILES += $(SUPERMINIMG) $(SUPERMINFILES) kmod.whitelist -bin_SCRIPTS = guestfs-supermin-helper +bin_SCRIPTS = libguestfs-supermin-helper endif # Don't change these names - they must be the same as in '*.sh' scripts. @@ -49,7 +54,7 @@ endif # This is for building the normal appliance: $(INITRAMFSIMG) $(VMLINUZ): $(top_builddir)/initramfs/fakeroot.log -$(top_builddir)/initramfs/fakeroot.log: make.sh kmod.whitelist +$(top_builddir)/initramfs/fakeroot.log: make.sh kmod.whitelist packagelist init -mv $(INITRAMFSIMG) $(INITRAMFSIMG).bak -mv $(VMLINUZ) $(VMLINUZ).bak if ! bash make.sh; then rm -f $@; exit 1; fi @@ -62,6 +67,10 @@ $(INITRAMFSIMG): $(top_builddir)/initramfs/fakeroot.log $(top_builddir)/daemon/g kmod.whitelist: kmod.whitelist.in grep -v '^[[:space:]]*$$' < $< | grep -v '^#' > $@ +packagelist: packagelist.in + cpp -undef -DREDHAT=1 < $< | \ + grep -v '^[[:space:]]*$$' | grep -v '^#' > $@ + # This is for building the supermin appliance. It has to be enabled # specifically with './configure --enable-supermin'. You really need # to read the README file. @@ -89,7 +98,7 @@ endif cd .. && ./config.status appliance/$@ chmod +x $@ -guestfs-supermin-helper: guestfs-supermin-helper.in +libguestfs-supermin-helper: libguestfs-supermin-helper.in cd .. && ./config.status appliance/$@ chmod +x $@