developer | 0d67a39 | 2022-07-15 11:55:52 +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 | |
| 5 | CFLAGS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'rdkb_wan_manager', ' -DFEATURE_RDKB_WAN_MANAGER ', '', d)}" |
| 6 | |
developer | de9196b | 2022-11-23 17:45:23 +0800 | [diff] [blame^] | 7 | CFLAGS_append_mt7988 = " -DTHREE_GMACS_SUPPORT" |
| 8 | |
developer | 0d67a39 | 2022-07-15 11:55:52 +0800 | [diff] [blame] | 9 | do_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 | } |