Skip to content

Commit fb7112d

Browse files
Add Support for ESP-IDF v5.5 (backport #325) (#345)
* Add Support for ESP-IDF v5.5 (#325) Co-authored-by: @YanKE01 Co-authored-by: Narukara <narukara17@gmail.com> (cherry picked from commit 56d5afc) Co-authored-by: Aarav Gupta <aarav@spikonado.com>
1 parent 5c0322e commit fb7112d

5 files changed

Lines changed: 5 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
matrix:
2626
idf_target: [esp32, esp32s2, esp32s3, esp32c3, esp32c6, esp32p4]
2727
idf_version: [v5.2, v5.3, v5.4, v5.5]
28+
exclude:
29+
- idf_target: esp32p4
30+
idf_version: v5.2
2831

2932
container:
3033
image: "espressif/idf:release-${{ matrix.idf_version }}"

CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,14 @@ execute_process(
7171
${submake} -j -f libmicroros.mk
7272
X_CC=${CMAKE_C_COMPILER}
7373
X_AR=${CMAKE_AR}
74-
X_STRIP=${CMAKE_STRIP}
75-
X_CFLAGS=${CMAKE_C_FLAGS}
7674
X_CXX=${CMAKE_CXX_COMPILER}
77-
X_CXXFLAGS=${CMAKE_CXX_FLAGS}
7875
C_STANDARD=${CMAKE_C_STANDARD}
7976
MIDDLEWARE=${MIDDLEWARE}
8077
BUILD_DIR=${CMAKE_BINARY_DIR}
8178
IDF_INCLUDES=${IDF_INCLUDES}
8279
IDF_PATH=${IDF_PATH}
8380
IDF_TARGET=${IDF_TARGET}
8481
APP_COLCON_META=${APP_COLCON_META}
85-
IDF_VERSION_MAJOR=${IDF_VERSION_MAJOR}
86-
IDF_VERSION_MINOR=${IDF_VERSION_MINOR}
8782
EXTRA_ROS_PACKAGES=${EXTRA_ROS_PACKAGES}
8883
)
8984
if(libmicroros_ret AND NOT libmicroros_ret EQUAL 0)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ docker run -it --rm --net=host microros/micro-ros-agent:jazzy udp4 --port 8888 -
6363
It's possible to build this example application using the official Espressif [docker images](https://hub.docker.com/r/espressif/idf), following the same steps:
6464

6565
```bash
66-
docker run --name micro-ros-espidf-component -it espressif/idf:release-v5.4 bash
66+
docker run --name micro-ros-espidf-component -it espressif/idf:release-v5.5 bash
6767

6868
git clone -b jazzy https://github.com/micro-ROS/micro_ros_espidf_component.git
6969
cd micro_ros_espidf_component/

libmicroros.mk

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ else
1010
BUILD_TYPE = Release
1111
endif
1212

13-
CFLAGS_INTERNAL := $(X_CFLAGS) -ffunction-sections -fdata-sections
14-
CXXFLAGS_INTERNAL := $(X_CXXFLAGS) -ffunction-sections -fdata-sections
15-
1613
all: $(EXTENSIONS_DIR)/libmicroros.a
1714

1815
clean:
@@ -27,8 +24,6 @@ $(EXTENSIONS_DIR)/esp32_toolchain.cmake: $(EXTENSIONS_DIR)/esp32_toolchain.cmake
2724
cat $(EXTENSIONS_DIR)/esp32_toolchain.cmake.in | \
2825
sed "s/@CMAKE_C_COMPILER@/$(subst /,\/,$(X_CC))/g" | \
2926
sed "s/@CMAKE_CXX_COMPILER@/$(subst /,\/,$(X_CXX))/g" | \
30-
sed "s/@CFLAGS@/$(subst /,\/,$(CFLAGS_INTERNAL))/g" | \
31-
sed "s/@CXXFLAGS@/$(subst /,\/,$(CXXFLAGS_INTERNAL))/g" | \
3227
sed "s/@IDF_TARGET@/$(subst /,\/,$(IDF_TARGET))/g" | \
3328
sed "s/@IDF_PATH@/$(subst /,\/,$(IDF_PATH))/g" | \
3429
sed "s/@BUILD_CONFIG_DIR@/$(subst /,\/,$(BUILD_DIR)/config)/g" \

network_interfaces/uros_ethernet_netif.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,4 +172,4 @@ esp_err_t uros_network_interface_initialize(void)
172172
return ESP_OK;
173173
}
174174

175-
#endif
175+
#endif

0 commit comments

Comments
 (0)