kbuild: create *.mod with full directory path and remove MODVERDIR
[linux-2.6-block.git] / tools / power / cpupower / debug / kernel / Makefile
CommitLineData
b2441318 1# SPDX-License-Identifier: GPL-2.0
7fe2f639
DB
2obj-m :=
3
4KDIR := /lib/modules/$(shell uname -r)/build
7fe2f639
DB
5KMISC := /lib/modules/$(shell uname -r)/cpufrequtils/
6
7ifeq ("$(CONFIG_X86_TSC)", "y")
8 obj-m += cpufreq-test_tsc.o
9endif
10
11default:
e19b7cee 12 $(MAKE) -C $(KDIR) M=$(CURDIR)
7fe2f639
DB
13
14clean:
b7dca6dd
MY
15 - rm -rf *.o *.ko .*.cmd .*.mod.* *.mod.c
16 - rm -rf Module.symvers modules.order
7fe2f639
DB
17
18install: default
19 install -d $(KMISC)
20 install -m 644 -c *.ko $(KMISC)
21 /sbin/depmod -a
22
23all: default