M-Bab / linux-kernel-amdgpu-binaries

Kernel binaries (amd64) of amd-staging with DAL and latest security patches
214 stars 29 forks source link

linux-headers archives shipped w/o objtool binary #64

Closed m-ueberall closed 5 years ago

m-ueberall commented 6 years ago

Could you please check why the current "linux-headers" archives are missing the equivalent of the original linux-headers-*-generic*_<arch>.deb contents, including /usr/src/linux-headers-*-generic/tools/objtool/objtool (this is needed, e.g., if you want to build the zfs .deb packages for the kernel)?

m-ueberall commented 6 years ago

Update: If you use make deb-pkg instead of fakeroot make-kpkg, the resulting linux-headers* .deb archive does contain said binary:

$ dpkg -c linux-headers-4.17.2*.deb | grep "objtool$"
-rwxr-xr-x root/root    563880 2018-06-26 18:44 ./usr/src/linux-headers-4.17.2/tools/objtool/objtool
M-Bab commented 6 years ago

Unfortunately in my case the kernel never built properly with make deb-pkg...

M-Bab commented 5 years ago

@m-ueberall What was your command to build the kernel from source with make deb-pkg?

m-ueberall commented 5 years ago

@M-Bab I basically followed "Compiling a Kernel" from The Debian Administrator's Handbook and used the following script on an Intel NUC (hence the -j8):

#!/bin/sh
BUILD_DATE=yyyymmdd
BUILD_REVISION=1
#BUILD_OPTIONS="INSTALL_MOD_STRIP=1"
BUILD_OPTIONS=""
make -j8 DEBFULLNAME="myname" DEBEMAIL="myemailaddress" EXTRAVERSION=-amdgpu${BUILD_DATE} KDEB_PKGVERSION=$(make kernelversion)-${BUILD_REVISION} ${BUILD_OPTIONS} deb-pkg
viggy96 commented 5 years ago

Has this been resolved? For now my workaround is coping objtool binaries from an older kernel on my system...

viggy96 commented 5 years ago

Can we please include the objtool binary with these kernels?

M-Bab commented 5 years ago

Is fixed now.