projects/sound-open-firmware: Fix remote name to be "origin" (#10385)

The srcmap tool assumes that all git trees will have been pulled from a
remote named "origin", which is not true for west. Hack in a duplicate
remote to conform to convention.

Signed-off-by: Andy Ross <andyross@google.com>
This commit is contained in:
Andy Ross 2023-05-24 15:22:14 -07:00 committed by GitHub
parent d039e3f878
commit d2c2b3086e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -44,6 +44,12 @@ WORKDIR $SRC
RUN west init -m https://github.com/thesofproject/sof sof
RUN cd sof && west update
# Sort of a kludge: oss-fuzz has a "srcmap" tool to generate
# origin/commit info for .git directories automatically. But it
# assumes that the remote is named "origin", which is not true for
# west (by design!). Fix up a fake "origin"
RUN cd sof; sh -c "$(west list -f '(cd {path}; git remote add origin {url});' | sed 1d)"
# Zephyr has its own python requirements
RUN pip3 install -r sof/zephyr/scripts/requirements-base.txt