crash/memory_driver/Makefile
Kazuhito Hagio cf42161624 memory_driver: Fix memory driver module build with Linux 5.4 and later
With Linux 5.4 and later kernels that contain commit
7e35b42591c058b91282f95ce3b2cf0c05ffe93d ("kbuild: remove SUBDIRS
support"), "make" command in the memory_driver directory doesn't
build crash memory driver module as expected.  Add "M=" to fix.

Signed-off-by: Kazuhito Hagio <k-hagio-ab@nec.com>
2020-11-09 15:25:20 +09:00

16 lines
627 B
Makefile

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
obj-m := crash.o
all:
make -C /lib/modules/`uname -r`/build M=${PWD} SUBDIRS=${PWD} modules
clean:
rm -f *.mod.c *.ko *.o Module.*