blob: 958fe48d231f965fae142b1e2f8aa13483a0aca6 [file] [log] [blame]
developer90379572024-05-29 17:23:20 +08001#@TYPE: Machine
2#@NAME: mediatek filogic
3#@NEEDED_BSPLAYERS: meta-filogic
4#@DESCRIPTION: Machine configuration for running a RDK broadband on mediatek filogic
5#@RDK_FLAVOR: rdkb
6
7include conf/machine/filogic.conf
8
9MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
10
11MACHINE_IMAGE_NAME = "rdkb-generic-broadband-image"
12
13MACHINEOVERRIDES .= ":broadband:filogic:mt7986:aarch64"
14
15PREFERRED_PROVIDER_u-boot-fw-utils = "libubootenv"
16
17PREFERRED_VERSION_xfsprogs = "4.8.0"
18PREFERRED_VERSION_php_dunfell = "7.1.%"
19PREFERRED_VERSION_php-native_dunfell = "7.1.%"
20
21PREFERRED_PROVIDER_virtual/kernel = "linux-mediatek"
22PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
23PREFERRED_VERSION_linux-mediatek = "5.4.%"
24PREFERRED_VERSION_linux-libc-headers = "5.4"
25
26PREFERRED_PROVIDER_virtual/wifi-hal ?= "wifi-hal-generic"
27#PREFERRED_PROVIDER_hal-wifi = "hal-wifi-mt76"
28PREFERRED_VERSION_iw_filogic = "5.%"
29#wifi bsp from openwrt
30PREFERRED_VERSION_hostapd = "2.10"
31PREFERRED_VERSION_wpa-supplicant = "2.10"
32PREFERRED_VERSION_linux-mac80211 = "5.15.%"
33PREFERRED_VERSION_linux-mt76 = "2.%"
34PREFERRED_VERSION_lua = "5.3.%"
35#masking files for dunfell build
36require conf/include/filogic-bbmasks.inc
37#require conf/include/rdk-external-src-platform.inc
38
39DISTRO_FEATURES_append = " meshwifi"
40DISTRO_FEATURES_append = " ipv6"
41DISTRO_FEATURES_append = " kernel_in_ubi"
42#DISTRO_FEATURES_append = " switch_gsw_mode"
43DISTRO_FEATURES_append = " fwupgrade_manager"
44DISTRO_FEATURES_append = " mt76"
45DISTRO_FEATURES_append = " flow_offload"
46#DISTRO_FEATURES_append = " logan"
47#DISTRO_FEATURES_append = " mtk_easymesh"
48# kernel 5.4 gold linker 'arm-rdk-linux-gnueabi-ld' not supported
49#DISTRO_FEATURES_append = " referencepltfm "
50#DISTRO_FEATURES_remove = " ld-is-gold"
51BBMASK .= "|meta-filogic-logan/recipes-wifi/"
52BBMASK .= "|meta-filogic/recipes-wifi/hal/"
53BBMASK .= "|meta-filogic/recipes-wifi/wpa-supplicant/"
54BBMASK .= "|meta-filogic/recipes-wifi/hostapd/"
55#for sdk support
56INHERIT_append = " uninative"
57
58BOOT_SUFFIX = "bin"
59MACHINE_FEATURES = "ext2 ipsec nfs pci smbfs usbgadget usbhost vfat"
60
61#for secure boot support
62#DISTRO_FEATURES_append = " secure_boot"
63MACHINEOVERRIDES .="${@bb.utils.contains('DISTRO_FEATURES','secure_boot',':secureboot','',d)}"
64SECURE_BOOT_KEYNAME_secureboot = "fit_key"
65SECURE_BOOT_KEYDIR_secureboot = "${TOPDIR}/../keys"
66FIT_HASH_ALG_secureboot ="sha1"
67HASHED_BOOT_DEVICE_secureboot = "252:0"
68
69# for efuse tools
70#DISTRO_FEATURES_append = " efuse_tools"
71
72DISTRO_FEATURES_append_broadband = " rdkb_xdsl_ppp_manager"
73# REFPLTB-1546 : WiFi HAL 3.0 support for RPI
74DISTRO_FEATURES_append_broadband = " halVersion3"
75
76# Fix MeshAgent build errors
77DISTRO_FEATURES_append_broadband = " WanFailOverSupportEnable"
78
79#rdk-wifi-libhostap support for broadband
80DISTRO_FEATURES_append_broadband = " HOSTAPD_2_10"
81
82# OneWifi feature
83DISTRO_FEATURES_append_broadband = " OneWifi"
84
85# REFPLTB-1775: Sky team's fix for erouter0 IP issue
86DISTRO_FEATURES_append_broadband = " RbusBuildFlagEnable"
87
88INCOMPATIBLE_LICENSE = "GPL-3.0 LGPL-3.0 AGPL-3.0"
89PACKAGECONFIG_remove_pn-gdb = "readline"
90#DISTRO_FEATURES_append_broadband = " offchannel_scan_5g"