FILESEXTRAPATHS:prepend := "${THISDIR}/files:" SRC_URI += " file://0001-enable-shared-library.patch " EXTRA_OEMAKE += " R='${PV}'" do_install:append () { # Your code here install -d ${D}${libdir} install -m 0755 ${S}/src/liblua.so.${PV} ${D}${libdir}/ ln -sf liblua.so.${PV} ${D}${libdir}/liblua.so }