[meta-fsl-arm,01/25] linux-imx.inc: Add user-space headers install support

Submitted by Otavio Salvador on Oct. 28, 2013, 6:10 p.m.

Details

Message ID 1382983863-5208-2-git-send-email-otavio@ossystems.com.br
State Deferred, archived
Delegated to: Otavio Salvador
Headers show

Commit Message

Otavio Salvador Oct. 28, 2013, 6:10 p.m.
The kernels newer than 3.10 has the i.MX specific headers under uapi
directory, install those.

Change-Id: I0a78474e00c0958eab151d5f73d57ebb2e0c8686
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 recipes-kernel/linux/linux-imx.inc | 6 ++++++
 1 file changed, 6 insertions(+)

Patch hide | download patch | download mbox

diff --git a/recipes-kernel/linux/linux-imx.inc b/recipes-kernel/linux/linux-imx.inc
index f08978a..2b2af78 100644
--- a/recipes-kernel/linux/linux-imx.inc
+++ b/recipes-kernel/linux/linux-imx.inc
@@ -62,6 +62,12 @@  do_install_append() {
 
 		# Host architecture object file
 		rm -f $kerneldir/scripts/kconfig/kxgettext.o
+
+	fi
+
+	# 3.10 or newer kernels has the i.MX specific headers in uapi
+	if [ -d include/uapi/linux ]; then
+		cp include/uapi/linux/mxc*.h ${STAGING_INCDIR}/uapi || true
 	fi
 }