|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-changelog
[Xen-changelog] Fix Xen 'make install' not to rebuild console.o if	calle
 
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 43e2d33fc5d99e630e3cd255b18b1eb83542df3b
# Parent  7c95f26c2f0e5c9c717d3e7b942184256a2eae8a
Fix Xen 'make install' not to rebuild console.o if called
from sudo environemnt, for example.
diff -r 7c95f26c2f0e -r 43e2d33fc5d9 xen/drivers/char/Makefile
--- a/xen/drivers/char/Makefile Fri Jul  1 13:35:03 2005
+++ b/xen/drivers/char/Makefile Fri Jul  1 14:30:46 2005
@@ -7,3 +7,5 @@
 
 clean:
        rm -f *.o *~ core
+
+console.o: $(BASEDIR)/include/xen/compile.h
diff -r 7c95f26c2f0e -r 43e2d33fc5d9 xen/Makefile
--- a/xen/Makefile      Fri Jul  1 13:35:03 2005
+++ b/xen/Makefile      Fri Jul  1 14:30:46 2005
@@ -67,9 +67,12 @@
        $(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:
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread> |  
- [Xen-changelog] Fix Xen 'make install' not to rebuild console.o if	called,
Xen patchbot -unstable <=
  
 |  
  
 | 
    | 
  
  
    |   | 
    |