Commit f2174947 authored by Abderrahmane's avatar Abderrahmane Committed by Erwan Gouriou
Browse files

Revert "scripts: serie_update: fetch submodules"

This reverts commit 818cef7f.
Changes introduced in 818cef7f (PR #182) are not enough to update
Cube packages correctly following the introduction of submodules in
the upstream STM32Cube GitHub repos. PR #184 gives a more effective
solution.

Signed-off-by: default avatarAbderrahmane Jarmouni <abderrahmane.jarmouni-ext@st.com>
parent 818cef7f
Loading
Loading
Loading
Loading
+1 −9
Changes for scripts/serie_update.py: 1 added line, 9 removed lines.
Original line number Diff line number Diff line
@@ -192,22 +192,14 @@ class Stm32SerieUpdate:
            # if already exists, then just clean and fetch
            self.os_cmd(("git", "clean", "-fdx"), cwd=self.stm32cube_serie_path)
            self.os_cmd(("git", "fetch"), cwd=self.stm32cube_serie_path)
            # this is useful when HAL drivers submodules are not aleardy
            # present locally, otherwise "git fetch" is sufficient
            self.os_cmd(("git", "submodule", "update", "--init"),
                        cwd=self.stm32cube_serie_path)
            branch = self.major_branch()
            self.os_cmd(
                ("git", "reset", "--hard", branch),
                cwd=self.stm32cube_serie_path,
            )
        else:
            # HAL drivers are now included as git submodules in upstream
            # STM32Cube repositories
            # So, we need to add --recursive or --recurse-submodules to
            # "git clone" to fetch them
            self.os_cmd(
                ("git", "clone", "--recursive", repo_name),
                ("git", "clone", repo_name),
                cwd=self.stm32cube_repo_path,
            )
            branch = self.major_branch()