File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1- FROM ubuntu:20 .04
1+ FROM ubuntu:24 .04
22
33ARG DEBIAN_FRONTEND=noninteractive
44RUN apt-get update -y -q && apt-get upgrade -y -q && apt-get update -y -q && \
@@ -8,6 +8,7 @@ RUN apt-get update -y -q && apt-get upgrade -y -q && apt-get update -y -q && \
88 libreadline-dev \
99 libffi-dev \
1010 git \
11+ patchelf \
1112 pkg-config \
1213 gcc-arm-none-eabi \
1314 libnewlib-arm-none-eabi
Original file line number Diff line number Diff line change 3030 ci_unix_standard_build
3131)
3232
33- mkdir -p " ${DEST} " " ${DEST} /bin" " ${DEST} /tools" " ${DEST} /py"
33+ mkdir -p " ${DEST} " " ${DEST} /bin" " ${DEST} /tools" " ${DEST} /py" " ${DEST} /lib "
3434cp " ${REPO} /mpy-cross/build/mpy-cross" " ${DEST} /bin/mpy-cross"
3535cp " ${REPO} /ports/unix/build-standard/micropython" " ${DEST} /bin/micropython"
3636cp " ${REPO} /tools/mpy-tool.py" " ${DEST} /tools/mpy-tool.py"
3737cp " ${REPO} /py/makeqstrdata.py" " ${DEST} /py/makeqstrdata.py"
3838
39+ cp $( ldd " ${DEST} /bin/mpy-cross" " ${DEST} /bin/micropython" | grep -E ' => /' | grep -Ev ' lib(pthread|c|dl|rt).so' | awk ' {print $3}' ) " ${DEST} /lib"
40+ patchelf --set-rpath ' $ORIGIN/../lib' " ${DEST} /bin/mpy-cross" " ${DEST} /bin/micropython"
41+
3942complete " ${DEST} " " ${FULLNAME} " " ${OUTPUT} "
You can’t perform that action at this time.
0 commit comments