Skip to content

Commit 9ba91f2

Browse files
committed
kp_common/Dockerfile/build-env.sh: Add patchwise
Add Qualcomm's cool patchwise https://github.com/qualcomm/PatchWise export OPENAI_API_KEY=<your-api-key> you can even use patchwise for your locally hosted models: For example: patchwise --model=anthropic.claude-3-7-sonnet --provider=https://mygateway.me.local --repo-path . Add clangd as a dependency Signed-off-by: Nishanth Menon <nm@ti.com>
1 parent 05ad34d commit 9ba91f2

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ RUN apt-get update \
7777
&& apt-get install -y --no-install-recommends \
7878
llvm \
7979
clang \
80+
clangd \
8081
lld \
8182
&& echo "**** cleanup ****" \
8283
&& apt-get autoremove -y\

build-env.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ download_build_install_python_deps()
5252
# scripts/spdxcheck.py dependencies
5353
python -m pip install --upgrade ply gitpython yamllint rfc3987 pylibfdt
5454
python -m pip install git+https://github.com/devicetree-org/dt-schema.git@$DTSCHEMA_REV
55+
python -m pip install patchwise
5556
rm -rf "/tmp/.cache/" /tmp/get-pip.py
5657
}
5758

kp_common

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,9 @@ extra_paths=(
8181
/opt/cross-gcc-linux-9/bin
8282
)
8383

84+
# Pass OpenAPI key if defined to the container environment for PatchWise
85+
if [ -n "${OPENAI_API_KEY}" ]; then
86+
DOCKER_ARGS+=(-e OPEN_API_KEY="${OPENAI_API_KEY}")
87+
fi
88+
8489
KP_PATH=$(IFS=:; printf '%s' "${extra_paths[*]}")

0 commit comments

Comments
 (0)