Makefile: use /etc/os-release for version info rather than /etc/br-version
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 14 Feb 2012 11:58:25 +0000 (12:58 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 14 Feb 2012 12:08:23 +0000 (13:08 +0100)
commit451a887894faddef019e9a0628c21b5f2e9eee56
treeeea4985aecc9cf19e652825d60407225dcf9bd8e
parentcf2486bf317e4bbf88c801fb96183ba62be78cc8
Makefile: use /etc/os-release for version info rather than /etc/br-version

/etc/os-release is becoming a standard interface for distribution
name/version info, so let's use that instead of the nonstandard
/etc/br-version. Format of the file is something like:

NAME=Buildroot
VERSION=2012.02-rc1-00003-g2d10e81
ID=buildroot
VERSION_ID=2012.02-rc1
PRETTY_NAME="Buildroot 2012.02-rc1"

For more details, see:

http://0pointer.de/public/systemd-man/os-release.html

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Makefile