blob: 4f9c9ed7544e27f3dd0fc1121b9df7373dedd450 [file] [log] [blame]
developer0d67a392022-07-15 11:55:52 +08001SRC_URI += "git://gerrit.mediatek.inc/gateway/rdk-b/rdkb_hal;protocol=https;destsuffix=git/source/ethsw/rdkb_hal"
2
3SRCREV = "${AUTOREV}"
4
5CFLAGS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'rdkb_wan_manager', ' -DFEATURE_RDKB_WAN_MANAGER ', '', d)}"
6
developerde9196b2022-11-23 17:45:23 +08007CFLAGS_append_mt7988 = " -DTHREE_GMACS_SUPPORT"
8
developer0d67a392022-07-15 11:55:52 +08009do_configure_prepend(){
10 if ${@bb.utils.contains('DISTRO_FEATURES','switch_gsw_mode','true','false',d)}; then
11 ln -sf ${S}/rdkb_hal/src/ethsw/ccsp_hal_ethsw_gsw.c ${S}/ccsp_hal_ethsw.c
12 else
13 ln -sf ${S}/rdkb_hal/src/ethsw/ccsp_hal_ethsw.c ${S}/ccsp_hal_ethsw.c
14 fi
15}