# HG changeset patch # User iap10@labyrinth.cl.cam.ac.uk # Date 1106431657 0 # Node ID 502b0127031e440116a0f44849f9f33b8a3b8fdc # Parent ef59de03bebfbc6670e26aac98b9a687fdc47204 bitkeeper revision 1.1159.223.28 (41f2cea9tkhheORopsoScolnVoBxgw) Description: split banner.h Split banner.h, to make it easier to edit, and more properly fit in with normal build systems. Also, inline the rules to actually build figlet. From: Adam Heath Signed-off-by: ian.pratt@cl.cam.ac.uk diff -r ef59de03bebf -r 502b0127031e .rootkeys --- a/.rootkeys Sat Jan 22 22:05:19 2005 +0000 +++ b/.rootkeys Sat Jan 22 22:07:37 2005 +0000 @@ -852,7 +852,9 @@ 404f3d2eR2Owk-ZcGOx9ULGHg3nrww xen/inclu 3ddb79c25UE59iu4JJcbRalx95mvcg xen/include/public/xen.h 3e397e66m2tO3s-J8Jnr7Ws_tGoPTg xen/include/xen/ac_timer.h 40715b2epYl2jBbxzz9CI2rgIca7Zg xen/include/xen/acpi.h +41f2cea7ZvnB9JC4qkiq1K8H7xJw5Q xen/include/xen/banner.h 3ddb79c0c0cX_DZE209-Bb-Rx1v-Aw xen/include/xen/cache.h +41f2cea7Yna7xc0X9fyavIjoSFFeVg xen/include/xen/compile.h.in 3f840f12CkbYSlwMrY2S11Mpyxg7Nw xen/include/xen/compiler.h 3ddb79c259jh8hE7vre_8NuE7nwNSA xen/include/xen/config.h 3eb165e0eawr3R-p2ZQtSdLWtLRN_A xen/include/xen/console.h diff -r ef59de03bebf -r 502b0127031e xen/Makefile --- a/xen/Makefile Sat Jan 22 22:05:19 2005 +0000 +++ b/xen/Makefile Sat Jan 22 22:07:37 2005 +0000 @@ -35,14 +35,13 @@ dist: install clean: tools.clean common.clean drivers.clean arch/$(TARGET_ARCH).clean rm -f include/asm *.o $(TARGET)* *~ core include/xen/compile.h rm -f include/asm-*/asm-offsets.h + rm -f tools/figlet/*.o tools/figlet/figlet tools.clean common.clean drivers.clean arch/$(TARGET_ARCH).clean : %.clean: $(MAKE) -C $* clean -$(TARGET): delete-unfresh-files +$(TARGET): delete-unfresh-files include/xen/compile.h [ -e include/asm ] || ln -sf asm-$(TARGET_ARCH) include/asm - $(MAKE) -C tools - $(MAKE) include/xen/compile.h $(MAKE) -C arch/$(TARGET_ARCH) asm-offsets.s $(MAKE) include/asm-$(TARGET_ARCH)/asm-offsets.h $(MAKE) -C common @@ -54,25 +53,30 @@ delete-unfresh-files: rm -f include/xen/compile.h common/kernel.o # compile.h contains dynamic build info. Rebuilt on every 'make' invocation. -include/xen/compile.h: - @LANG=C echo /\* Autogenerated by root Makefile. Do not edit. \*/ > $@ - @LANG=C echo >> $@ - @LANG=C echo \#define XEN_COMPILE_DATE \"`date`\" >> $@ - @LANG=C echo \#define XEN_COMPILE_TIME \"`date +%T`\" >> $@ - @LANG=C echo \#define XEN_COMPILE_BY \"`whoami`\" >> $@ - @LANG=C echo \#define XEN_COMPILE_DOMAIN \"`([ -x /bin/dnsdomainname ] && /bin/dnsdomainname) || ([ -x /bin/domainname ] && /bin/domainname || echo [unknown])`\" >> $@ - @LANG=C echo \#define XEN_COMPILE_HOST \"`hostname`\" >> $@ - @LANG=C echo \#define XEN_COMPILER \"`$(CC) $(CFLAGS) -v 2>&1 | tail -n 1`\" >> $@ - @LANG=C echo >> $@ - @LANG=C echo \#define XEN_VERSION\ \ \ \ \ \ $(XEN_VERSION) >> $@ - @LANG=C echo \#define XEN_SUBVERSION\ \ \ $(XEN_SUBVERSION) >> $@ - @LANG=C echo \#define XEN_EXTRAVERSION \"$(XEN_EXTRAVERSION)\" >> $@ - @LANG=C echo >> $@ - @LANG=C echo \#define XEN_CHANGESET \"`bk changes -nd':D: :T: :REV: :MD5KEY:' -r+ 2>/dev/null || echo "information unavailable"`\" >> $@ - @LANG=C echo >> $@ - @LANG=C echo \#define XEN_BANNER \\ >> $@ - ( cd ./tools/figlet && ./figlet Xen $(XEN_VERSION).$(XEN_SUBVERSION)$(XEN_EXTRAVERSION) 1>>../../$@ ) - @LANG=C echo >> $@ +include/xen/compile.h: LANG=C +include/xen/compile.h: include/xen/compile.h.in include/xen/banner.h + sed -e 's/@@date@@/$(shell date)/g' \ + -e 's/@@time@@/$(shell date +%T)/g' \ + -e 's/@@whoami@@/$(shell whoami)/g' \ + -e 's/@@domain@@/$(shell ([ -x /bin/dnsdomainname ] && /bin/dnsdomainname) || ([ -x /bin/domainname ] && /bin/domainname || echo [unknown]))/g' \ + -e 's/@@hostname@@/$(shell hostname)/g' \ + -e 's/@@compiler@@/$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -1)/g' \ + -e 's/@@version@@/$(XEN_VERSION)/g' \ + -e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \ + -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \ + -e 's/@@changeset@@/$(shell bk changes -nd':D: :T: :REV: :MD5KEY:' -r+ 2>/dev/null || echo information unavailable)/g' \ + < include/xen/compile.h.in > $@.new + cat include/xen/banner.h >> $@.new + mv $@.new $@ + +tools/figlet/figlet: tools/figlet/figlet.o + $(CC) -o $@ $< +tools/figlet/figlet.o: tools/figlet/figlet.c + $(CC) -o $@ -c $< + +include/xen/banner.h: tools/figlet/figlet tools/figlet/xen.flf + tools/figlet/figlet -d tools/figlet Xen $(XEN_VERSION).$(XEN_SUBVERSION)$(XEN_EXTRAVERSION) > $@.new + mv $@.new $@ include/asm-$(TARGET_ARCH)/asm-offsets.h: arch/$(TARGET_ARCH)/asm-offsets.s @(set -e; \ diff -r ef59de03bebf -r 502b0127031e xen/include/xen/banner.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xen/include/xen/banner.h Sat Jan 22 22:07:37 2005 +0000 @@ -0,0 +1,12 @@ +"\040\137\137\040\040\137\137\040\040\040\040\040\040\040\040\040\040\040" \ +"\040\137\137\137\137\040\040\040\040\137\137\137\040\040\012\040\134\040" \ +"\134\057\040\057\137\137\137\040\137\040\137\137\040\040\040\174\137\137" \ +"\137\040\134\040\040\057\040\137\040\134\040\012\040\040\134\040\040\057" \ +"\057\040\137\040\134\040\047\137\040\134\040\040\040\040\137\137\051\040" \ +"\174\174\040\174\040\174\040\174\012\040\040\057\040\040\134\040\040\137" \ +"\137\057\040\174\040\174\040\174\040\040\057\040\137\137\057\040\174\040" \ +"\174\137\174\040\174\012\040\057\137\057\134\137\134\137\137\137\174\137" \ +"\174\040\174\137\174\040\174\137\137\137\137\137\050\137\051\137\137\137" \ +"\057\040\012\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040" \ +"\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\012" \ + diff -r ef59de03bebf -r 502b0127031e xen/include/xen/compile.h.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xen/include/xen/compile.h.in Sat Jan 22 22:07:37 2005 +0000 @@ -0,0 +1,13 @@ +#define XEN_COMPILE_DATE "@@date@@" +#define XEN_COMPILE_TIME "@@time@@" +#define XEN_COMPILE_BY "@@whoami@@" +#define XEN_COMPILE_DOMAIN "@@domain@@" +#define XEN_COMPILE_HOST "@@hostname@@" +#define XEN_COMPILER "@@compiler@@" + +#define XEN_VERSION @@version@@ +#define XEN_SUBVERSION @@subversion@@ +#define XEN_EXTRAVERSION @@extraversion@@ + +#define XEN_CHANGESET "@@changeset@@" +#define XEN_BANNER \