diff --git a/Makefile b/Makefile index a155757..25f2ae9 100644 --- a/Makefile +++ b/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"\ "| where is the verbose build level |\n"\ diff --git a/README.md b/README.md index 5cc6bf2..068917a 100644 --- a/README.md +++ b/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= | | where is the verbose build level |