WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] minor build adjustment

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] minor build adjustment
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Fri, 01 Jul 2005 16:03:47 +0200
Delivery-date: Fri, 01 Jul 2005 14:02:06 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] minor build adjustment, Jan Beulich <=