Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit

Permalink
Source /custom-data/setup.bash on sysroot build (#322)
Browse files Browse the repository at this point in the history
* Source /custom-data/setup.bash on sysroot build

Signed-off-by: Michel Hidalgo <[email protected]>
  • Loading branch information
hidmic authored Jun 11, 2021
1 parent 2795a54 commit c5cb4de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ add-apt-repository ppa:rpi-distro/ppa
apt-get install -y pigpio
```

Additionally, a custom setup script may control the build environment by populating the `/custom-data/setup.bash` file which will be sourced before building.

### Custom post-build script

You may want to perform arbitrary post-processing on your build outputs, in the event of a sucessful build - use `--custom-post-build-script` for this.
Expand Down
4 changes: 4 additions & 0 deletions ros_cross_compile/docker/build_workspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ touch /opt/ros/"${ROS_DISTRO}"/setup.bash
set +ux
# shellcheck source=/dev/null
source /opt/ros/"${ROS_DISTRO}"/setup.bash
if [ -f /custom-data/setup.bash ]; then
# shellcheck source=/dev/null
source /custom-data/setup.bash
fi
set -ux
colcon build --mixin "${TARGET_ARCH}"-docker \
--build-base build_"${TARGET_ARCH}" \
Expand Down

0 comments on commit c5cb4de

Please sign in to comment.