From 5d32b7e624f90d0a8c8009d1469283c5cc60951e Mon Sep 17 00:00:00 2001 From: Petr Cvek Date: Tue, 5 Mar 2019 23:55:49 +0100 Subject: [PATCH] Workaround building problems fir strip and path in static library GNU strip seems to fail on static library (.a file) with subdirectories. This would crash the building process. Workaround this by forcing "true" return value. TODO the object files are not stripped and resulting kernel module is over 1MB. Rework building process. Signed-off-by: Petr Cvek --- Makefile.am.module_build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am.module_build b/Makefile.am.module_build index e4bbe5c..d502c85 100644 --- a/Makefile.am.module_build +++ b/Makefile.am.module_build @@ -24,7 +24,7 @@ define $(module_canonical_name)_BUILD_CMD mtlk_build_kernel_library=$(mtlk_build_kernel_library) && \ { { test x"$(mtlk_build_kernel_library)" != x"y"; } || echo lib.a > .built_binary_name; } && \ { { test x"$(mtlk_build_kernel_library)" = x"y"; } || echo $($(module_canonical_name)_binary_name) > .built_binary_name; } && \ - ( @kernel_cross_compile@strip -dx `cat .built_binary_name` ) && \ + ( @kernel_cross_compile@strip -dx `cat .built_binary_name`; true) && \ ( $(rebase_copy_cmd) drv_toolchain_info $(abs_builddir)) && \ $(rebase_copy_cmd) `cat .built_binary_name` $(abs_builddir)/$($(module_canonical_name)_binary_name) || \ ( rm -f $(abs_builddir)/$($(module_canonical_name)_binary_name) && exit 11 ) ) -- 2.11.4.GIT