fix KPATCH_BUILD path

use the build symlink in /lib/modules for a more portable
path to the build env for the kernel.

Signed-off-by: Seth Jennings <sjenning@redhat.com>
This commit is contained in:
Seth Jennings 2014-03-05 11:31:15 -06:00
parent e33695be27
commit 2419410a52

View File

@ -1,5 +1,5 @@
# make rules
KPATCH_BUILD ?= /usr/src/kernels/$(shell uname -r)
KPATCH_BUILD ?= /lib/modules/$(shell uname -r)/build
THISDIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
ifeq ($(wildcard $(KPATCH_BUILD)),)