]> xenbits.xensource.com Git - xentesttools/bootstrap.git/commitdiff
Makefile: Work with Xen 4.2
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 5 Sep 2012 17:47:16 +0000 (13:47 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 5 Sep 2012 17:47:16 +0000 (13:47 -0400)
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
root_image/Makefile

index 0af9f626995d22a985b6d1e7cff48832ae50e9a2..ca69bcb356626c082486f4c562b8db1195971056 100644 (file)
@@ -805,6 +805,7 @@ xen-4.2-depend:
        $(call RPM_TO_USERSPACE,*liblber*.so*,$(RPM_DIR)/openldap)
        $(call RPM_TO_USERSPACE,*libldap*.so*,$(RPM_DIR)/openldap)
        $(call RPM_TO_USERSPACE,*libgthread*.so*,$(RPM_DIR)/glib2)
+       $(call RPM_TO_USERSPACE,*libjpeg*.so*,$(RPM_DIR)/libjpeg)
 
 .PHONY: power-depend
 power-depend:
@@ -860,28 +861,26 @@ xend-install: xen-python-bytecode yajl-depend xen-4.2-depend
                cp -f $(XEN_DISTDIR)/etc/rc.d/init.d/*                          userspace/etc/init.d; \
        else \
                cp -f $(XEN_DISTDIR)/etc/init.d/*                               userspace/etc/init.d; \
-       fi      
+       fi
        cp -rdf $(XEN_DISTDIR)/etc/sysconfig                            userspace/etc/sysconfig
        cp -rdf $(XEN_DISTDIR)/etc/udev/*                               userspace/etc/udev
        cp -rdf $(XEN_DISTDIR)/etc/xen                          userspace/etc/xen
        cp -rdf $(XEN_DISTDIR)/var                                            userspace/
        find userspace/usr/$(LIBSDIR) -name '*.so*' ! -type l | xargs chmod a+x
+       if test -f userspace/usr/lib; then \
+               find userspace/usr/lib -name '*.so*' ! -type l | xargs chmod a+x; \
+       fi
 #      prune usr/include after copy
        rm -rf userspace/usr/include
-#      make them usable by nex, or xen
-       if ! test -f userspace/bin/qemu-dm; then \
-               ( ln -sf /usr/local/$(LIBSDIR)/xen/bin/qemu-dm  userspace/bin/qemu-dm ) \
-       fi
-#      it would be nice if xen could make up their mind where they are
-#      launching things from
 
 ifeq ($(RPM_ARCH), x86_64)
-       if ! test -f userspace/usr/lib64/xen/bin/qemu-dm; then \
-               ( ln -sf /usr/local/$(LIBSDIR)/xen/bin/qemu-dm  userspace/usr/lib64/xen/bin/qemu-dm ) \
+       if ! test -f userspace/usr/lib64/xen; then \
+               ( ln -sf /usr/lib/xen   userspace/usr/lib64; true ) \
        fi
-else
-       if ! test -f userspace/usr/lib/xen/bin/qemu-dm; then \
-               ( ln -sf /usr/local/$(LIBSDIR)/xen/bin/qemu-dm  userspace/usr/lib/xen/bin/qemu-dm ) \
+       if test -f userspace/usr/lib/libxenctrl.so; then \
+               if ! test -f userspace/usr/lib64/libxenctrl.so; then \
+                       ( cd userspace/usr/lib; for lib in `ls -1 *libxen* *libblktap* libvhd* libfsimage* libxl*`; do (cd ../lib64;ln -s ../lib/$$lib); done;); \
+               fi \
        fi
 endif
        if ! test -f userspace/bin/hvmloader; then \