Skip to content

Commit

Permalink
[Infineon] update docker to use ModusToolbox 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenCY committed Jul 30, 2024
1 parent 268e7ca commit 8f210b0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion integrations/docker/images/base/chip-build/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
67 : [ESP32] Update esp-idf to v5.3
67 : [Infineon] Update ModusToolbox version to 3.2
28 changes: 15 additions & 13 deletions integrations/docker/images/stage-2/chip-build-infineon/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,27 @@ RUN set -x \
file \
libglib2.0-0 \
libusb-1.0-0 sudo \
libxcb-xinerama0 \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-render-util0 \
libxkbcommon-x11-0 \
&& rm -rf /var/lib/apt/lists/ \
&& : # last line

# ------------------------------------------------------------------------------
# Download and extract ModusToolbox 2.3
RUN curl --fail --location --show-error \
https://itoolspriv.infineon.com/itbhs/api/packages/com.ifx.tb.tool.modustoolbox/Versions/2.4.0.5972-public/artifacts/ModusToolbox_2.4.0.5972-linux-install.tar.gz/download?noredirect \
-o /tmp/ModusToolbox_2.4.0.5972-linux-install.tar.gz \
&& tar -C /opt -zxf /tmp/ModusToolbox_2.4.0.5972-linux-install.tar.gz \
&& rm /tmp/ModusToolbox_2.4.0.5972-linux-install.tar.gz
# Download ModusToolbox 3.2
RUN curl --fail --location --silent --show-error https://itoolspriv.infineon.com/itbhs/api/packages/com.ifx.tb.tool.modustoolbox/Versions/3.2.0.16028-public/artifacts/ModusToolbox_3.2.0.16028-linux-install.deb/download?noredirect -o /tmp/ModusToolbox_3.2.0.16028-linux-install.deb

# ------------------------------------------------------------------------------
# Execute post-build scripts
RUN /opt/ModusToolbox/tools_2.4/modus-shell/postinstall
# Install ModusToolbox 3.2
RUN apt install /tmp/ModusToolbox_3.2.0.16028-linux-install.deb

# NOTE: udev rules are NOT installed:
# /opt/ModusToolbox/tools_2.4/fw-loader/udev_rules/install_rules.sh
# because docker containers do not support udev
# ------------------------------------------------------------------------------
# Remove ModusToolbox deb file
RUN rm /tmp/ModusToolbox_3.2.0.16028-linux-install.deb

# ------------------------------------------------------------------------------
# Set environment variable required by ModusToolbox application makefiles
ENV CY_TOOLS_PATHS="/opt/ModusToolbox/tools_2.4"
# Sets CY_TOOLS_PATHS by running below command
RUN bash --login

0 comments on commit 8f210b0

Please sign in to comment.