aboutsummaryrefslogtreecommitdiffstats
path: root/stubdom
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2010-11-19 18:39:33 +0000
committerJan Beulich <jbeulich@novell.com>2010-11-19 18:39:33 +0000
commit65a03ea9ca8a44f80eccc72d4b93e06f3076ce39 (patch)
tree01196603c6f663fc0e8c8be69e1a5ffe2e1daa8d /stubdom
parentec527f3ef9959cddae504233f03164d5140e2bad (diff)
downloadxen-65a03ea9ca8a44f80eccc72d4b93e06f3076ce39.tar.gz
xen-65a03ea9ca8a44f80eccc72d4b93e06f3076ce39.tar.bz2
xen-65a03ea9ca8a44f80eccc72d4b93e06f3076ce39.zip
stubdom: allow building with read-only sources
Signed-off-by: Jan Beulich <jbeulich@novell.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'stubdom')
-rw-r--r--stubdom/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/stubdom/Makefile b/stubdom/Makefile
index ade20496cb..d3af867a23 100644
--- a/stubdom/Makefile
+++ b/stubdom/Makefile
@@ -155,8 +155,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="$(CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -I$(realpath $(MINI_OS)/include)" lib/libpci.a && \
$(INSTALL_DATA) lib/libpci.a $(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/lib/ && \
$(INSTALL_DIR) $(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/include/pci && \