diff options
-rw-r--r-- | Makefile.main | 1 | ||||
-rw-r--r-- | core/init.c | 1 |
2 files changed, 2 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) > $@ diff --git a/core/init.c b/core/init.c index 271736b..c99302c 100644 --- a/core/init.c +++ b/core/init.c @@ -57,6 +57,7 @@ enum proc_gen proc_gen; unsigned int pcie_max_link_speed; bool verbose_eeh; +extern const char version[]; static uint64_t kernel_entry; static size_t kernel_size; |