diff options
-rw-r--r-- | rules/canutils.in | 1 | ||||
-rw-r--r-- | rules/canutils.make | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/rules/canutils.in b/rules/canutils.in index 2d6a4d2a4..7197e9a66 100644 --- a/rules/canutils.in +++ b/rules/canutils.in @@ -1,5 +1,6 @@ menuconfig CANUTILS bool "canutils " + select KERNEL help The canutils package contains tools to configure and test the Socket CAN framework. diff --git a/rules/canutils.make b/rules/canutils.make index 2ad78ce76..5b78981a1 100644 --- a/rules/canutils.make +++ b/rules/canutils.make @@ -21,7 +21,6 @@ CANUTILS_VERSION := $(call remove_quotes, $(PTXCONF_CANUTILS_VERSION)) CANUTILS := canutils-$(CANUTILS_VERSION) CANUTILS_SUFFIX := tar.bz2 CANUTILS_URL = http://www.pengutronix.de/software/socket-can/download/canutils/v$(shell echo $(PTXCONF_CANUTILS_VERSION)|sed "s/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1.\2/")/$(CANUTILS).$(CANUTILS_SUFFIX) - CANUTILS_SOURCE := $(SRCDIR)/$(CANUTILS).$(CANUTILS_SUFFIX) CANUTILS_DIR := $(BUILDDIR)/$(CANUTILS) @@ -72,6 +71,7 @@ $(STATEDIR)/canutils.prepare: $(canutils_prepare_deps_default) @$(call clean, $(CANUTILS_DIR)/config.cache) cd $(CANUTILS_DIR) && \ $(CANUTILS_PATH) $(CANUTILS_ENV) \ + CPPFLAGS="-I${KERNEL_DIR}/include $${CPPFLAGS}" \ ./configure $(CANUTILS_AUTOCONF) @$(call touch, $@) @@ -83,7 +83,7 @@ canutils_compile: $(STATEDIR)/canutils.compile $(STATEDIR)/canutils.compile: $(canutils_compile_deps_default) @$(call targetinfo, $@) - cd $(CANUTILS_DIR) && $(CANUTILS_ENV) $(CANUTILS_PATH) make + cd $(CANUTILS_DIR) && $(CANUTILS_ENV) $(CANUTILS_PATH) $(MAKE) @$(call touch, $@) # ---------------------------------------------------------------------------- |