blob: cfc191dee26f84bda79a71cbcf6a213a86d62554 [file] [log] [blame]
developerf11ee162022-04-12 11:17:45 +08001FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
2FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}/generic/backport-5.4:"
3FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}/generic/pending-5.4:"
4FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}/generic/hack-5.4:"
5FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}/mediatek/patches-5.4:"
6
7KBRANCH ?= "v5.4/standard/base"
8
9LINUX_VERSION ?= "5.4.183"
10SRCREV_machine ?= "f840db108606f987e174f1658dc120795798e808"
11KMETA = "kernel-meta"
12SRCREV_meta ?= "feeb59687bc0f054af837a5061f8d413ec7c93e9"
13
14DEPENDS_append = " kern-tools-native xz-native bc-native"
15
16SRC_URI = " \
17 git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \
18 git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.4;destsuffix=${KMETA} \
19 file://generic \
20 file://mediatek \
21 file://generic/defconfig \
22 file://001-rdkb-eth-mtk-change-ifname-for.patch;apply=no \
23 file://002-rdkb-mtd-ubi-relayout.patch;apply=no \
24 "
25SRC_URI += " \
26 file://rdkb_cfg/iptables.cfg \
27 file://rdkb_cfg/turris_rdkb.cfg \
28 file://rdkb_cfg/openvswitch.cfg \
29 file://rdkb_cfg/mac80211.cfg \
30 file://rdkb_cfg/prplmesh.cfg \
31"
32
33SRC_URI_append_mt7986 += " \
34 file://mediatek/mt7986.cfg \
35"
36SRC_URI_append_mt7986-32bit += " \
37 file://mediatek/mt7986-32bit.cfg \
38"
39
40require ${PN}-${PV}/generic/backport-5.4/backport-5.4.inc
41
42require ${PN}-${PV}/generic/pending-5.4/pending-5.4.inc
43SRC_URI_remove = " \
44 file://530-jffs2_make_lzma_available.patch \
45 "
46require ${PN}-${PV}/generic/hack-5.4/hack-5.4.inc
47SRC_URI_remove = " \
48 file://531-debloat_lzma.patch \
49 "
50require ${PN}-${PV}/mediatek/patches-5.4/patches-5.4.inc
51SRC_URI_remove = " \
52 file://1004_remove_eth_transmit_timeout_hw_reset.patch \
53 file://1005-mtkhnat-fix-pse-hang-for-multi-stations.patch \
54 file://738-mt7531-gsw-internal_phy_calibration.patch \
55 file://739-mt7531-gsw-port5_external_phy_init.patch \
56 file://9010-iwconfig-wireless-rate-fix.patch \
57 file://9999-null-test.patch \
58 "
59require linux-mediatek.inc
60
61do_patch_prepend () {
62 cp -Rfp ${WORKDIR}/generic/files/* ${S}/
63 cp -Rfp ${WORKDIR}/generic/files-5.4/* ${S}/
64 cp -Rfp ${WORKDIR}/mediatek/files-5.4/* ${S}/
65}
66
67do_filogic_patches() {
68 cd ${S}
69 if [ ! -e patch_applied ]; then
70 patch -p1 < ${WORKDIR}/001-rdkb-eth-mtk-change-ifname-for.patch
71 patch -p1 < ${WORKDIR}/002-rdkb-mtd-ubi-relayout.patch
72 touch patch_applied
73 fi
74}
75
76addtask filogic_patches after do_patch before do_compile