mirror of https://github.com/google/oss-fuzz.git
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:
parent
d039e3f878
commit
d2c2b3086e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue