mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-26 00:21:37 +00:00
kbuild: consolidate version and timestamp headers generation
- Generate include/generated/{timestamp.h, version.h} more simply by using filechk rule. - Add $(UBOOTRELEASE) variable and re-write u-boot.imx rule more simply. - Rename U_BOOT_VERSION in Makefile to UBOOTVERSION Before this commit, the same variable name, "U_BOOT_VERSION" was used for two different strings. One of them was defined in Makefile. It takes the form like "2014.01-rc1" and used in makefiles and script files. The other is defined in include/generated/version.h It takes the form like "U-Boot 2014.01-rc1-00010-gbe6d426-dirty" and used in C and Aseembler. It is confusing when grepping the source tree. So, this commit renames the former to UBOOTVERSION. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
This commit is contained in:
parent
5b1f1f4aff
commit
7424145f30
3 changed files with 49 additions and 40 deletions
|
@ -392,8 +392,8 @@ sub usage {
|
|||
sub get_kernel_version() {
|
||||
my $version = 'unknown kernel version';
|
||||
|
||||
if (defined($ENV{'U_BOOT_VERSION'})) {
|
||||
$version = $ENV{'U_BOOT_VERSION'};
|
||||
if (defined($ENV{'UBOOTVERSION'})) {
|
||||
$version = $ENV{'UBOOTVERSION'};
|
||||
}
|
||||
return $version;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue