Add RPMFLAGS for kernel.
[build.git] / planetlab.mk
index 59191c5..290e373 100644 (file)
@@ -31,13 +31,14 @@ endif
 # so the source rpm is created by running make srpm in the codebase
 #
 
-kernel-MODULES := linux-2.6
-kernel-SPEC := kernel-2.6.spec
+kernel-MODULES := linux-3
+kernel-DEVEL-RPMS += gettext elfutils-devel
+kernel-SPEC := kernel.spec
 kernel-BUILD-FROM-SRPM := yes
 ifeq "$(HOSTARCH)" "i386"
-kernel-RPMFLAGS:= --target i686
+kernel-RPMFLAGS:= --target i686 --without tools --without debug --without debuginfo
 else
-kernel-RPMFLAGS:= --target $(HOSTARCH)
+kernel-RPMFLAGS:= --target $(HOSTARCH) --without tools --without debug --without debuginfo
 endif
 kernel-SPECVARS += kernelconfig=planetlab
 KERNELS += kernel
@@ -181,6 +182,25 @@ fprobe-ulog-SPEC := fprobe-ulog.spec
 ALL += fprobe-ulog
 IN_BOOTSTRAPFS += fprobe-ulog
 
+#
+# libvirt
+#
+libvirt-MODULES := libvirt
+libvirt-SPEC    := libvirt.spec
+libvirt-BUILD-FROM-SRPM := yes
+libvirt-DEVEL-RPMS += libxml2-devel gnutls-devel device-mapper-devel yajl-devel gettext 
+libvirt-DEVEL-RPMS += python-devel libcap-ng-devel libpciaccess-devel radvd numactl-devel 
+libvirt-DEVEL-RPMS += xhtml1-dtds libxslt libtasn1-devel systemtap-sdt-devel iptables-ipv6 augeas
+libvirt-RPMFLAGS := --without storage-disk --without storage-iscsi --without storage-scsi \
+                       --without storage-fs --without storage-lvm \
+                       --without polkit --without sasl --without audit --with capng --with udev \
+                       --without netcf --without avahi --without sanlock \
+                       --without xen --without qemu --without hyperv --without phyp --without esx \
+                    --define 'packager PlanetLab'
+ALL += libvirt
+IN_NODEREPO += libvirt
+IN_BOOTSTRAPFS += libvirt
+
 #
 # DistributedRateLimiting
 #
@@ -441,6 +461,14 @@ vserver-RPMDATE := yes
 ALL += vserver
 IN_BOOTSTRAPFS += vserver
 
+#
+# LXC reference images
+#
+lxcref-MODULES := lxc-reference
+lxcref-SPEC    := lxc-reference.spec
+ALL += lxcref
+IN_BOOTSTRAPFS += lxcref
+
 #
 # bootstrapfs
 #