Changeset 5149


Ignore:
Timestamp:
Feb 23, 2010, 11:33:25 AM (5 years ago)
Author:
oxygene
Message:

Find out the svnversion we are working on is quite important.
The whole command (which also parses git data, if it's a git-svn tree)
is copied from original newconfig.

Signed-off-by: Zheng Bao <zheng.bao@…>
Acked-by: Patrick Georgi <patrick.georgi@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r5128 r5149  
    254254        printf "#ifndef __BUILD_H\n" >> $(obj)/build.ht
    255255        printf "#define __BUILD_H\n\n" >> $(obj)/build.ht
    256         printf "#define COREBOOT_VERSION \"$(KERNELVERSION)\"\n" >> $(obj)/build.ht
     256        printf "#define COREBOOT_VERSION \"$(KERNELVERSION)-r$(shell if [ -d $(top)/.svn -a -f `which svnversion` ]; then svnversion $(top); else if [ -d $(top)/.git -a -f `which git` ]; then git --git-dir=/$(top)/.git log|grep git-svn-id|cut -f 2 -d@|cut -f 1 -d' '|sort -g|tail -1; fi; fi)\"\n" >> $(obj)/build.ht
    257257        printf "#define COREBOOT_EXTRA_VERSION \"$(COREBOOT_EXTRA_VERSION)\"\n" >> $(obj)/build.ht
    258258        printf "#define COREBOOT_BUILD \"`LANG= date`\"\n" >> $(obj)/build.ht
Note: See TracChangeset for help on using the changeset viewer.