Skip to content

Commit c8d71f6

Browse files
mergify[bot]DedSecerCarlosespicurEugenioCollado
committed
fix include path (#790)
* fix include path (#781) * fix include path * Trigger CI Signed-off-by: Carlosespicur <[email protected]> --------- Signed-off-by: Carlosespicur <[email protected]> Co-authored-by: Carlosespicur <[email protected]> (cherry picked from commit 22cf5e0) * Remove rsync & execute only in non-host scenario Signed-off-by: Eugenio Collado <[email protected]> --------- Signed-off-by: Carlosespicur <[email protected]> Signed-off-by: Eugenio Collado <[email protected]> Co-authored-by: DedSecer <[email protected]> Co-authored-by: Carlosespicur <[email protected]> Co-authored-by: Eugenio Collado <[email protected]> (cherry picked from commit 52d6a34)
1 parent 3ed703f commit c8d71f6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

scripts/build_firmware.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,17 @@ else
7676
. $PREFIX/config/$RTOS/$PLATFORM/build.sh
7777
fi
7878

79+
######## Fix include paths ########
80+
if [ "$RTOS" != "host" ]; then
81+
cd "$FW_TARGETDIR/mcu_ws"
82+
INCLUDE_ROS2_PACKAGES=$(colcon list | awk '{print $1}' | awk -v d=" " '{s=(NR==1?s:s d)$0}END{print s}')
83+
84+
for var in ${INCLUDE_ROS2_PACKAGES}; do
85+
if [ -d "$FW_TARGETDIR/build/include/${var}/${var}" ]; then
86+
mkdir -p "$FW_TARGETDIR/build/include/${var}"
87+
cp -a "$FW_TARGETDIR/build/include/${var}/${var}/". "$FW_TARGETDIR/build/include/${var}/"
88+
rm -rf "$FW_TARGETDIR/build/include/${var}/${var}"
89+
fi
90+
done
91+
fi
92+

0 commit comments

Comments
 (0)