diff options
author | Bernhard Walle <walle@corscience.de> | 2011-08-17 13:05:49 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-08-17 17:31:15 +0200 |
commit | 252cf4f1a0d239feb199f8dd89db9917a8840274 (patch) | |
tree | 97f80d200749ab16b1a334fc7ef8979d51c0d19a | |
parent | e1a4c41ff2e44d3efe32f6b428b0db3eaedf851c (diff) | |
download | ptxdist-252cf4f1a0d239feb199f8dd89db9917a8840274.tar.gz ptxdist-252cf4f1a0d239feb199f8dd89db9917a8840274.tar.xz |
udev: Use ptxdist kernel headers
When a toolchain without kernel headers (such as the Lite version from
Codesourcery) or with very old kernel header is used, udev doesn't build
because videodev.h is missing.
This patch adds the $(KERNEL_HEADERS_INCLUDE_DIR) to the include path of
udev like it's done for busybox or barebox.
Tested on ARM with kernel headers 2.6.36.4 (the version
OSELAS.Toolchain() is currently using).
Signed-off-by: Bernhard Walle <walle@corscience.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/udev.make | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rules/udev.make b/rules/udev.make index ac2f0d44f..b57bd0110 100644 --- a/rules/udev.make +++ b/rules/udev.make @@ -47,6 +47,11 @@ $(UDEV_SOURCE): # # autoconf + +UDEV_CONF_ENV := \ + $(CROSS_ENV) \ + CPPFLAGS="-I$(KERNEL_HEADERS_INCLUDE_DIR) $(CROSS_CPPFLAGS)" + # # Note: explicit sbindir to avoid "${exec_prefix}/sbin/" on the target. UDEV_AUTOCONF := \ |