Skip to content

Commit

Permalink
[Mellanox]Passing the installed kernel headers during SDK compilation (
Browse files Browse the repository at this point in the history
…sonic-net#19115)

Passing the last installed kernel headers during SDK compilation. Without this the SDK does uname -r which gives the kernel version of the host machine in the slave docker. But these kernel headers are not installed in the slave docker leading to compilation failure.
  • Loading branch information
dgsudharsan authored and pull[bot] committed Oct 9, 2024
1 parent eb73a38 commit a9126da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/mellanox/sdk-src/wjh-libs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
./autogen.sh
fi

debuild -b -us -uc -j$(SONIC_CONFIG_MAKE_JOBS)
debuild -e 'KVERSION=$(shell ls -t /lib/modules |head -1)' -b -us -uc -j$(SONIC_CONFIG_MAKE_JOBS)

popd

Expand Down

0 comments on commit a9126da

Please sign in to comment.