linux4.14-headers: include objtool only for the supported architecture (x86_64)

Closes: #9335 [via git-merge-pr]
This commit is contained in:
Helmut Pozimski 2017-11-19 10:03:10 +01:00 committed by Jürgen Buchmüller
parent c7a5b962cb
commit 706661b2f3

View File

@ -236,8 +236,12 @@ do_install() {
cp fs/xfs/libxfs/xfs_sb.h ${hdrdest}/fs/xfs/libxfs/xfs_sb.h
# Add objtool binary, needed to build external modules with dkms
mkdir -p ${hdrdest}/tools/objtool
cp tools/objtool/objtool ${hdrdest}/tools/objtool
case "$XBPS_TARGET_MACHINE" in
x86_64*)
mkdir -p ${hdrdest}/tools/objtool
cp tools/objtool/objtool ${hdrdest}/tools/objtool
;;
esac
# Copy in Kconfig files
for i in $(find . -name "Kconfig*"); do