From af927e0be691ca85f10ef79acc4d5f7537e288b9 Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Fri, 27 Sep 2013 11:04:30 +0300 Subject: [PATCH] build-sys: allow passing extra flags to the module build process. --- configure.ac | 8 ++++++++ kmod/Makefile.am | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 73dc344..1fccc8a 100644 --- a/configure.ac +++ b/configure.ac @@ -62,6 +62,14 @@ AC_FUNC_REALLOC AC_FUNC_STRNLEN AC_CHECK_FUNCS([ftruncate gettimeofday isascii memset munmap pow select socket strchr strdup strerror strstr strtol]) +# Check if any flags need to be passed on to the kernel module build. +AC_ARG_ENABLE(kmod-flags, + [ --enable-kmod-flags pass the given flags to the module build process], + [IGB_KMOD_BUILD_FLAGS="$enableval"], []) + +AC_SUBST(IGB_KMOD_BUILD_FLAGS) + + AC_CONFIG_FILES([Makefile kmod/Makefile igb.pc]) diff --git a/kmod/Makefile.am b/kmod/Makefile.am index d27c626..3151f1f 100644 --- a/kmod/Makefile.am +++ b/kmod/Makefile.am @@ -1,5 +1,5 @@ all: - $(MAKE) -C igb + $(MAKE) V=1 -C igb $(IGB_KMOD_BUILD_FLAGS) install: $(MAKE) -C igb install -- 2.7.4