blob: a48aa08bc56b1c38dbbe66e8e342e394ca9ac190 [file] [log] [blame]
developer953cd0a2024-08-19 17:53:40 +08001SUMMARY = "Mediatek PCE Driver"
2LICENSE = "GPL-2.0"
3LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
4
5inherit module
6
7DEPENDS += "virtual/kernel"
8
9SRC_URI = "git://gerrit.mediatek.inc/openwrt/feeds/mtk_openwrt_feeds;protocol=https;branch=master;destsuffix=git"
10SRCREV = "${AUTOREV}"
11
12S = "${WORKDIR}/git/feed/kernel/pce/src"
13
14PKG_MAKE_FLAGS = " \
15 CONFIG_MTK_PCE=m \
16 "
17
18EXTRA_CFLAGS += " \
19 -Wall -Werror \
20 -I${S}/inc \
21 "
22
23EXTRA_OEMAKE = " \
24 -C ${STAGING_KERNEL_BUILDDIR}/ \
25 M=${S} \
26 ${PKG_MAKE_FLAGS} \
27 EXTRA_CFLAGS='${EXTRA_CFLAGS}' \
28 "
29
30do_configure[noexec] = "1"
31MAKE_TARGETS = "modules"
32do_make_scripts[depends] += "virtual/kernel:do_shared_workdir"
33
34do_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}