Extending 'configure' script
Functions and macros dependent on different kernel versions are now generated before compilation basing on current kernel capabilities instead of hardcoding them for specific kernels. Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
14
configure.d/Makefile
Normal file
14
configure.d/Makefile
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Copyright(c) 2012-2019 Intel Corporation
|
||||
# SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
#
|
||||
|
||||
obj-m += test_mod.o
|
||||
|
||||
MAKE_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||
|
||||
all:
|
||||
make -C /lib/modules/$(shell uname -r)/build M=$(MAKE_DIR) modules
|
||||
clean:
|
||||
make -C /lib/modules/$(shell uname -r)/build M=$(MAKE_DIR) clean
|
Reference in New Issue
Block a user