diff options
Diffstat (limited to 'recipes-bsp/multitech/mtac_4.0.0.bb')
-rw-r--r-- | recipes-bsp/multitech/mtac_4.0.0.bb | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/recipes-bsp/multitech/mtac_4.0.0.bb b/recipes-bsp/multitech/mtac_4.0.0.bb index 33001c2..86385c1 100644 --- a/recipes-bsp/multitech/mtac_4.0.0.bb +++ b/recipes-bsp/multitech/mtac_4.0.0.bb @@ -20,6 +20,7 @@ S = "${WORKDIR}/git" inherit module EXTRA_OEMAKE = " -C ${STAGING_KERNEL_DIR} \ + EXTRA_CFLAGS='-I${STAGING_INCDIR}/mts-kernel-headers' \ KBUILD_VERBOSE=1 \ M=${S} \ modules \ @@ -32,43 +33,17 @@ do_compile () { oe_runmake } -L1 = "${STAGING_KERNEL_DIR}/include/linux/" - -# Bitbake/Yocto automatically installs in to L2. -L2 = "${STAGING_INCDIR}/linux/" - -L3 = "${D}/usr/include/linux/" - PACKAGES = "kernel-module-${PN} ${PN}-dev" FILES_kernel-module-${PN} = "${base_libdir}/modules/${KERNEL_VERSION}/extra/mtac.ko" -FILES_${PN}-dev += "/usr/include/linux/mtac.h" - PARALLEL_MAKE = "" fakeroot do_install () { install -m 0755 -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra - install -d ${D}/usr/include/linux/ # use cp instead of install so the driver doesn't get stripped cp ${S}/mtac.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra - install -m 0644 ${S}/mtac.h ${L1} - install -m 0644 ${S}/mtac.h ${L3} -} - -# Yocto seems to insist on Python for this function -# This function is to make debugging easier, so the package -# can be built a 2nd time. -fakeroot do_cleansstate_prepend() { - L1 = d.getVar("L1",True) - L2 = d.getVar("L2",True) - bb.note("L1 is " + L1) - bb.note("L2 is " + L2) - F1 = L1 + "/mtac.h" - F2 = L2 + "/mtac.h" - if os.path.exists(F1): - os.remove(F1) - if os.path.exists(F2): - os.remove(F2) + install -d ${D}${includedir}/mts-kernel-headers/linux + install -m 0644 ${S}/mtac.h ${D}${includedir}/mts-kernel-headers/linux } |