[U-Boot] define dynamic localversion

5 Nov
2018
5 Nov
'18
5:49 p.m.
Hi,
in linux-kernel i can set a dynamic localversion appended to uboot-version
looking in scripts/setlocalversion line 161 seems to look the same
res="${res}${CONFIG_LOCALVERSION}${LOCALVERSION}"
so i tried this:
gitbranch=$(git rev-parse --abbrev-ref HEAD) export LOCALVERSION="-${gitbranch}" make;
should append my current git-branch to uboot's version...but i have only a + added (git repo dirty because i did not committed these changes yet)
i have defined
CONFIG_LOCALVERSION_AUTO=n
for testing to drop commit-id
any idea?
regards Frank
2375
Age (days ago)
2375
Last active (days ago)
0 comments
1 participants
participants (1)
-
Frank Wunderlich