Skip to content

Commit

Permalink
Fix check_aux_bus on dkms build
Browse files Browse the repository at this point in the history
  • Loading branch information
cardigliano committed Oct 11, 2023
1 parent 1c8eaa3 commit 25a8814
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/intel/Makefile.dkms.ice.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ all: install
add: veryclean
\/bin/rm -rf /usr/src/@ICE@-zc-@ICE_VERSION@.@REVISION@
mkdir -p /usr/src/@ICE@-zc-@ICE_VERSION@.@REVISION@/
cp @ICE@/@ICE@-@ICE_VERSION@-zc/scripts/check_aux_bus /usr/src/@ICE@-zc-@ICE_VERSION@.@REVISION@/
cd @ICE@/@ICE@-@ICE_VERSION@-zc/src/ ; make clean; cp -r * /usr/src/@ICE@-zc-@ICE_VERSION@.@REVISION@/
cp ../../kernel/linux/pf_ring.h /usr/src/@ICE@-zc-@ICE_VERSION@.@REVISION@/
sed -i -e 's/ice\.o/ice_zc.o/' -e 's/ice-/ice_zc-/' /usr/src/@ICE@-zc-@ICE_VERSION@.@REVISION@/Kbuild
Expand Down
3 changes: 3 additions & 0 deletions drivers/intel/ice/ice-1.12.7-zc/src/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,9 @@ export INSTALL_MOD_DIR ?= updates/drivers/net/ethernet/intel/${DRIVER}
# auxiliary module. Run the script to determine if we need to include
# auxiliary files with this build.
CHECK_AUX_BUS ?= ../scripts/check_aux_bus
ifeq ($(call test_file,${CHECK_AUX_BUS}),)
CHECK_AUX_BUS ?= ./check_aux_bus
endif
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
Expand Down

0 comments on commit 25a8814

Please sign in to comment.