Skip to content

Commit

Permalink
kernel-binary: pass ARCH= to kernel build
Browse files Browse the repository at this point in the history
Recent kernel does not save CONFIG_64BIT so it has to be specified by
arch.
  • Loading branch information
hramrach committed Apr 24, 2018
1 parent 0b1b4d3 commit fb21b73
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions rpm/kernel-binary.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,24 @@ fi
--disable CONFIG_DEBUG_INFO
%endif

case %cpu_arch in
ppc*)
MAKE_ARGS="$MAKE_ARGS ARCH=powerpc"
;;
s390x)
MAKE_ARGS="$MAKE_ARGS ARCH=s390"
;;
arm64)
MAKE_ARGS="$MAKE_ARGS ARCH=arm64"
;;
armv*)
MAKE_ARGS="$MAKE_ARGS ARCH=arm"
;;
*)
MAKE_ARGS="$MAKE_ARGS ARCH=%cpu_arch"
;;
esac

makeoutputsync=
if make --output-sync --help >/dev/null 2>&1 ; then
makeoutputsync=--output-sync
Expand Down

0 comments on commit fb21b73

Please sign in to comment.