diff --git a/.gitmodules b/.gitmodules index 749780d..306eeca 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "docopt.cpp"] path = third_party/docopt.cpp url = https://github.com/docopt/docopt.cpp.git +[submodule "third_party/fpga-config-space"] + path = third_party/fpga-config-space + url = https://ohwr.org/project/fpga-config-space.git diff --git a/third_party/fpga-config-space b/third_party/fpga-config-space new file mode 160000 index 0000000..510d4f0 --- /dev/null +++ b/third_party/fpga-config-space @@ -0,0 +1 @@ +Subproject commit 510d4f06549f4be15015257fc32b383fff3c46be diff --git a/third_party/meson.build b/third_party/meson.build index c307f74..c6c2b06 100644 --- a/third_party/meson.build +++ b/third_party/meson.build @@ -1,3 +1,11 @@ docopt_lib = static_library('docopt', 'docopt.cpp/docopt.cpp') docopt_inc = include_directories('docopt.cpp') docopt = declare_dependency(link_with: docopt_lib, include_directories: docopt_inc) + +sdbfs_inc = include_directories(['sdbfs/lib', 'sdbfs/include/linux']) +sdbfs_lib = static_library( + 'sdbfs', + ['sdbfs/lib/access.c', 'sdbfs/lib/glue.c'], + include_directories: sdbfs_inc +) +sdbfs = declare_dependency(link_with: sdbfs_lib, include_directories: sdbfs_inc) diff --git a/third_party/sdbfs b/third_party/sdbfs new file mode 120000 index 0000000..f4c098e --- /dev/null +++ b/third_party/sdbfs @@ -0,0 +1 @@ +fpga-config-space/sdbfs \ No newline at end of file