Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wlcore/wl18xx/wl12xx: add version and timestamp strings (INTERNAL)
In order to allow better version control, add version and timestamp strings into the wl12xx module. These strings will be printed on driver load, and when reading the driver_state. (this is not going to work well in compat, because it copies all the files instead of compiling them in the original tree, so the version of the compat tree will appear as the driver version. we can workaround it with the additional makefile hacks...) NOTE: I couldn't find how to make one module recompile when the .h file of another module was changed, so i just duplicated it for now. Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
- Loading branch information
Showing
7 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
wl12xx-objs = main.o cmd.o acx.o debugfs.o | ||
|
||
define filechk_version.h | ||
(echo 'static const char *wl12xx_git_head = "$(shell git describe)";') | ||
endef | ||
|
||
$(obj)/version.h: .git/HEAD .git/index | ||
@$(call filechk,version.h) | ||
|
||
$(obj)/main.c: $(src)/version.h | ||
|
||
obj-$(CONFIG_WL12XX) += wl12xx.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
wl18xx-objs = main.o acx.o tx.o io.o debugfs.o | ||
|
||
define filechk_version.h | ||
(echo 'static const char *wl18xx_git_head = "$(shell git describe)";') | ||
endef | ||
|
||
$(obj)/version.h: .git/HEAD .git/index | ||
@$(call filechk,version.h) | ||
|
||
$(obj)/main.c: $(src)/version.h | ||
|
||
obj-$(CONFIG_WL18XX) += wl18xx.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters