Skip to content

Commit

Permalink
Update helper script
Browse files Browse the repository at this point in the history
  • Loading branch information
f0reachARR committed Feb 19, 2024
1 parent 67bc5ff commit 46290ff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion buildroot/scripts/entrypoint.bash
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ elif [ "$1" = 'bash' ]; then
bash
else
colcon "$@"
chown -R $ORIG_UID:$ORIG_GID /ws/install /ws/build /ws/log || true
chown -R $ORIG_UID:$ORIG_GID $PWD/install $PWD/build $PWD/log || true
fi
15 changes: 10 additions & 5 deletions buildroot/xcolcon
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@

set -e

docker run --rm -v $PWD/src:/ws/src -v $PWD/xbuild:/ws/build \
-v $PWD/xinstall:/ws/install -w /ws \
-e ORIG_UID=$(id -u) -e ORIG_GID=$(id -g) \
ghcr.io/fortefibre/buildroot:$ROS_DISTRO-aarch64 \
"$@"
if [ ! -f /proc/sys/fs/binfmt_misc/qemu-aarch64 ]; then
docker run --privileged --rm tonistiigi/binfmt --install all
fi

docker run --rm -v $PWD/src:$PWD/src -v $PWD/xbuild:$PWD/build \
-v $PWD/xinstall:$PWD/install -w $PWD \
-e ORIG_UID=$(id -u) -e ORIG_GID=$(id -g) -it \
--platform linux/arm64 \
ghcr.io/fortefibre/buildroot:$ROS_DISTRO-aarch64 \
"$@"

0 comments on commit 46290ff

Please sign in to comment.