blob: c50feeed2bfd424dcc8ddc4dbfe9f469327e93d9 [file] [log] [blame]
developer15a43312022-04-12 11:23:23 +08001SRC_URI += "git://gerrit.mediatek.inc/gateway/rdk-b/rdkb_hal;protocol=https;destsuffix=git/source/ethsw/rdkb_hal"
2
3SRCREV = "${AUTOREV}"
4
developer1495e4d2022-04-14 17:58:16 +08005CFLAGS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'rdkb_wan_manager', ' -DFEATURE_RDKB_WAN_MANAGER ', '', d)}"
developer15a43312022-04-12 11:23:23 +08006
7do_configure_prepend(){
developereff887c2022-07-11 11:39:44 +08008 if ${@bb.utils.contains('DISTRO_FEATURES','switch_gsw_mode','true','false',d)}; then
9 ln -sf ${S}/rdkb_hal/src/ethsw/ccsp_hal_ethsw_gsw.c ${S}/ccsp_hal_ethsw.c
10 else
developer15a43312022-04-12 11:23:23 +080011 ln -sf ${S}/rdkb_hal/src/ethsw/ccsp_hal_ethsw.c ${S}/ccsp_hal_ethsw.c
developereff887c2022-07-11 11:39:44 +080012 fi
developer15a43312022-04-12 11:23:23 +080013}