developer | 15a4331 | 2022-04-12 11:23:23 +0800 | [diff] [blame] | 1 | SRC_URI += "git://gerrit.mediatek.inc/gateway/rdk-b/rdkb_hal;protocol=https;destsuffix=git/source/ethsw/rdkb_hal" |
| 2 | |
| 3 | SRCREV = "${AUTOREV}" |
| 4 | |
developer | 1495e4d | 2022-04-14 17:58:16 +0800 | [diff] [blame] | 5 | CFLAGS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'rdkb_wan_manager', ' -DFEATURE_RDKB_WAN_MANAGER ', '', d)}" |
developer | 15a4331 | 2022-04-12 11:23:23 +0800 | [diff] [blame] | 6 | |
| 7 | do_configure_prepend(){ |
developer | eff887c | 2022-07-11 11:39:44 +0800 | [diff] [blame^] | 8 | 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 |
developer | 15a4331 | 2022-04-12 11:23:23 +0800 | [diff] [blame] | 11 | ln -sf ${S}/rdkb_hal/src/ethsw/ccsp_hal_ethsw.c ${S}/ccsp_hal_ethsw.c |
developer | eff887c | 2022-07-11 11:39:44 +0800 | [diff] [blame^] | 12 | fi |
developer | 15a4331 | 2022-04-12 11:23:23 +0800 | [diff] [blame] | 13 | } |