-
Notifications
You must be signed in to change notification settings - Fork 63
CrossCompile
Philip Balister edited this page Dec 18, 2013
·
3 revisions
I assume you already know how to build gnuradio natively.
- Build the cross toolchain with OpenEmbedded:
bitbake -c populate_sdk gnuradio-dev-image
-
Find the sdk:
$ ls tmp-eglibc/deploy/sdk/
oecore-x86_64-armv7a-vfp-neon-toolchain-nodistro.0.sh -
Install the sdk:
'$ sudo sh tmp-eglibc/deploy/sdk/oecore-x86_64-armv7a-vfp-neon-toolchain-nodistro.0.sh`
- Source the environment file.
$ . /usr/local/oecore-x86_64/environment-setup-armv7a-vfp-neon-oe-linux-gnueabi
- Make the build directory in the gnuradio source directory.
$ mkdir build-arm
- Run cmake.
$ cmake -Wno-dev -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchains/oe-sdk_cross.cmake -DENABLE_GR_ATSC=OFF -DENABLE_GR_VOCODER=OFF ../
- Build GNU Radio
$ make -j 8
- Mount your home directory via sshfs. Do this on the target. Replace username with yours.
# mkdir /home/username
# sshfs -o allow_root username@host: /home/user
- On the target run the QA code. Adjust path to match your setup.
# cd /home/username/gnuradio/build
# make test