On Tue, 21 Apr 2020 at 21:18, Raghu K via Hafnium < hafnium@lists.trustedfirmware.org> wrote:
All,
I was looking at the hafnium repositories on trusted firmware and was wondering how we envision managing the project on trustedfirmware.org vs googlesource. Is the plan to set up this project to be like googlesource, i.e using repo to manage the multiple repositories ? There appears to be dependencies on third party tools/prebuilts in the BUILD.gn files so using something like repo even on trustedfirmware.org sounds useful.
The plan is to continue using git submodules for this. The main Hafnium repository has submodules for: prebuilts driver/linux project/reference third_party/dtc third_party/googletest third_party/linux
The .gitmodules file currently still points to the old URLs but this will be updated once the migration is complete. (We are currently blocked on getting CI running on the new infrastructure.) The advantage of submodules over repo for this is that it ties specific versions together, which is important for bisection or otherwise checking out old versions to work properly. Often we make changes in one repository which need to happen at the same time as a change in another repository for the build to work. Repo doesn't provide a way to link versions together like this. We were using repo for some internal Google tools which don't support submodules, but this shouldn't be necessary anymore.
Andrew, Joanna, thanks.
-Raghu
On 4/22/20 2:27 AM, Andrew Walbran wrote:
On Tue, 21 Apr 2020 at 21:18, Raghu K via Hafnium <hafnium@lists.trustedfirmware.org mailto:hafnium@lists.trustedfirmware.org> wrote:
All, I was looking at the hafnium repositories on trusted firmware and was wondering how we envision managing the project on trustedfirmware.org <http://trustedfirmware.org> vs googlesource. Is the plan to set up this project to be like googlesource, i.e using repo to manage the multiple repositories ? There appears to be dependencies on third party tools/prebuilts in the BUILD.gn files so using something like repo even on trustedfirmware.org <http://trustedfirmware.org> sounds useful.
The plan is to continue using git submodules for this. The main Hafnium repository has submodules for: prebuilts driver/linux project/reference third_party/dtc third_party/googletest third_party/linux
The .gitmodules file currently still points to the old URLs but this will be updated once the migration is complete. (We are currently blocked on getting CI running on the new infrastructure.) The advantage of submodules over repo for this is that it ties specific versions together, which is important for bisection or otherwise checking out old versions to work properly. Often we make changes in one repository which need to happen at the same time as a change in another repository for the build to work. Repo doesn't provide a way to link versions together like this. We were using repo for some internal Google tools which don't support submodules, but this shouldn't be necessary anymore.
hafnium@lists.trustedfirmware.org