aboutsummaryrefslogtreecommitdiff
path: root/Makefile.main
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.main')
-rw-r--r--Makefile.main1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.main b/Makefile.main
index fac6e44..56fa2ba 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -303,6 +303,7 @@ version.c: $(SRC)/make_version.sh $(OBJS_NO_VER) .version
@(if [ "a$(VERSION)" = "a" ]; then \
echo "#error You need to set SKIBOOT_VERSION environment variable" > $@ ;\
else \
+ echo "extern const char version[];"; \
echo "const char version[] = \"$(VERSION)\";" ;\
fi) > $@