From: "Jan Beulich" Subject: [PATCH] stubdom: allow building with read-only sources Date: Wed, 10 Nov 2010 09:50:53 +0000 Message-ID: <4CDA790D02000078000216C6@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Signed-off-by: Jan Beulich --- a/stubdom/Makefile +++ b/stubdom/Makefile @@ -155,8 +175,9 @@ cross-libpci: $(LIBPCI_STAMPFILE) $(LIBPCI_STAMPFILE): pciutils-$(XEN_TARGET_ARCH) $(NEWLIB_STAMPFILE) = $(ZLIB_STAMPFILE) ( cd $< && \ cp ../libpci.config.h lib/config.h && \ + chmod u+w lib/config.h && \ echo '#define PCILIB_VERSION "$(LIBPCI_VERSION)"' >> lib/config.h= && \ - cp ../libpci.config.mak lib/config.mk && \ + ln -sf ../../libpci.config.mak lib/config.mk && \ $(CROSS_MAKE) CC=3D"$(CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) = -I$(realpath $(MINI_OS)/include)" lib/libpci.a && \ $(INSTALL_DATA) lib/libpci.a $(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-x= en-elf/lib/ && \ $(INSTALL_DIR) $(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/include= /pci && \