blob: c3c0cc52969dc102ebb99e5bfe7693382a227b8f [file] [log] [blame]
developer93e97202024-01-17 12:29:44 +08001SRC_URI += "git://gerrit.mediatek.inc/gateway/rdk-b/rdkb_hal;protocol=https;branch=master;destsuffix=git/source/ethsw/rdkb_hal"
developer3b7aaa72022-07-15 11:55:52 +08002
3SRCREV = "${AUTOREV}"
4
5CFLAGS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'rdkb_wan_manager', ' -DFEATURE_RDKB_WAN_MANAGER ', '', d)}"
6
developer56baff32024-10-17 13:34:32 +08007CFLAGS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'three_gmac', ' -DTHREE_GMACS_SUPPORT ', '', d)}"
developer139ca352022-11-23 17:45:23 +08008
developer3b7aaa72022-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}