Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LrKYE-0003as-HV for qemu-devel@nongnu.org; Tue, 07 Apr 2009 19:17:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LrKYD-0003aN-T2 for qemu-devel@nongnu.org; Tue, 07 Apr 2009 19:17:54 -0400 Received: from [199.232.76.173] (port=41255 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrKYD-0003aK-Nc for qemu-devel@nongnu.org; Tue, 07 Apr 2009 19:17:53 -0400 Received: from savannah.gnu.org ([199.232.41.3]:37869 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LrKYD-00035d-Gb for qemu-devel@nongnu.org; Tue, 07 Apr 2009 19:17:53 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1LrKYC-0006ke-1v for qemu-devel@nongnu.org; Tue, 07 Apr 2009 23:17:52 +0000 Received: from pbrook by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1LrKYA-0006kQ-Gt for qemu-devel@nongnu.org; Tue, 07 Apr 2009 23:17:51 +0000 MIME-Version: 1.0 Errors-To: pbrook Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Paul Brook Message-Id: Date: Tue, 07 Apr 2009 23:17:50 +0000 Subject: [Qemu-devel] [7036] Add --with-pkgversion. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 7036 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7036 Author: pbrook Date: 2009-04-07 23:17:49 +0000 (Tue, 07 Apr 2009) Log Message: ----------- Add --with-pkgversion. Allows distributors to identify their builds without needing to hack the sources. Signed-off-by: Paul Brook Modified Paths: -------------- trunk/configure trunk/linux-user/main.c trunk/monitor.c trunk/vl.c Modified: trunk/configure =================================================================== --- trunk/configure 2009-04-07 22:58:45 UTC (rev 7035) +++ trunk/configure 2009-04-07 23:17:49 UTC (rev 7036) @@ -190,6 +190,7 @@ blobs="yes" fdt="yes" sdl_x11="no" +pkgversion="" # OS specific if check_define __linux__ ; then @@ -470,6 +471,8 @@ ;; --kerneldir=*) kerneldir="$optarg" ;; + --with-pkgversion=*) pkgversion=" ($optarg)" + ;; *) echo "ERROR: unknown option $opt"; show_help="yes" ;; esac @@ -1479,6 +1482,8 @@ echo "VERSION=$qemu_version" >>$config_mak echo "#define QEMU_VERSION \"$qemu_version\"" >> $config_h +echo "#define QEMU_PKGVERSION \"$pkgversion\"" >> $config_h + echo "SRC_PATH=$source_path" >> $config_mak if [ "$source_path_used" = "yes" ]; then echo "VPATH=$source_path" >> $config_mak Modified: trunk/linux-user/main.c =================================================================== --- trunk/linux-user/main.c 2009-04-07 22:58:45 UTC (rev 7035) +++ trunk/linux-user/main.c 2009-04-07 23:17:49 UTC (rev 7036) @@ -2202,7 +2202,7 @@ static void usage(void) { - printf("qemu-" TARGET_ARCH " version " QEMU_VERSION ", Copyright (c) 2003-2008 Fabrice Bellard\n" + printf("qemu-" TARGET_ARCH " version " QEMU_VERSION QEMU_PKGVERSION ", Copyright (c) 2003-2008 Fabrice Bellard\n" "usage: qemu-" TARGET_ARCH " [options] program [arguments...]\n" "Linux CPU emulator (compiled for %s emulation)\n" "\n" Modified: trunk/monitor.c =================================================================== --- trunk/monitor.c 2009-04-07 22:58:45 UTC (rev 7035) +++ trunk/monitor.c 2009-04-07 23:17:49 UTC (rev 7036) @@ -273,7 +273,7 @@ static void do_info_version(Monitor *mon) { - monitor_printf(mon, "%s\n", QEMU_VERSION); + monitor_printf(mon, "%s\n", QEMU_VERSION QEMU_PKGVERSION); } static void do_info_name(Monitor *mon) Modified: trunk/vl.c =================================================================== --- trunk/vl.c 2009-04-07 22:58:45 UTC (rev 7035) +++ trunk/vl.c 2009-04-07 23:17:49 UTC (rev 7036) @@ -3942,7 +3942,7 @@ static void version(void) { - printf("QEMU PC emulator version " QEMU_VERSION ", Copyright (c) 2003-2008 Fabrice Bellard\n"); + printf("QEMU PC emulator version " QEMU_VERSION QEMU_PKGVERSION ", Copyright (c) 2003-2008 Fabrice Bellard\n"); } static void help(int exitcode)