]> www.infradead.org Git - mtd-utils.git/commitdiff
ubi-utils: remove useless build information
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 29 Aug 2007 16:03:56 +0000 (19:03 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 29 Aug 2007 16:03:56 +0000 (19:03 +0300)
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
14 files changed:
ubi-utils/Makefile
ubi-utils/src/bin2nand.c
ubi-utils/src/mkbootenv.c
ubi-utils/src/nand2bin.c
ubi-utils/src/pddcustomize.c
ubi-utils/src/pfi2bin.c
ubi-utils/src/pfiflash.c
ubi-utils/src/ubicrc32.c
ubi-utils/src/ubigen.c
ubi-utils/src/ubimirror.c
ubi-utils/src/ubimkvol.c
ubi-utils/src/ubirmvol.c
ubi-utils/src/ubiupdatevol.c
ubi-utils/src/unubi.c

index db984c8fde2d250e4c233894a60201755a50f367..e1b7b849c57d5cf5ca3ef1bc5a64cc881513622c 100644 (file)
@@ -2,11 +2,6 @@
 # Makefile for ubi-utils
 #
 
-HOST_OS_NAME := $(shell uname -s)
-HOST_VERSION_NAME := $(shell uname -r)
-BUILD_CPU := $(shell uname -m)
-BUILD_OS := $(shell uname -o)
-
 OPTFLAGS := -O2 -g -Wall
 KERNELHDR := ../include
 DESTDIR := /usr/local
@@ -16,11 +11,7 @@ INCLUDEDIR=/usr/include
 
 CC := $(CROSS)gcc
 CFLAGS := -I./inc -I./src -I$(KERNELHDR) $(OPTFLAGS) -Werror \
-       -Wwrite-strings -W -std=gnu99 \
-        -DHOST_OS_NAME=\"$(HOST_OS_NAME)\" \
-        -DHOST_VERSION_NAME=\"$(HOST_VERSION_NAME)\" \
-       -DBUILD_CPU=\"$(BUILD_CPU)\" -DBUILD_OS=\"$(BUILD_OS)\" \
-       -DPACKAGE_VERSION=\"1.0\"
+       -Wwrite-strings -W -std=gnu99 -DPACKAGE_VERSION=\"1.0\"
 
 PERLPROGS = mkpfi ubicrc32.pl
 TARGETS = ubiupdatevol ubimkvol ubirmvol pfiflash pddcustomize ubimirror \
index cf691912f3047f6435dbd12de4b41b416eca7fb5..c7c7ccc8bbe41cb80c08b0c5c2fcaa0c5941bd37 100644 (file)
@@ -67,9 +67,7 @@ typedef enum action_t {
 #define PADDING                   0 /* 0 means, do not adjust anything */
 #define BUFSIZE                4096
 
-static char doc[] = "\nVersion: " PROGRAM_VERSION "\n\tBuilt on "
-       BUILD_CPU" "BUILD_OS" at "__DATE__" "__TIME__"\n"
-       "\n"
+static char doc[] = "\nVersion: " PROGRAM_VERSION "\n"
        "bin2nand - a tool for adding OOB information to a "
        "binary input file.\n";
 
index 4a8cc6a97b2a9462078b52593fd50b090979afe3..952f651fadb5065d0f255e994bda28a30dde8269 100644 (file)
@@ -37,9 +37,7 @@
 
 #define PROGRAM_VERSION "1.3"
 
-static char doc[] = "\nVersion: " PROGRAM_VERSION "\n\tBuilt on "
-       BUILD_CPU" "BUILD_OS" at "__DATE__" "__TIME__"\n"
-       "\n"
+static char doc[] = "\nVersion: " PROGRAM_VERSION "\n"
        "mkbootenv - processes bootenv text files and convertes "
        "them into a binary format.\n";
 
index b8e4ea317dd2970918e975bb088a7ce8fa75e233..0773a2ba878493498604b0232d86ebc98ecf0a1e 100644 (file)
@@ -63,9 +63,8 @@ static struct args myargs = {
        .options = NULL,
 };
 
-static char doc[] = "\nVersion: " PROGRAM_VERSION "\n\t"
-       BUILD_OS" "BUILD_CPU" at "__DATE__" "__TIME__"\n"
-       "\nSplit data and OOB.\n";
+static char doc[] = "\nVersion: " PROGRAM_VERSION "\n"
+       "nand2bin - split data and OOB.\n";
 
 static const char *optionsstr =
 "  -o, --output=<output>      Data output file\n"
index a86e9427782a2158078b24ac77b494dc5393ec30..956ce8f4c9a7b1292c6c86ab939e0857f1d0cead 100644 (file)
@@ -61,9 +61,7 @@ typedef enum action_t {
        args->action = ACT_ARGP_ERR;    \
 } while (0)
 
-static char doc[] = "\nVersion: " PROGRAM_VERSION "\n\tBuilt on "
-       BUILD_CPU" "BUILD_OS" at "__DATE__" "__TIME__"\n"
-       "\n"
+static char doc[] = "\nVersion: " PROGRAM_VERSION "\n"
        "pddcustomize - customize bootenv and pdd values.\n";
 
 static const char *optionsstr =
index 6d5b21084f5a282767bab093936aabcc6d6ddabb..35af86c3af1ea8a12ea9419cab8904fc0e7611c0 100644 (file)
@@ -69,9 +69,7 @@ typedef enum action_t {
 static const char copyright [] __attribute__((unused)) =
        "(c) Copyright IBM Corp 2006\n";
 
-static char doc[] = "\nVersion: " PROGRAM_VERSION "\n\tBuilt on "
-       BUILD_CPU" "BUILD_OS" at "__DATE__" "__TIME__"\n"
-       "\n"
+static char doc[] = "\nVersion: " PROGRAM_VERSION "\n"
        "pfi2bin - a tool to convert PFI files into binary images.\n";
 
 static const char *optionsstr =
index bac62e638c0d5b02450999b4c0fe77d1a9e43e90..a31874e324d9a27b2d511237abef6c553ebab961 100644 (file)
@@ -45,9 +45,7 @@
 
 #define PROGRAM_VERSION  "1.5"
 
-static char doc[] = "\nVersion: " PROGRAM_VERSION "\n\tBuilt on "
-       BUILD_CPU" "BUILD_OS" at "__DATE__" "__TIME__"\n"
-       "\n"
+static char doc[] = "\nVersion: " PROGRAM_VERSION "\n"
        "pfiflash - a tool for updating a controller with PFI files.\n";
 
 static const char *optionsstr =
index fb4ef49b0a2afc4d1efe181f7a566b7b308ffa2f..7e3f04597b3cf2f0cd8ab48039b411d9630590d6 100644 (file)
@@ -36,9 +36,7 @@
 
 const char *argp_program_version = PACKAGE_VERSION;
 const char *argp_program_bug_address = PACKAGE_BUGREPORT;
-static char doc[] = "\nVersion: " PACKAGE_VERSION "\n\tBuilt on "
-       BUILD_CPU" "BUILD_OS" at "__DATE__" "__TIME__"\n"
-       "\n"
+static char doc[] = "\nVersion: " PACKAGE_VERSION "\n"
        "ubicrc32 - calculates the UBI CRC32 value and prints it to stdout.\n";
 
 static const char copyright [] __attribute__((unused)) =
index d99ba2d59909786d18c56bb4f7c4a2e1abca61a8..9fcafab84b97abfde148de4d22b51995ec2f7530 100644 (file)
@@ -43,9 +43,7 @@ typedef enum action_t {
        ACT_BROKEN_UPDATE    = 0x00000002,
 } action_t;
 
-static char doc[] = "\nVersion: " PROGRAM_VERSION "\n\tBuilt on "
-       BUILD_CPU" "BUILD_OS" at "__DATE__" "__TIME__"\n"
-       "\n"
+static char doc[] = "\nVersion: " PROGRAM_VERSION "\n"
        "ubigen - a tool for adding UBI information to a binary input file.\n";
 
 static const char *optionsstr =
index eeedb3a20a8c08d3e89d5c385fd157baaf8319da..c8bdb8a710bb8cbd1ffae9436cfecf10476045b9 100644 (file)
@@ -53,9 +53,7 @@ typedef enum action_t {
 
 #define VOL_ARGS_MAX 2
 
-static char doc[] = "\nVersion: " PROGRAM_VERSION "\n\tBuilt on "
-       BUILD_CPU" "BUILD_OS" at "__DATE__" "__TIME__"\n"
-       "\n"
+static char doc[] = "\nVersion: " PROGRAM_VERSION "\n"
        "ubimirror - mirrors ubi volumes.\n";
 
 static const char *optionsstr =
index ad58cc92e8f562fb8633131e79bb24298791c2e3..bff6068e83862182af226964a930d7e64122b335 100644 (file)
@@ -75,9 +75,8 @@ static struct args myargs = {
 
 static int param_sanity_check(struct args *args, libubi_t libubi);
 
-static char doc[] = "\nVersion: " PROGRAM_VERSION "\n\t"
-       BUILD_OS" "BUILD_CPU" at "__DATE__" "__TIME__"\n"
-       "\nMake UBI Volume.\n";
+static char doc[] = "\nVersion: " PROGRAM_VERSION "\n"
+       "ubinkvol - make UBI Volume.\n";
 
 static const char *optionsstr =
 "  -a, --alignment=<alignment>   volume alignment (default is 1)\n"
index f32cbe016a91d078888d0bd069c907d4ddec604c..6dd16baaf6b0c325d37b27c58592cc445082a10a 100644 (file)
@@ -63,9 +63,8 @@ static struct args myargs = {
 
 static int param_sanity_check(struct args *args, libubi_t libubi);
 
-static char doc[] = "\nVersion: " PROGRAM_VERSION "\n\t"
-       BUILD_OS" "BUILD_CPU" at "__DATE__" "__TIME__"\n"
-       "\nMake UBI Volume.\n";
+static char doc[] = "\nVersion: " PROGRAM_VERSION "\n"
+       "ubirmvol - make UBI Volume.\n";
 
 static const char *optionsstr =
 "  -d, --devn=<devn>          UBI device\n"
index 5401eb1c50c9892dbda7568ea069d0d2a04e2ebe..807b9616bcde8da19fec17a58e72687b5e718a78 100644 (file)
@@ -72,9 +72,8 @@ static struct args myargs = {
 
 static int verbose = 0;
 
-static char doc[] = "\nVersion: " PROGRAM_VERSION "\n\t"
-       BUILD_OS" "BUILD_CPU" at "__DATE__" "__TIME__"\n"
-       "\nWrite to UBI Volume.\n";
+static char doc[] = "\nVersion: " PROGRAM_VERSION "\n"
+       "ubiupdatevol - write to UBI Volume.\n";
 
 static const char *optionsstr =
 "  -B, --broken-update        broken update, this is for testing\n"
index 811a6dba0d24dd40fcb37188ec0c964ebf003202..81db5fa258e13c3d8de9baaef8a28b212d504677 100644 (file)
@@ -56,9 +56,8 @@
 #define CONTACT                "haver@vnet.ibm.com"
 #define VERSION                "1.3"
 
-static char doc[] = "\nVersion: " VERSION "\n\t"
-       BUILD_OS" "BUILD_CPU" at "__DATE__" "__TIME__"\n"
-       "\nAnalyze raw flash containing UBI data.\n";
+static char doc[] = "\nVersion: " VERSION "\n"
+       "unubi - analyze raw flash containing UBI data.\n";
 
 static const char *optionsstr =
 " OPTIONS\n"