projects
/
profile
/
ivi
/
OpenAVB.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f8336a
)
build-sys: allow passing extra flags to the module build process.
author
Krisztian Litkey
<kli@iki.fi>
Fri, 27 Sep 2013 08:04:30 +0000
(11:04 +0300)
committer
Krisztian Litkey
<kli@iki.fi>
Fri, 27 Sep 2013 08:06:40 +0000
(11:06 +0300)
configure.ac
patch
|
blob
|
history
kmod/Makefile.am
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
73dc344
..
1fccc8a
100644
(file)
--- 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
(file)
--- 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