meson: relocate source file list
Change-Id: I921be8a8a99b93d23c1dbd4ea54672ba9998558d
Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com>
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/64026
Original-Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Original-Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Original-Reviewed-by: Felix Singer <felixsinger@posteo.net>
Original-Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Original-Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/72329
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/meson.build b/meson.build
index db6f98b..0151ef2 100644
--- a/meson.build
+++ b/meson.build
@@ -83,7 +83,39 @@
cargs = []
deps = []
-srcs = []
+srcs = files(
+ '82802ab.c',
+ 'at45db.c',
+ 'bitbang_spi.c',
+ 'edi.c',
+ 'en29lv640b.c',
+ 'flashchips.c',
+ 'flashrom.c',
+ 'fmap.c',
+ 'helpers.c',
+ 'ich_descriptors.c',
+ 'jedec.c',
+ 'layout.c',
+ 'libflashrom.c',
+ 'opaque.c',
+ 'print.c',
+ 'programmer.c',
+ 'programmer_table.c',
+ 'sfdp.c',
+ 'spi25.c',
+ 'spi25_statusreg.c',
+ 'spi95.c',
+ 'spi.c',
+ 'sst28sf040.c',
+ 'sst49lfxxxc.c',
+ 'sst_fwhub.c',
+ 'stm50.c',
+ 'udelay.c',
+ 'w29ee011.c',
+ 'w39.c',
+ 'writeprotect.c',
+ 'writeprotect_ranges.c',
+)
host_is_x86 = ['x86', 'x86_64'].contains(host_machine.cpu_family())
@@ -371,38 +403,6 @@
include_dir = include_directories('include')
-# core modules needed by both the library and the CLI
-srcs += '82802ab.c'
-srcs += 'at45db.c'
-srcs += 'edi.c'
-srcs += 'en29lv640b.c'
-srcs += 'flashchips.c'
-srcs += 'flashrom.c'
-srcs += 'fmap.c'
-srcs += 'helpers.c'
-srcs += 'ich_descriptors.c'
-srcs += 'jedec.c'
-srcs += 'layout.c'
-srcs += 'libflashrom.c'
-srcs += 'opaque.c'
-srcs += 'print.c'
-srcs += 'programmer.c'
-srcs += 'programmer_table.c'
-srcs += 'sfdp.c'
-srcs += 'spi25.c'
-srcs += 'spi25_statusreg.c'
-srcs += 'spi95.c'
-srcs += 'spi.c'
-srcs += 'sst28sf040.c'
-srcs += 'sst49lfxxxc.c'
-srcs += 'sst_fwhub.c'
-srcs += 'stm50.c'
-srcs += 'udelay.c'
-srcs += 'w29ee011.c'
-srcs += 'w39.c'
-srcs += 'writeprotect.c'
-srcs += 'writeprotect_ranges.c'
-
mapfile = 'libflashrom.map'
vflag = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), mapfile)
flashrom = library(