developer | f11ee16 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:" |
| 2 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}/generic/backport-5.4:" |
| 3 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}/generic/pending-5.4:" |
| 4 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}/generic/hack-5.4:" |
| 5 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}/mediatek/patches-5.4:" |
| 6 | |
| 7 | KBRANCH ?= "v5.4/standard/base" |
| 8 | |
developer | 49e6396 | 2022-04-19 10:14:08 +0800 | [diff] [blame] | 9 | LINUX_VERSION ?= "5.4.188" |
| 10 | SRCREV_machine ?= "d47303abd67e589778c28f3ccc688a0e12ba5692" |
developer | f11ee16 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 11 | KMETA = "kernel-meta" |
| 12 | SRCREV_meta ?= "feeb59687bc0f054af837a5061f8d413ec7c93e9" |
| 13 | |
| 14 | DEPENDS_append = " kern-tools-native xz-native bc-native" |
| 15 | |
| 16 | SRC_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 | " |
developer | f11ee16 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 25 | |
| 26 | SRC_URI_append_mt7986 += " \ |
| 27 | file://mediatek/mt7986.cfg \ |
| 28 | " |
| 29 | SRC_URI_append_mt7986-32bit += " \ |
developer | 49e6396 | 2022-04-19 10:14:08 +0800 | [diff] [blame] | 30 | file://mediatek/patches-32bit-5.4/mt7986-32bit.cfg \ |
| 31 | file://mediatek/patches-32bit-5.4/401-pinctrl-add-mt7986-driver-32bit.patch \ |
| 32 | file://mediatek/patches-32bit-5.4/999-add_armv7_support_for_panther.patch \ |
developer | f11ee16 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 33 | " |
developer | 21164f3 | 2022-04-22 16:48:46 +0800 | [diff] [blame^] | 34 | SRC_URI_append += " \ |
| 35 | file://rdkb_cfg/iptables.cfg \ |
| 36 | file://rdkb_cfg/turris_rdkb.cfg \ |
| 37 | file://rdkb_cfg/openvswitch.cfg \ |
| 38 | file://rdkb_cfg/mac80211.cfg \ |
| 39 | file://rdkb_cfg/prplmesh.cfg \ |
| 40 | " |
developer | f11ee16 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 41 | require ${PN}-${PV}/generic/backport-5.4/backport-5.4.inc |
| 42 | |
| 43 | require ${PN}-${PV}/generic/pending-5.4/pending-5.4.inc |
| 44 | SRC_URI_remove = " \ |
| 45 | file://530-jffs2_make_lzma_available.patch \ |
| 46 | " |
| 47 | require ${PN}-${PV}/generic/hack-5.4/hack-5.4.inc |
| 48 | SRC_URI_remove = " \ |
| 49 | file://531-debloat_lzma.patch \ |
| 50 | " |
| 51 | require ${PN}-${PV}/mediatek/patches-5.4/patches-5.4.inc |
| 52 | SRC_URI_remove = " \ |
developer | f11ee16 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 53 | file://738-mt7531-gsw-internal_phy_calibration.patch \ |
| 54 | file://739-mt7531-gsw-port5_external_phy_init.patch \ |
developer | 49e6396 | 2022-04-19 10:14:08 +0800 | [diff] [blame] | 55 | " |
| 56 | SRC_URI_remove_mt7986-32bit = " \ |
| 57 | file://401-pinctrl-add-mt7986-driver.patch \ |
developer | f11ee16 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 58 | " |
| 59 | require linux-mediatek.inc |
| 60 | |
| 61 | do_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 | |
| 67 | do_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 |
developer | 49e6396 | 2022-04-19 10:14:08 +0800 | [diff] [blame] | 72 | patch -p1 < ${WORKDIR}/0600-net-phylink-propagate-resolved-link-config-via-mac_l.patch |
| 73 | patch -p1 < ${WORKDIR}/9010-iwconfig-wireless-rate-fix.patch |
developer | f11ee16 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 74 | touch patch_applied |
| 75 | fi |
| 76 | } |
| 77 | |
| 78 | addtask filogic_patches after do_patch before do_compile |