From: Waldemar Kozaczuk <jwkozac...@gmail.com>
Committer: Waldemar Kozaczuk <jwkozac...@gmail.com>
Branch: master

makefile: copy default_version_script to version_script if latter one missing

When building kernel with most symbols hidden for the very first time, the
default_version_script is generated correctly however we do miss to copy
it to version_script and the build fails. This patch fixes it by
detecting this case and copying default_version_script to
version_script.

Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com>

---
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -2067,6 +2067,9 @@ ifneq ($(shell cmp $(out)/version_script 
$(conf_version_script)),)
 $(shell cp $(conf_version_script) $(out)/version_script)
 endif
 else
+ifeq ($(shell test -e $(out)/version_script || echo -n no),no)
+$(shell cp $(out)/default_version_script $(out)/version_script)
+endif
 ifneq ($(shell cmp $(out)/version_script $(out)/default_version_script),)
 $(shell cp $(out)/default_version_script $(out)/version_script)
 endif

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osv-dev/00000000000089ae6705e15597b9%40google.com.

Reply via email to