Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/clang: delete unnecessary files from target
@ 2018-05-02  9:05 Valentin Korenblit
  2018-05-02  9:05 ` [Buildroot] [PATCH 2/2] package/llvm: delete LLVMHello.so from /usr/lib Valentin Korenblit
  2018-05-02  9:31 ` [Buildroot] [PATCH 1/2] package/clang: delete unnecessary files from target Thomas Petazzoni
  0 siblings, 2 replies; 4+ messages in thread
From: Valentin Korenblit @ 2018-05-02  9:05 UTC (permalink / raw)
  To: buildroot

Delete:
	Binaries in: /usr/bin
		     /usr/libexec

	Directories: /usr/lib/clang
		     /usr/share/clang
		     /usr/share/opt-viewer
		     /usr/share/scan-build
		     /usr/share/scan-view

	Manual:	     /usr/share/man/man1/scan-build.1

Signed-off-by: Valentin Korenblit <valentin.korenblit@smile.fr>
---
 package/clang/clang.mk | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/package/clang/clang.mk b/package/clang/clang.mk
index 88bce9af0b..a599dc0ae6 100644
--- a/package/clang/clang.mk
+++ b/package/clang/clang.mk
@@ -56,9 +56,14 @@ CLANG_CONF_OPTS += -DLLVM_CONFIG:FILEPATH=$(STAGING_DIR)/usr/bin/llvm-config \
 
 # Clang can't be used as compiler on the target since there are no
 # development files (headers) and other build tools. So remove clang
-# binaries from target.
+# binaries and some other unnecessary files from target.
 define CLANG_DELETE_BINARIES_FROM_TARGET
-	rm -f $(TARGET_DIR)/usr/bin/clang*
+	cd $(TARGET_DIR)/usr/bin && rm -f clang* c-index-test git-clang-format \
+		scan-build scan-view
+	cd $(TARGET_DIR)/usr/libexec && rm -f c++-analyzer ccc-analyzer
+	cd $(TARGET_DIR)/usr/share && rm -rf clang opt-viewer scan-build scan-view \
+		man/man1/scan-build.1
+	rm -rf $(TARGET_DIR)/usr/lib/clang
 endef
 CLANG_POST_INSTALL_TARGET_HOOKS += CLANG_DELETE_BINARIES_FROM_TARGET
 
-- 
2.14.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-05-02  9:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-02  9:05 [Buildroot] [PATCH 1/2] package/clang: delete unnecessary files from target Valentin Korenblit
2018-05-02  9:05 ` [Buildroot] [PATCH 2/2] package/llvm: delete LLVMHello.so from /usr/lib Valentin Korenblit
2018-05-02  9:37   ` Thomas Petazzoni
2018-05-02  9:31 ` [Buildroot] [PATCH 1/2] package/clang: delete unnecessary files from target Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox