Skip to content

Commit 290c486

Browse files
committed
docker: Refactor git fetch commands in Containerfile
Updated the git fetch command for the fork repository to remove the no-recurse-submodules option and streamlined the handling of the Broadcom platform by removing unnecessary submodule sync commands. Signed-off-by: Chiho Sin <[email protected]>
1 parent e99a4a2 commit 290c486

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Containerfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ RUN git config --global --add safe.directory /workspace \
2929
&& git repack -d \
3030
&& git remote add fork "${BUILD_FORK_REPO}" \
3131
&& git fetch fork --filter=tree:0 \
32-
&& git fetch --no-recurse-submodules --filter=tree:0 fork "${BUILD_FORK_REF}" \
32+
&& git fetch --filter=tree:0 fork "${BUILD_FORK_REF}" \
3333
&& git checkout -b fork-branch "fork/${BUILD_FORK_REF}" \
3434
&& git repack -d
3535

@@ -43,12 +43,6 @@ ARG ARM_TOOLCHAIN_EABI_VERSION="14.2.rel1"
4343
ARG ARM_TOOLCHAIN_ELF_VERSION="13.3.rel1"
4444
ARG BUILD_PLATFORM
4545

46-
# Broadcom
47-
RUN if [ "${BUILD_PLATFORM}" = "broadcom" ]; then \
48-
git submodule sync --recursive; \
49-
git submodule update --init --recursive --filter=tree:0 ports/broadcom/firmware; \
50-
fi
51-
5246
RUN if [ "${BUILD_PLATFORM}" != "zephyr-cp" ]; then \
5347
make -C ports/"${BUILD_PLATFORM}" fetch-port-submodules; \
5448
fi

0 commit comments

Comments
 (0)