Skip to content

Commit 024a228

Browse files
committed
SWPROT-8953: build: Allow args for helper rules and git tweak
This was needed to build docs package (once) from ci Origin: #30 Signed-off-by: Philippe Coval <[email protected]>
1 parent bd0ba53 commit 024a228

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

scripts/build-rootfs.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,14 @@ case ${chroot} in
157157
esac
158158

159159
${rootfs_shell} \
160-
apt-get install -y -- make sudo util-linux
160+
apt-get install -y -- make sudo util-linux git
161+
162+
# echo "log: To prevent 'fatal: detected dubious ownership in repository'"
163+
${rootfs_shell} \
164+
git config --global --add safe.directory "${CURDIR}"
165+
166+
args="help setup default"
167+
[ "$1" = "" ] || args="$@"
161168

162169
${rootfs_shell} \
163170
${MAKE} \
@@ -166,7 +173,7 @@ ${rootfs_shell} \
166173
USER="${USER}" \
167174
${env_vars} \
168175
-- \
169-
help setup default \
176+
${args} \
170177
target_debian_arch="${target_debian_arch}" \
171178
CMAKE_SYSTEM_PROCESSOR="${CMAKE_SYSTEM_PROCESSOR}" \
172179
CARGO_TARGET_TRIPLE="${CARGO_TARGET_TRIPLE}" \

0 commit comments

Comments
 (0)