Skip to content

Commit

Permalink
Update cross-compile toolchain and chroot setup instructions for 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
Bckempa committed Nov 7, 2023
1 parent cc62a74 commit 2f8d1a7
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions doc/general_documentation/NASA_INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,18 @@ Next, download the cross toolchain and install the chroot:

mkdir -p $ARMHF_TOOLCHAIN
cd $HOME/arm_cross
$ASTROBEE_WS/src/submodules/platform/fetch_toolchain.sh
$ASTROBEE_WS/src/submodules/platform/rootfs/make_chroot.sh xenial dev $ARMHF_CHROOT_DIR

*Note: The last script shown above needs the packages `qemu-user-static` (not
`qemu-arm-static`) and `multistrap` to be installed (can be installed through apt).*
DIST=$(. /etc/os-release && echo $UBUNTU_CODENAME)
if [ ${DIST} == "kinetic" ]; then
# Use pre-built toolchain for 16.04
$ASTROBEE_WS/src/submodules/platform/fetch_toolchain.sh
else
# Use packaged toolchain for 20.04
sudo apt install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
fi
sudo apt install -y qemu-user-static multistrap

$ASTROBEE_WS/src/submodules/platform/rootfs/make_chroot.sh ${DIST} dev $ARMHF_CHROOT_DIR

### Cross-compile build

Expand Down

0 comments on commit 2f8d1a7

Please sign in to comment.