adding modules to nginx #yocto
Hello Guys i am trying to add a lua module into my nginx by yocto recipe.
for this i added one bbappend file to add module to nginx recipe
and secondly i added a bb file fetch sources and placing it to nginx sysroot directory
*nginx_%.bbappend*
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
DEPENDS += "ngx-lua-module"
EXTRA_OECONF += " --add-module=${STAGING_DIR_ TARGET}/ngx-lua-module "
*and ngx-lua-module.bb ( http://ngx-lua-module.bb )*
SUMMARY = "lua module for nginx"
LICENSE = "GPLv2"LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/ MIT;md5= 0835ade698e0bcf8506ecda2f7b4f3 02"
SRC_URI = "git:// github.com/openresty/ lua-nginx-module.git;protocol= https ( http://github.com/openresty/lua-nginx-module.git;protocol=https ) "
PV = "1.5+git${SRCPV}"
SRCREV = " c06793c3e1431b24332b8b0239cc43 df43361941"
S = "${WORKDIR}/git"SYSROOT_DIRS += "/${PN}"
DEPENDS += "luajit"
do_configure[noexec] = "1"
do_compile[noexec] = "1"
do_install () {
cd ${S}
git checkout-index -a --prefix=${D}/${PN}/
cd -
}
FILES_${PN} = "${PN}/* ${S}/*.*"
So when i build nginx it tries to add the module but it complains that
Quoted 4 lines
./configure: error: unsupported LuaJIT version;
ngx_http_lua_modulerequires LuaJIT 2.x.
i checked the configuration file of nginx and it tries to look for header file for luajit and it can not find it hence complains. but when i checked the recipe-sysroot of nginx the the header files are present at location recipe-sysroot/usr/include/ luajit-2.0
and i think recipe does not include this location automatically and only looks in recipe-sysroot/usr/include
*so my question is how can i include this directory so that recipe looks into above mentioned folder also..* *and similar question is for library also*
Any inputs would be highly appriciated