Skip to content

Commit

Permalink
[script] perserving the permission when cp openthread files (#95)
Browse files Browse the repository at this point in the history
In some environments, `cp` may produce files which have different
permissions from the source files. This can fail the build of
OTBR. Hence we need to add `-p` option in the command to preserve the
permissions.
  • Loading branch information
superwhd authored Oct 18, 2024
1 parent ded4908 commit d1651ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script/make-firmware.bash
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ build_ot()
rm -rf openthread
# git_archive_all doesn't accept symbolic link, so make a copy of openthread and make
# it not a submodule
cp -r ../openthread .
cp -rp ../openthread .
rm openthread/.git

# Build
Expand Down
2 changes: 1 addition & 1 deletion script/otbr-setup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ apt-get install -y --no-install-recommends git python3-pip
su -c "DOCKER=1 ${build_options[*]} script/bootstrap" pi

rm -rf /home/pi/repo/ot-br-posix/third_party/openthread/repo
cp -r /home/pi/repo/openthread /home/pi/repo/ot-br-posix/third_party/openthread/repo
cp -rp /home/pi/repo/openthread /home/pi/repo/ot-br-posix/third_party/openthread/repo

apt-get purge -y cmake
pip3 install scikit-build
Expand Down

0 comments on commit d1651ac

Please sign in to comment.