From c287de2e09e7a80861b0cd93c2956be3a087eb4c Mon Sep 17 00:00:00 2001 From: Thomas Heijligen Date: Thu, 28 Apr 2022 11:07:29 +0200 Subject: meson: relocate source file list Change-Id: I921be8a8a99b93d23c1dbd4ea54672ba9998558d Signed-off-by: Thomas Heijligen Reviewed-on: https://review.coreboot.org/c/flashrom/+/64026 Tested-by: build bot (Jenkins) Reviewed-by: Anastasia Klimchuk Reviewed-by: Edward O'Callaghan Reviewed-by: Felix Singer Reviewed-by: Angel Pons Reviewed-by: Peter Marheine --- meson.build | 68 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/meson.build b/meson.build index 222f7c15..6b088f06 100644 --- a/meson.build +++ b/meson.build @@ -86,7 +86,40 @@ config_default_programmer_args = get_option('default_programmer_args') 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', + 's25f.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()) @@ -392,39 +425,6 @@ install_headers([ 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 += 's25f.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( -- cgit v1.2.3