# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ACLOCAL_AMFLAGS = -I m4
+
SUBDIRS = src daemon examples
EXTRA_DIST = make-initramfs.sh
fsdir = $(libdir)/guestfs
-fs_DATA = initramfs.$(REPO).$(host_cpu).img vmlinuz.$(REPO).$(host_cpu)
+INITRAMFSIMG = initramfs.$(REPO).$(host_cpu).img
+VMLINUZ = vmlinuz.$(REPO).$(host_cpu)
+
+fs_DATA = $(INITRAMFSIMG) $(VMLINUZ)
-$(fs_DATA): make-initramfs.sh.in daemon/guestfsd
+$(VMLINUZ) $(INITRAMFSIMG): initramfs.timestamp
+
+initramfs.timestamp: make-initramfs.sh.in daemon/guestfsd
+ rm -f $@
$(builddir)/make-initramfs.sh
+ touch $@
.PHONY: daemon/guestfsd
# Make clean.
-CLEANFILES = $(fs_DATA)
+CLEANFILES = $(fs_DATA) initramfs.timestamp
clean-local:
rm -rf initramfs
+
+# Test-boot the image.
+
+test-boot-image:
+ rm -f emptydisk
+ dd if=/dev/zero of=emptydisk bs=1024 count=1440
+ echo 0, | sfdisk -C 80 -H 2 -S 18 emptydisk
+ qemu-system-$(host_cpu) \
+ -m 384 \
+ -kernel $(VMLINUZ) -initrd $(INITRAMFSIMG) \
+ -hda emptydisk -boot c
+ rm -f emptydisk
make install
+
Notes on cross-architecture support
----------------------------------------------------------------------
guests may not be possible.
To enable this requires work for cross-architecture and 32-on-64
-support in febootstrap.
+support in febootstrap, fakeroot and fakechroot.
The daemon/ directory contains its own configure script. This is so
that in future we will be able to cross-compile the daemon.
+Mirroring tip
+----------------------------------------------------------------------
+
+Having a local Fedora mirror makes a massive difference to the time it
+takes to build and rebuild initramfs images.
+
+Failing that, use squid to cache yum downloads, but read this first:
+https://lists.dulug.duke.edu/pipermail/yum/2006-August/009041.html
+(In brief, because yum chooses random mirrors each time, squid doesn't
+work very well with default yum configuration. To get around this,
+choose a Fedora mirror which is close to you, set this with
+'./configure --with-mirror=[...]', and then proxy the whole lot
+through squid by setting http_proxy environment variable).
+
+
Copyright and license information
----------------------------------------------------------------------
AC_INIT([libguestfs],[0.2])
AM_INIT_AUTOMAKE
+
+AC_CONFIG_MACRO_DIR([m4])
+
AC_PROG_LIBTOOL
dnl Check for basic C environment.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ACLOCAL_AMFLAGS = -I m4
\ No newline at end of file
AC_INIT([libguestfs-daemon],[0.2])
AM_INIT_AUTOMAKE
+AC_CONFIG_MACRO_DIR([m4])
+
dnl If the user specified --enable-32bit, then force the C compiler
dnl to build 32 bit binaries (gcc -m32).
AC_ARG_ENABLE([32bit],