ni845x_spi: Add a `ni845x.h` header stub for build tests
The `ni845x_spi' programmer driver depends on a proprietary library,
only available for Windows. As that's not the best circumstances for
build tests, add a header file that provides exactly the definitions
needed to compile the driver.
The compilation result can never be linked. Hence, add another build
target to test compilation of this file only.
Change-Id: I3d291bc16eecb1777062a61362a8eb1548afb7a3
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/411
diff --git a/test_build.sh b/test_build.sh
index 17d1caa..7fb3239 100755
--- a/test_build.sh
+++ b/test_build.sh
@@ -29,7 +29,7 @@
build_and_test() {
if [ "${MAKECMD=make}" ]; then
${MAKECMD} clean
- eval ${MAKECMD} -j${CPUS:-$(nproc)} CC="\"${CC}\"" ${MAKEARGS-CONFIG_EVERYTHING=yes}
+ eval ${MAKECMD} -j${CPUS:-$(nproc)} CC="\"${CC}\"" ${MAKEARGS-CONFIG_EVERYTHING=yes all additional_tests}
test_prog ./flashprog
fi