mirror of
https://github.com/cyring/CoreFreq.git
synced 2025-07-22 12:00:33 +02:00
[Build] Clarify Makefile help, info, and version targets
This commit is contained in:
20
Makefile
20
Makefile
@@ -234,7 +234,9 @@ install: module-install
|
||||
|
||||
.PHONY: module-install
|
||||
module-install:
|
||||
$(MAKE) -C $(KERNELDIR) M=$(PWD)/$(BUILD) modules_install
|
||||
@if [ -e $(BUILD)/corefreqk.ko ]; then \
|
||||
$(MAKE) -C $(KERNELDIR) M=$(PWD)/$(BUILD) modules_install; \
|
||||
fi
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
@@ -367,13 +369,25 @@ info:
|
||||
$(info NO_UPPER [$(NO_UPPER)])
|
||||
$(info NO_LOWER [$(NO_LOWER)])
|
||||
$(info SILENT [$(SILENT)])
|
||||
@echo -n
|
||||
@:
|
||||
|
||||
.PHONY: version
|
||||
version:
|
||||
$(info $(COREFREQ_MAJOR).$(COREFREQ_MINOR).$(COREFREQ_REV))
|
||||
@:
|
||||
|
||||
.PHONY: help
|
||||
help:
|
||||
@echo -e \
|
||||
"o---------------------------------------------------------------o\n"\
|
||||
"| make [all] [clean] [info] [help] [install] [module-install] |\n"\
|
||||
"| make [corefreqd] [corefreq-cli] [corefreqk.ko] [all] |\n"\
|
||||
"| make [install] [module-install] [uninstall] |\n"\
|
||||
"| make [info] [help] [version] |\n"\
|
||||
"| make [clean] |\n"\
|
||||
"| |\n"\
|
||||
"| Options: |\n"\
|
||||
"| -j [N], --jobs[=N] |\n"\
|
||||
"| -s, --silent, --quiet |\n"\
|
||||
"| |\n"\
|
||||
"| V=<n> |\n"\
|
||||
"| where <n> is the verbose build level |\n"\
|
||||
|
28
README.md
28
README.md
@@ -89,21 +89,26 @@ cd CoreFreq
|
||||
make -j
|
||||
```
|
||||
```console
|
||||
MD [build]
|
||||
MD [build/module]
|
||||
LN [build/Makefile]
|
||||
LN [build/module/corefreqk.c]
|
||||
CC [build/corefreqd.o]
|
||||
CC [build/corefreqm.o]
|
||||
LD [build/corefreqd]
|
||||
CC [build/corefreq-cli.o]
|
||||
CC [build/corefreq-ui.o]
|
||||
CC [build/corefreq-cli-rsc.o]
|
||||
CC [build/corefreq-cli-json.o]
|
||||
CC [build/corefreq-cli-extra.o]
|
||||
LD [build/corefreqd]
|
||||
LD [build/corefreq-cli]
|
||||
CC [M] CoreFreq/build/module/corefreqk.o
|
||||
LD [M] CoreFreq/build/corefreqk.o
|
||||
MODPOST CoreFreq/build/Module.symvers
|
||||
CC [M] CoreFreq/build/corefreqk.mod.o
|
||||
LD [M] CoreFreq/build/corefreqk.ko
|
||||
BTF [M] CoreFreq/build/corefreqk.ko
|
||||
CC [M] module/corefreqk.o
|
||||
LD [M] corefreqk.o
|
||||
MODPOST Module.symvers
|
||||
CC [M] corefreqk.mod.o
|
||||
CC [M] .module-common.o
|
||||
LD [M] corefreqk.ko
|
||||
BTF [M] corefreqk.ko
|
||||
```
|
||||
4. (Optionally) Sign the driver
|
||||
If module signature verification is enabled into Kernel, you will have to sign the `corefreqk.ko` driver.
|
||||
@@ -688,7 +693,14 @@ gmake CC=clang
|
||||
|
||||
```
|
||||
o---------------------------------------------------------------o
|
||||
| make [all] [clean] [info] [help] [install] [module-install] |
|
||||
| make [corefreqd] [corefreq-cli] [corefreqk.ko] [all] |
|
||||
| make [install] [module-install] [uninstall] |
|
||||
| make [info] [help] [version] |
|
||||
| make [clean] |
|
||||
| |
|
||||
| Options: |
|
||||
| -j [N], --jobs[=N] |
|
||||
| -s, --silent, --quiet |
|
||||
| |
|
||||
| V=<n> |
|
||||
| where <n> is the verbose build level |
|
||||
|
Reference in New Issue
Block a user