File tree Expand file tree Collapse file tree
.github/actions/build-kernel Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 if : false
1313 uses : ./.github/actions/set-kernel-config
1414
15+ - name : ' Provide host ld from repo prebuilts'
16+ shell : bash
17+ run : |
18+ # build.sh scrubs HOSTLDFLAGS from the env, so export it is useless.
19+ # Instead, put the repo-synced ld.lld on PATH as "ld": the prebuilt
20+ # clang defaults to the "ld" name and the runner image has no binutils.
21+ LDLLD=$(find "${{ github.workspace }}/kernel/prebuilts/clang" -name "ld.lld" -type f 2>/dev/null | sort | head -n 1)
22+ if [ -n "$LDLLD" ]; then
23+ sudo ln -sf "$LDLLD" /usr/local/bin/ld
24+ which ld && ld --version | head -n 1
25+ else
26+ echo "WARNING: prebuilt ld.lld not found under kernel/prebuilts/clang" >&2
27+ fi
28+
1529 - name : ' Build Kernel'
1630 shell : bash
1731 working-directory : ${{ github.workspace }}/kernel
You can’t perform that action at this time.
0 commit comments