dbus-sensors: Remove kernel sources from include path
The Linux kernel userspace headers must be installed, not included
directly from the kernel source tree:
The correct way to package the header files for a distribution is to
run 'make headers_install' from the kernel source directory to install
the headers into /usr/include and then rebuild the C library package,
with a dependency on the specific version of the just installed kernel
headers.
Resolves: https://github.com/openbmc/openbmc/issues/3634
Change-Id: I88fc20c6e62a49c906522329fe1f5704f0a06f27
Signed-off-by: Joel Stanley <joel@jms.id.au>
diff --git a/recipes-phosphor/sensors/dbus-sensors_git.bb b/recipes-phosphor/sensors/dbus-sensors_git.bb
index 2a0d332..637327a 100644
--- a/recipes-phosphor/sensors/dbus-sensors_git.bb
+++ b/recipes-phosphor/sensors/dbus-sensors_git.bb
@@ -24,8 +24,4 @@
S = "${WORKDIR}/git/"
-# linux-libc-headers guides this way to include custom uapi headers
-CXXFLAGS_append = " -I ${STAGING_KERNEL_DIR}/include/uapi"
-CXXFLAGS_append = " -I ${STAGING_KERNEL_DIR}/include"
-do_configure[depends] += "virtual/kernel:do_shared_workdir"
EXTRA_OECMAKE = "-DYOCTO=1"