mirror of
https://review.coreboot.org/flashrom.git
synced 2025-05-01 00:43:40 +02:00
meson.build: Don't depend on getrevision.sh
`getrevision.sh` isn't included in exported source code (including GitHub's auto-generated tarballs and ZIPs). Per issue #95, the build shouldn't depend on getrevision.sh for this reason. Previously, however, Flashrom would not build from exported source using Meson due to it requiring `getrevision.sh`. This patch has Meson use the intended `getversion.sh` instead. Signed-off-by: Samuel R. Messner <powpowd@gmail.com> Change-Id: Id8601155b35f0299200c27d0278606127410ff16 Reviewed-on: https://review.coreboot.org/c/flashrom/+/62061 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
634707a42d
commit
9212ee2191
@ -1,5 +1,5 @@
|
|||||||
project('flashromutils', 'c',
|
project('flashromutils', 'c',
|
||||||
version : run_command('util/getversion.sh', '-v').stdout().strip(),
|
version : run_command('util/getversion.sh', '--version').stdout().strip(),
|
||||||
license : 'GPL-2.0',
|
license : 'GPL-2.0',
|
||||||
meson_version : '>=0.50.0',
|
meson_version : '>=0.50.0',
|
||||||
default_options : ['warning_level=2', 'c_std=c99'],
|
default_options : ['warning_level=2', 'c_std=c99'],
|
||||||
@ -469,7 +469,7 @@ pkgg.generate(
|
|||||||
)
|
)
|
||||||
|
|
||||||
conf.set('VERSION', version)
|
conf.set('VERSION', version)
|
||||||
conf.set('MAN_DATE', run_command('util/getrevision.sh', '--date', 'flashrom.8.tmpl').stdout().strip())
|
conf.set('MAN_DATE', run_command('util/getversion.sh', '--man-date').stdout().strip())
|
||||||
configure_file(
|
configure_file(
|
||||||
input : 'flashrom.8.tmpl',
|
input : 'flashrom.8.tmpl',
|
||||||
output : 'flashrom.8',
|
output : 'flashrom.8',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user