# 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
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 \
#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";
#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";
.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"
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 =
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 =
#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 =
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)) =
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 =
#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 =
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"
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"
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"
#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"