From d2c2b3086e54b51baa26ac0e0ff12fda292959ff Mon Sep 17 00:00:00 2001 From: Andy Ross Date: Wed, 24 May 2023 15:22:14 -0700 Subject: [PATCH] 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 --- projects/sound-open-firmware/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/projects/sound-open-firmware/Dockerfile b/projects/sound-open-firmware/Dockerfile index 05193be9b..f44d8b410 100644 --- a/projects/sound-open-firmware/Dockerfile +++ b/projects/sound-open-firmware/Dockerfile @@ -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