From b381473a0fad838c23fd9ff355b25b4b9d391c6e Mon Sep 17 00:00:00 2001 From: Javier Viguera Date: Wed, 25 Sep 2013 16:18:51 +0200 Subject: [PATCH] dey-examples: use kernel staging include files This allows to build dey-examples while using the linux-libc-headers provided by Yocto. Signed-off-by: Javier Viguera --- meta-digi-dey/recipes-digi/dey-examples/dey-examples-adc.bb | 4 +++- .../recipes-digi/dey-examples/dey-examples-sahara.bb | 3 ++- .../recipes-digi/dey-examples/dey-examples-v4l2.bb | 6 ++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-adc.bb b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-adc.bb index 1e87519e7..e6bdb39c8 100644 --- a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-adc.bb +++ b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-adc.bb @@ -5,6 +5,8 @@ SECTION = "examples" LICENSE = "GPL-2.0" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" +DEPENDS = "virtual/kernel" + PR = "${DISTRO}.r0" SRC_URI = "file://adc_test" @@ -14,7 +16,7 @@ UPPER_PLAT = "${@'${MACHINE}'.upper()}" S = "${WORKDIR}/adc_test" do_compile() { - ${CC} -O2 -Wall -D${UPPER_PLAT} adc_test.c -o adc_test -lm + ${CC} -O2 -Wall -I${STAGING_KERNEL_DIR}/include -D${UPPER_PLAT} adc_test.c -o adc_test -lm } do_install() { diff --git a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-sahara.bb b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-sahara.bb index 0776249d0..47969c622 100644 --- a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-sahara.bb +++ b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-sahara.bb @@ -5,7 +5,7 @@ SECTION = "examples" LICENSE = "GPL-2.0" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" -DEPENDS = "imx-lib" +DEPENDS = "imx-lib virtual/kernel" RDEPENDS_${PN} = "kernel-module-scc2-driver kernel-module-sahara" @@ -37,6 +37,7 @@ S = "${WORKDIR}/sahara_test" do_compile() { ${CC} -O2 -Wall -DCONFIG_ARCH_MX5 -DSAHARA2 -DSAHARA \ + -I${STAGING_KERNEL_DIR}/include \ -I${STAGING_KERNEL_DIR}/drivers/mxc/security/sahara2/include \ ${SAHARA_TEST_SRC} -lsahara -o sahara_test } diff --git a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-v4l2.bb b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-v4l2.bb index 246d1c2f8..4bcba8beb 100644 --- a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-v4l2.bb +++ b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-v4l2.bb @@ -5,6 +5,8 @@ SECTION = "examples" LICENSE = "GPL-2.0" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" +DEPENDS = "virtual/kernel" + PR = "${DISTRO}.r0" RDEPENDS_${PN} = "kernel-module-mt9v111-camera" @@ -14,8 +16,8 @@ SRC_URI = "file://v4l2_test" S = "${WORKDIR}/v4l2_test" do_compile() { - ${CC} -O2 -Wall v4l2_still.c -o v4l2_still -lpthread - ${CC} -O2 -Wall v4l2_common.c v4l2_preview_test.c -o v4l2_preview_test -lpthread + ${CC} -O2 -Wall -I${STAGING_KERNEL_DIR}/include v4l2_still.c -o v4l2_still -lpthread + ${CC} -O2 -Wall -I${STAGING_KERNEL_DIR}/include v4l2_common.c v4l2_preview_test.c -o v4l2_preview_test -lpthread } do_install() {