Permalink
Browse files

add version information to all files

this adds some support for version information starting at version
1.0.0 Tablet Rosa.
  • Loading branch information...
1 parent 85eab26 commit 9134663f4ada8f7f158f184487f02446fe0e1c39 @prpplague committed May 19, 2012
Showing with 22 additions and 0 deletions.
  1. +10 −0 Makefile
  2. +3 −0 fb-test.c
  3. +3 −0 offset.c
  4. +3 −0 perf.c
  5. +3 −0 rect.c
View
@@ -1,3 +1,8 @@
+VERSION = 1
+PATCHLEVEL = 0
+SUBLEVEL = 0
+EXTRAVERSION = .git
+NAME = tablet_rosa
ifdef CROSS_COMPILE
CC=$(CROSS_COMPILE)gcc
@@ -6,6 +11,11 @@ else
CFLAGS=-O2 -Wall
endif
+CFLAGS += -DVERSION=$(VERSION)
+CFLAGS += -DPATCHLEVEL=$(PATCHLEVEL)
+CFLAGS += -DSUBLEVEL=$(SUBLEVEL)
+CFLAGS += -DVERSION_NAME=\"$(NAME)\"
+
PROGS=perf rect fb-test offset
all: $(PROGS)
View
@@ -187,6 +187,9 @@ int main(int argc, char** argv)
int req_fb = 0;
int req_pattern = 0;
+ printf("fb-test %d.%d.%d (%s)\n", VERSION, PATCHLEVEL, SUBLEVEL,
+ VERSION_NAME);
+
while ((opt = getopt(argc, argv, "hrgbwp:f:")) != -1) {
switch (opt) {
case 'f':
View
@@ -55,6 +55,9 @@ int main(int argc, char** argv)
int opt;
int req_fb = 0;
+ printf("offset %d.%d.%d (%s)\n", VERSION, PATCHLEVEL, SUBLEVEL,
+ VERSION_NAME);
+
while ((opt = getopt(argc, argv, "f:")) != -1) {
switch (opt) {
case 'f':
View
@@ -372,6 +372,9 @@ int main(int argc, char **argv)
int fb_num = 0;
char str[64];
+ printf("perf %d.%d.%d (%s)\n", VERSION, PATCHLEVEL, SUBLEVEL,
+ VERSION_NAME);
+
if (argc != 3) {
printf("usage: %s <fbnum> <logfile>\n", argv[0]);
return 0;
View
@@ -183,6 +183,9 @@ int main(int argc, char** argv)
void *readbuf;
unsigned readbuf_size;
+ printf("rect %d.%d.%d (%s)\n", VERSION, PATCHLEVEL, SUBLEVEL,
+ VERSION_NAME);
+
fd = open_fb("/dev/fb0");
FBCTL(FBIOGET_VSCREENINFO, &var);

0 comments on commit 9134663

Please sign in to comment.