Skip to content

Commit

Permalink
Fix use of vendored lwip from EFR32 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mspang committed Dec 15, 2023
1 parent e7cd41b commit 3c815b8
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/lwip/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@ buildconfig_header("lwip_buildconfig") {
if (current_os == "zephyr" || current_os == "mbed") {
group("lwip") {
}
} else if (lwip_platform == "silabs") {
group("lwip") {
public_deps = [ "${lwip_root}:lwip" ]
}
} else if (lwip_platform == "external" || lwip_platform == "mw320") {
group("lwip") {
public_deps = [ ":lwip_buildconfig" ]
Expand All @@ -127,7 +123,7 @@ if (current_os == "zephyr" || current_os == "mbed") {
include_dirs = [ "freertos" ]
}

lwip_target("lwip") {
lwip_target("legacy_lwip") {
public = [
"${qpg_sdk_root}/Components/ThirdParty/Lwip/arch/cc.h",
"${qpg_sdk_root}/Components/ThirdParty/Lwip/arch/perf.h",
Expand All @@ -144,6 +140,10 @@ if (current_os == "zephyr" || current_os == "mbed") {
"${chip_root}/src:includes",
]
}

group("lwip") {
public_deps = [":legacy_lwip"]
}
} else if (lwip_platform == "bl602") {
group("lwip") {
public_deps = [ ":lwip_buildconfig" ]
Expand Down Expand Up @@ -191,7 +191,7 @@ if (current_os == "zephyr" || current_os == "mbed") {
}
}

lwip_target("lwip") {
lwip_target("legacy_lwip") {
public = [
"${lwip_platform}/arch/cc.h",
"${lwip_platform}/arch/perf.h",
Expand Down Expand Up @@ -220,6 +220,8 @@ if (current_os == "zephyr" || current_os == "mbed") {
public_deps += [ "${ti_simplelink_sdk_build_root}:ti_simplelink_sdk" ]
sources +=
[ "${chip_root}/third_party/lwip/repo/lwip/src/apps/mdns/mdns.c" ]
} else if (lwip_platform == "silabs") {
public_deps += [ "${efr32_sdk_build_root}:efr32_sdk" ]
} else if (lwip_platform == "standalone") {
public_deps += [ "${chip_root}/src/lib/support" ]
} else if (lwip_platform == "k32w0") {
Expand All @@ -241,4 +243,8 @@ if (current_os == "zephyr" || current_os == "mbed") {
"${chip_root}/src:includes",
]
}

group("lwip") {
public_deps = [":legacy_lwip"]
}
}

0 comments on commit 3c815b8

Please sign in to comment.