aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2015-10-13 15:09:40 -0400
committerKevin O'Connor <kevin@koconnor.net>2015-10-15 10:55:03 -0400
commita6c877401b748092e2e7799bfb4a4bd84729b1da (patch)
tree4d194c555df8d6f8181459f2b37e82144ef7532c /vgasrc
parent5d91226e897b8209f7acefc1806a3cbf90a5394e (diff)
downloadseabios-a6c877401b748092e2e7799bfb4a4bd84729b1da.tar.gz
seabios-a6c877401b748092e2e7799bfb4a4bd84729b1da.tar.xz
seabios-a6c877401b748092e2e7799bfb4a4bd84729b1da.zip
build: Rework version generation; don't allow make version override
Convert the script to generate the build version from a shell script to a python script. Remove the ability to override the version at build time via "make VERSION=xyz". Replace it with ability to add extra version information at build time via "make EXTRAVERSION=xyz". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc')
-rw-r--r--vgasrc/vgaversion.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/vgasrc/vgaversion.c b/vgasrc/vgaversion.c
new file mode 100644
index 0000000..02c8ea3
--- /dev/null
+++ b/vgasrc/vgaversion.c
@@ -0,0 +1,5 @@
+// Place build generated version into a C variable
+#include "autovgaversion.h"
+#include "types.h"
+
+char VERSION[] VAR16 = BUILD_VERSION;