Skip to content

Commit

Permalink
fix(pkg/driverbuilder): fixed debian_kernel template.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP committed Mar 13, 2024
1 parent ec18417 commit d32b74f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/driverbuilder/builder/templates/debian_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ curl --silent -o kernel.deb -SL {{ $url }}
ar x kernel.deb
tar -xf data.tar.xz
{{ end }}

cd usr/src/
sourcedir=$(find . -type d -name "{{ .KernelHeadersPattern }}" | head -n 1 | xargs readlink -f)

# Patch makefile to avoid using absolute `/usr/src` path; instead use `..` relative one.
sed -i 's/\/usr\/src/../g' $sourcedir/Makefile

# exit value
echo $sourcedir

0 comments on commit d32b74f

Please sign in to comment.