@@ -220,18 +220,22 @@ build_gnuradio() {
220220 -DENABLE_POSTINSTALL=OFF \
221221 "
222222
223- if [ $TOOLCHAIN_HOST == " arm-linux-gnueabihf" ]; then
224- PYTHON_WRAPPER=" $STAGING_AREA /python-wrapper.sh"
225- echo ' #!/bin/bash' > $PYTHON_WRAPPER
226- echo "
227- LOADER=" $SYSROOT /lib/ld-linux-armhf.so.3"
228- LIB_PATH=" $SYSROOT /usr/lib/arm-linux-gnueabihf"
229- PYTHON_BIN=" $SYSROOT /usr/bin/python3"
230- " >> $PYTHON_WRAPPER
231- echo ' exec $LOADER --library-path $LIB_PATH $PYTHON_BIN "$@"' >> $PYTHON_WRAPPER
232- chmod +x $PYTHON_WRAPPER
233- CURRENT_BUILD_CMAKE_OPTS=" ${CURRENT_BUILD_CMAKE_OPTS} -DPYTHON_EXECUTABLE=${PYTHON_WRAPPER} \ "
234- fi
223+ # This is not needed anymore, (don't know why) but it was used as a workaround to execute the python binary, from the sysroot, in the host machine
224+ # it was needed because, for some reason, the gnuradio build process needed to execute the binary at build time
225+ # if [ $TOOLCHAIN_HOST == "arm-linux-gnueabihf" ]; then
226+ # PYTHON_WRAPPER="$STAGING_AREA/python-wrapper.sh"
227+ # echo '#!/bin/bash' > $PYTHON_WRAPPER
228+ # echo "
229+ # LOADER="$SYSROOT/lib/ld-linux-armhf.so.3"
230+ # LIB_PATH="$SYSROOT/usr/lib/arm-linux-gnueabihf"
231+ # PYTHON_BIN="$SYSROOT/usr/bin/python3"
232+ # " >> $PYTHON_WRAPPER
233+ # echo 'exec $LOADER --library-path $LIB_PATH $PYTHON_BIN "$@"'>> $PYTHON_WRAPPER
234+ # chmod +x $PYTHON_WRAPPER
235+ # CURRENT_BUILD_CMAKE_OPTS="${CURRENT_BUILD_CMAKE_OPTS} -DPYTHON_EXECUTABLE=${PYTHON_WRAPPER} \ "
236+ # fi
237+ # although a better approch is to install qemu and to use:
238+ # exec qemu-arm -cpu cortex-a9 -L /home/runner/scopy/ci/arm/staging/sysroot $PYTHON_BIN "$@"
235239
236240 build_with_cmake
237241 sudo make install
0 commit comments