summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.com>2023-03-03 20:46:11 +0100
committerAnastasia Klimchuk <aklm@chromium.org>2023-04-27 09:41:27 +0000
commit70af6ea5c927a6b77d17ec2190e1df967016e993 (patch)
tree92aa62a57181913f0b82a5d5f65db23044760fb2
parenteccbdb6a6d4c5a439a1c080217cd511443146a62 (diff)
downloadflashrom-70af6ea5c927a6b77d17ec2190e1df967016e993.tar.gz
flashrom-70af6ea5c927a6b77d17ec2190e1df967016e993.tar.bz2
flashrom-70af6ea5c927a6b77d17ec2190e1df967016e993.zip
meson_cross: Introduce meson cross file for DJGPP/DOS
With `meson setup --cross-file meson_cross/i586_djgpp_dos.txt builddir` you can build flashrom as DOS executable. Change-Id: Iabda73942c1e64cd46604c78533982374f78e1a4 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/73439 Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--meson_cross/i586_djgpp_dos.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/meson_cross/i586_djgpp_dos.txt b/meson_cross/i586_djgpp_dos.txt
new file mode 100644
index 000000000..66d5ed0da
--- /dev/null
+++ b/meson_cross/i586_djgpp_dos.txt
@@ -0,0 +1,29 @@
+# This file is for cross compiling flashrom for DOS with DJGPP.
+#
+# Make sure the program names match your toolchain
+#
+# Make sure pkg-config can find your self compiles libpci
+# or add the path of your libpci.pc as 'pkg_config_libdir'
+# under [properies] below.
+
+[binaries]
+c = 'i586-pc-msdosdjgpp-gcc'
+ar = 'i586-pc-msdosdjgpp-ar'
+strip = 'i586-pc-msdosdjgpp-strip'
+pkgconfig = 'pkg-config'
+
+[host_machine]
+system = 'dos'
+cpu_family = 'x86'
+cpu = 'i586'
+endian = 'little'
+
+[built-in options]
+c_std = 'gnu99'
+default_library = 'static'
+
+[project options]
+tests = 'disabled'
+ich_descriptors_tool = 'disabled'
+
+[properties]