[U-Boot] define dynamic localversion

Frank Wunderlich frank-w at public-files.de
Mon Nov 5 16:49:42 UTC 2018


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


More information about the U-Boot mailing list