developer | 953cd0a | 2024-08-19 17:53:40 +0800 | [diff] [blame] | 1 | SUMMARY = "Mediatek PCE Driver" |
| 2 | LICENSE = "GPL-2.0" |
| 3 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" |
| 4 | |
| 5 | inherit module |
| 6 | |
| 7 | DEPENDS += "virtual/kernel" |
| 8 | |
| 9 | SRC_URI = "git://gerrit.mediatek.inc/openwrt/feeds/mtk_openwrt_feeds;protocol=https;branch=master;destsuffix=git" |
| 10 | SRCREV = "${AUTOREV}" |
| 11 | |
| 12 | S = "${WORKDIR}/git/feed/kernel/pce/src" |
| 13 | |
| 14 | PKG_MAKE_FLAGS = " \ |
| 15 | CONFIG_MTK_PCE=m \ |
| 16 | " |
| 17 | |
| 18 | EXTRA_CFLAGS += " \ |
| 19 | -Wall -Werror \ |
| 20 | -I${S}/inc \ |
| 21 | " |
| 22 | |
| 23 | EXTRA_OEMAKE = " \ |
| 24 | -C ${STAGING_KERNEL_BUILDDIR}/ \ |
| 25 | M=${S} \ |
| 26 | ${PKG_MAKE_FLAGS} \ |
| 27 | EXTRA_CFLAGS='${EXTRA_CFLAGS}' \ |
| 28 | " |
| 29 | |
| 30 | do_configure[noexec] = "1" |
| 31 | MAKE_TARGETS = "modules" |
| 32 | do_make_scripts[depends] += "virtual/kernel:do_shared_workdir" |
| 33 | |
| 34 | do_install_append() { |
| 35 | # Install header files for depedency modules |
| 36 | cp -r ${S}/inc/pce ${STAGING_KERNEL_BUILDDIR}/source/include |
| 37 | |
| 38 | # Module |
| 39 | cat ${D}/usr/include/pce/Module.symvers >> ${TMPDIR}/work-shared/${MACHINE}/kernel-build-artifacts/Module.symvers |
| 40 | } |