[oe] how to use other package headers from sysroots while compiling myrecipe

srinredplano SP srinredplano at gmail.com
Fri Feb 18 00:18:26 UTC 2011


Hi All,

I want to use the headers of liboil-0.3.17-r1 which are in " ....
sysroots/armv7a-none-linux-gnueabi/usr/include/liboil-0.3/ "  for
compiling   my gstreamer.bb  file
I have modified  gstreamer.bb  file as show below . But still i could
not see the  the liboil headers path getting included while compiling
my gstreamer package .
Was able to compile by adding  the path to CFALGS_append

gstreamer.bb
##=======================================================
require gstreamer-ti.inc
PV = "svnr${SRCREV}"
S = "${WORKDIR}/gst-dmai-plugins"
SRCREV = "1037"


DEPENDS += " virtual/kernel liboil "


#CPPFLAGS_append = " -I${STAGING_KERNEL_DIR}
-I${STAGING_KERNEL_DIR}/include -L${STAGING_KERNEL_DIR}/lib
-I${STAGING_DIR_TARGET}/usr/include/liboil-0.3 "


EXTRA_OECONF += " --with-liboil=${STAGING_DIR_TARGET}/usr/include/liboil-0.3 "


SRC_URI = "my path xxxxxxxx" \
file://xyz.patch \
"
do_install_prepend () {

    install -d ${D}/${installdir}/gst/${PLATFORM}

    # delete .svn files
    find ${D}/${installdir}/gst -name .svn -type d | xargs rm -rf
    chmod 0755 ${D}/${installdir}/gst -R

    install -d ${D}${sysconfdir}/init.d/
}
##=======================================================




More information about the Openembedded-devel mailing list