/usr/bin/faust2bela is in faust 0.9.95~repack1-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #!/bin/bash
BEAGLERT="/usr/local/beaglert" # sources of beagleRT
BINARY="BeagleRT" # name of the binary we want to obtain
FILENAME=$1
CLASSNAME=`basename $FILENAME .dsp`
# list of cpp files needed to compile $BINARY
COREFILES="$BEAGLERT/core/default_main.cpp $BEAGLERT/core/DigitalChannelManager.cpp $BEAGLERT/core/GPIOcontrol.cpp $BEAGLERT/core/I2c_Codec.cpp $BEAGLERT/core/I2c_TouchKey.cpp $BEAGLERT/core/Midi.cpp $BEAGLERT/core/OSCClient.cpp $BEAGLERT/core/OSCServer.cpp $BEAGLERT/core/PRU.cpp $BEAGLERT/core/PulseIn.cpp $BEAGLERT/core/RTAudioCommandLine.cpp $BEAGLERT/core/RTAudio.cpp $BEAGLERT/core/Scope.cpp $BEAGLERT/core/UdpClient.cpp $BEAGLERT/core/UdpServer.cpp $BEAGLERT/core/WriteFile.cpp"
faust -i -a bela.cpp -cn $CLASSNAME $FILENAME -o render.cpp || exit
arm-linux-gnueabihf-g++ -O2 -L/usr/arm-linux-gnueabihf/lib -L/usr/arm-linux-gnueabihf/lib/xenomai -L/usr/lib/arm-linux-gnueabihf -L/usr/arm-linux-gnueabihf/include/xenomai/lib -pthread -rdynamic -I/usr/arm-linux-gnueabihf/include/xenomai/include -I$BEAGLERT/include -o $BINARY $COREFILES render.cpp $BEAGLERT/libprussdrv.a $BEAGLERT/libNE10.a -lrt -lnative -lxenomai || exit
rm render.cpp
echo "$BINARY;"
|