[CRIU] [PATCH] soccr: Generate config.h dynamically

Cyrill Gorcunov gorcunov at openvz.org
Wed Oct 5 06:25:28 PDT 2016


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 Makefile       | 3 +++
 soccr/config.h | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index c15132e0cf31..95c849515798 100644
--- a/Makefile
+++ b/Makefile
@@ -209,6 +209,8 @@ include Makefile.compel
 # Next the socket CR library
 #
 SOCCR_A := soccr/libsoccr.a
+soccr/config.h: $(CONFIG_HEADER)
+	$(Q) ln -s $(CONFIG_HEADER) $@
 soccr/%: $(CONFIG_HEADER) .FORCE
 	$(Q) $(MAKE) $(build)=soccr $@
 soccr/built-in.o: $(CONFIG_HEADER) .FORCE
@@ -266,6 +268,7 @@ mrproper: subclean
 	$(Q) $(MAKE) $(build)=compel/plugins $@
 	$(Q) $(MAKE) $(build)=soccr $@
 	$(Q) $(RM) $(CONFIG_HEADER)
+	$(Q) $(RM) soccr/config.h
 	$(Q) $(RM) $(VERSION_HEADER)
 	$(Q) $(RM) $(COMPEL_VERSION_HEADER)
 	$(Q) $(RM) cscope.*
diff --git a/soccr/config.h b/soccr/config.h
index 106aa8bf2be0..6d527597990a 120000
--- a/soccr/config.h
+++ b/soccr/config.h
@@ -1 +1 @@
-../criu/include/config.h
\ No newline at end of file
+/home/criu/criu/include/config.h
\ No newline at end of file
-- 
1.8.3.1



More information about the CRIU mailing list