[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] minor build adjustment
Below/attached a patch to (a) make console.o dependent upon compile.h instead of deleting it unconditionally (b) not delete (and hence not regenerate) compile.h/banner.h when installing (similar to behavior found in the Linux kernel build) Jan diff -Nprux .list unstable/xen/drivers/char/Makefile nxen-core/xen/drivers/char/Makefile --- unstable/xen/drivers/char/Makefile 2005-07-01 08:24:47.321667944 -0700 +++ nxen-core/xen/drivers/char/Makefile 2005-07-01 08:32:43.277311688 -0700 @@ -7,3 +7,5 @@ driver.o: $(OBJS) clean: rm -f *.o *~ core + +console.o: $(BASEDIR)/include/xen/compile.h diff -Nprux .list unstable/xen/Makefile nxen-core/xen/Makefile --- unstable/xen/Makefile 2005-07-01 08:23:44.655194696 -0700 +++ nxen-core/xen/Makefile 2005-07-01 08:31:49.949418760 -0700 @@ -66,10 +66,12 @@ ifneq ($(ACM_USE_SECURITY_POLICY),ACM_NU endif $(MAKE) -C arch/$(TARGET_ARCH) -# drivers/char/console.o contains static banner/compile info. Blow it away. +# Don't refresh these files during e.g. 'sudo make install'. delete-unfresh-files: - rm -f include/xen/banner.h include/xen/compile.h drivers/char/console.o - $(MAKE) -C arch/$(TARGET_ARCH) delete-unfresh-files + if [ ! -r include/xen/compile.h -o -O include/xen/compile.h ]; then \ + rm -f include/xen/{banner,compile}.h; \ + $(MAKE) -C arch/$(TARGET_ARCH) delete-unfresh-files; \ + fi # acm_policy.h contains security policy for Xen include/xen/acm_policy.h: Attachment:
xen-delete-unfresh.patch _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |