From 80ef98d7170939dbe62c4fa00fbce55d18041bd3 Mon Sep 17 00:00:00 2001 From: xiehang Date: Mon, 18 Dec 2023 16:09:14 +0800 Subject: [PATCH] fix(phy): All chip support cert_test --- components/esp_phy/CMakeLists.txt | 12 ++++++++++-- examples/phy/.build-test-rules.yml | 2 +- examples/phy/cert_test/README.md | 6 +++--- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/components/esp_phy/CMakeLists.txt b/components/esp_phy/CMakeLists.txt index f690d246e2..d29b86f5d0 100644 --- a/components/esp_phy/CMakeLists.txt +++ b/components/esp_phy/CMakeLists.txt @@ -80,8 +80,16 @@ if(link_binary_libs) endif() if(CONFIG_ESP_PHY_ENABLE_CERT_TEST) - target_link_libraries(${COMPONENT_LIB} INTERFACE $ libbttestmode.a - librfate.a librftest.a $) + if(CONFIG_IDF_TARGET_ESP32) + target_link_libraries(${COMPONENT_LIB} INTERFACE $ libbttestmode.a + librftest.a $) + elseif(CONFIG_IDF_TARGET_ESP32S2) + target_link_libraries(${COMPONENT_LIB} INTERFACE $ librftest.a + librfate.a $) + else() + target_link_libraries(${COMPONENT_LIB} INTERFACE $ libbttestmode.a + librfate.a librftest.a $) + endif() endif() endif() diff --git a/examples/phy/.build-test-rules.yml b/examples/phy/.build-test-rules.yml index 78b3f1475e..c0445ccffb 100644 --- a/examples/phy/.build-test-rules.yml +++ b/examples/phy/.build-test-rules.yml @@ -2,6 +2,6 @@ examples/phy/cert_test: enable: - - if: IDF_TARGET in ["esp32c3", "esp32s3"] + - if: IDF_TARGET in ["esp32", "esp32c2", "esp32c3", "esp32c6", "esp32h2", "esp32s2", "esp32s3"] temporary: true reason: the other targets are not tested yet diff --git a/examples/phy/cert_test/README.md b/examples/phy/cert_test/README.md index fa8dd04ba3..3ac5021bfd 100644 --- a/examples/phy/cert_test/README.md +++ b/examples/phy/cert_test/README.md @@ -1,5 +1,5 @@ -| Supported Targets | ESP32-C3 | ESP32-S3 | -| ----------------- | -------- | -------- | +| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-S2 | ESP32-S3 | +| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | # Certification Test Example @@ -121,4 +121,4 @@ For BLE test, if you want to use `fcc_le_tx` and `rw_le_rx_per` legacy commands ## Troubleshooting -For any technical queries, please open an [issue](https://github.com/espressif/esp-idf/issues) on GitHub. We will get back to you soon. \ No newline at end of file +For any technical queries, please open an [issue](https://github.com/espressif/esp-idf/issues) on GitHub. We will get back to you soon.