package/protobuf: remove target version of 'protoc'
PATCH 1/1 package/protobuf: remove target version of 'protoc'
From: Thomas De Schampheleire <[email protected]>
The tool 'protoc' and its associated library libprotoc.so are only needed during development, to convert a protocol buffer definition in the associated code for a specific code language.
Buildroot does not officially support creating a development environment on target, so remove these files to reduce disk usage by more than 1.5 MB (stripped, uncompressed).
--- package/protobuf/protobuf.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/protobuf/protobuf.mk +7 -0
@@ -36,5 +36,12 @@ ifeq ($(BR2_PACKAGE_ZLIB),y) PROTOBUF_DEPENDENCIES += zlib endif +define PROTOBUF_REMOVE_UNNECESSARY_TARGET_FILES + rm -rf $(TARGET_DIR)/usr/bin/protoc + rm -rf $(TARGET_DIR)/usr/lib/libprotoc.so* +endef + +PROTOBUF_POST_INSTALL_TARGET_HOOKS += PROTOBUF_REMOVE_UNNECESSARY_TARGET_FILES + $(eval $(autotools-package)) $(eval $(host-autotools-package))
Signature · 1 line
2.26.2
PATCH 1/1 package/protobuf: remove target version of 'protoc'
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas De Schampheleire <[email protected]> writes:
From: Thomas De Schampheleire <[email protected]> The tool 'protoc' and its associated library libprotoc.so are only needed during development, to convert a protocol buffer definition in the associated code for a specific code language.
Quoted 5 lines
Buildroot does not officially support creating a development environment on target, so remove these files to reduce disk usage by more than 1.5 MB (stripped, uncompressed).
Signed-off-by Thomas De Schampheleire <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard