Some fixes to build under dkms.

- Fix scripts/check_aux_bus location to where we install it
- Remove kcompat_generated_defs.h between builds
- Set BUILD_KERNEL (Intel wants BUILD_KERNEL, dkms sets KERNELRELEASE)

Index: ice-1.13.7/src/common.mk
===================================================================
--- ice-1.13.7.orig/src/common.mk
+++ ice-1.13.7/src/common.mk
@@ -42,7 +42,7 @@ cmd_depmod = /sbin/depmod $(if ${SYSTEM_
 DRIVER_UPPERCASE := $(shell echo ${DRIVER} | tr "[:lower:]" "[:upper:]")
 
 ifeq (,${BUILD_KERNEL})
-BUILD_KERNEL=$(shell uname -r)
+BUILD_KERNEL=$(shell echo $${KERNELRELEASE-$$(uname -r)})
 endif
 
 # Kernel Search Path
@@ -348,6 +348,7 @@ $(if $(shell \
     $(if $(findstring 1,${V}),,QUIET_COMPAT=1) \
     KSRC=${KSRC} OUT=${src}/kcompat_generated_defs.h CONFFILE=${CONFIG_FILE} \
     bash ${src}/kcompat-generator.sh && echo ok), , $(error kcompat-generator.sh failed))
+clean-files += ${src}/kcompat_generated_defs.h
 
 KCOMPAT_DEFINITIONS := $(shell ${CC} ${EXTRA_CFLAGS} -E -dM \
                                      -I${KOBJ}/include \
@@ -420,7 +421,7 @@ export INSTALL_MOD_DIR ?= updates/driver
 # If the check_aux_bus script exists, then this driver depends on the
 # auxiliary module. Run the script to determine if we need to include
 # auxiliary files with this build.
-CHECK_AUX_BUS ?= ../scripts/check_aux_bus
+CHECK_AUX_BUS ?= ${src}/scripts/check_aux_bus
 ifneq ($(call test_file,${CHECK_AUX_BUS}),)
 NEED_AUX_BUS := $(shell ${CHECK_AUX_BUS} --ksrc="${KSRC}" --build-kernel="${BUILD_KERNEL}" >/dev/null 2>&1; echo $$?)
 endif # check_aux_bus exists
Index: ice-1.13.7/src/Makefile
===================================================================
--- ice-1.13.7.orig/src/Makefile
+++ ice-1.13.7/src/Makefile
@@ -185,7 +185,7 @@ endif
 
 clean:
 	+$(call kernelbuild,clean)
-	@-rm -rf *.${MANSECTION}.gz *.ko
+	@-rm -rf *.${MANSECTION}.gz *.ko $(src)/kcompat_generated_defs.h
 ifneq ($(wildcard lttng),)
 	$(MAKE) -C lttng clean
 endif
@@ -258,7 +258,7 @@ uninstall: modules_uninstall mandocs_uni
 	$(call cmd_initramfs)
 
 auxiliary_info:
-	@../scripts/check_aux_bus --verbose --ksrc="${KSRC}" --build-kernel="${BUILD_KERNEL}"
+	@$(CHECK_AUX_BUS) --verbose --ksrc="${KSRC}" --build-kernel="${BUILD_KERNEL}"
 
 auxiliary_install:
 	${auxiliary_post_install}
