Build Third-Party Component
Building third-party components is a standard procedure after setting up the cross-compilation environment. If the project uses configure, you must specify the correct host triplet for your target platform.
Note
Before you run the following commands, ensure you have setup the cross compilation environment.
For eLxr-based Modalix targets, use the aarch64-linux-gnu host triplet.
user@elxr-sdk:~$ sudo apt update && sudo apt install -y autoconf automake libtool
user@elxr-sdk:~$ git clone https://github.com/htop-dev/htop.git
user@elxr-sdk:~$ cd htop
user@elxr-sdk:~/htop$ ./autogen.sh
user@elxr-sdk:~/htop$ ./configure --host=aarch64-linux-gnu --prefix=/usr
user@elxr-sdk:~/htop$ make
Copy the binary to the DevKit and run it:
user@elxr-sdk:~/htop$ scp htop sima@<Modalix-IP>:~/
user@elxr-sdk:~/htop$ ssh sima@<Modalix-IP> "./htop"
For Yocto-based MLSoC targets, use the aarch64-poky-linux host triplet.
user@yocto-sdk:~$ git clone https://github.com/htop-dev/htop.git
user@yocto-sdk:~$ cd htop
user@yocto-sdk:~/htop$ ./autogen.sh
user@yocto-sdk:~/htop$ ./configure --host=aarch64-poky-linux --prefix=/usr
user@yocto-sdk:~/htop$ make
Copy the binary to the DevKit and run it:
user@yocto-sdk:~/htop$ scp htop sima@<MLSoC-IP>:~/
user@yocto-sdk:~/htop$ ssh sima@<MLSoC-IP> "./htop"
One of the primary benefits of Modalix (eLxr) is the ability to build components directly on the target hardware, bypassing the need for a cross-compilation environment entirely.
Connect to your Modalix device via SSH.
Install the standard Debian build-essential tools:
sima@modalix:~$ sudo apt update
sima@modalix:~$ sudo apt install -y build-essential autoconf automake git
Clone and build the project on-device:
sima@modalix:~$ git clone https://github.com/htop-dev/htop.git
sima@modalix:~$ cd htop
sima@modalix:~/htop$ ./autogen.sh
sima@modalix:~/htop$ ./configure --prefix=/usr
sima@modalix:~/htop$ make
sima@modalix:~/htop$ ./htop