summaryrefslogtreecommitdiffstats
path: root/rules/canutils.in
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2009-08-11 13:45:42 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2009-08-11 13:54:46 +0200
commit2f24903142111fa85b37f8178ec2d55d6a4712a3 (patch)
tree5af66799eaf9847bfd0d8c913d537558c6dde3b0 /rules/canutils.in
parent19915a7ce3a8d8affffcee65764cf6cbcecdc549 (diff)
downloadptxdist-2f24903142111fa85b37f8178ec2d55d6a4712a3.tar.gz
ptxdist-2f24903142111fa85b37f8178ec2d55d6a4712a3.tar.xz
[canutils] add option to select between toolchain's and BSP's kernel headers
The canutils need the linux/can.h header from the kernel. Normally this header is provided by the toolchain. If the user is using a toolchain based on a kernel < 2.6.25 the header is missing. In the past PTXdist uses the BSP's kernel headers instead, but with kernel > 2.6.30 this may breaks with the following error message: "error: asm/bitsperlong.h: No such file or directory" So we give the user (or rather the BSP integrator) the choice to select between these two..... Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'rules/canutils.in')
-rw-r--r--rules/canutils.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/rules/canutils.in b/rules/canutils.in
index ba98184ca..c48959b2e 100644
--- a/rules/canutils.in
+++ b/rules/canutils.in
@@ -3,6 +3,7 @@
menuconfig CANUTILS
tristate
prompt "canutils "
+ select KERNEL if CANUTILS_BSP_KERNEL
help
The canutils package contains tools to configure
and test the Socket CAN framework.
@@ -14,6 +15,17 @@ config CANUTILS_VERSION
string
default "3.0.2"
+config CANUTILS_BSP_KERNEL
+ bool "use BSP's kernel headers instead of toolchain's"
+ help
+ Select this if you're using a toolchain based on a
+ kernel < 2.6.25. This kernel doesn't provide the
+ necessary headers.
+
+ On the other hand, don't select it for BSP
+ kernels > 2.6.30, otherwise compilation breaks with:
+ "error: asm/bitsperlong.h: No such file or directory"
+
config CANUTILS_CANCONFIG
bool
prompt "canconfig"