Signed-off-by: Alexander Dahl <[email protected]>
---
 rules/oprofile.make |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/rules/oprofile.make b/rules/oprofile.make
index af4a883..dabf5f8 100644
--- a/rules/oprofile.make
+++ b/rules/oprofile.make
@@ -36,10 +36,15 @@ OPROFILE_CONF_OPT   := \
        $(CROSS_AUTOCONF_USR) \
        --target=$(PTXCONF_GNU_TARGET) \
        --disable-gui \
-       --with-kernel=$(KERNEL_HEADERS_INCLUDE_DIR) \
        --without-java \
        --without-x
 
+ifdef PTXCONF_KERNEL_HEADER
+    OPROFILE_CONF_OPT   += --with-kernel=$(KERNEL_HEADERS_DIR)
+else
+    OPROFILE_CONF_OPT   += --without-kernel
+endif
+
 # ----------------------------------------------------------------------------
 # Target-Install
 # ----------------------------------------------------------------------------
-- 
1.7.10.4


-- 
ptxdist mailing list
[email protected]

Reply via email to