[Buildroot] [PATCH v7 01/18] package/linux-headers: cleanup installation
Samuel Martin
s.martin49 at gmail.com
Wed Mar 9 22:58:42 UTC 2016
This patch removes unnecessary files generated during installation, that
also are causing build machine paths leaking into the Buildroot's SDK.
Note that similar cleanup commands can be found in other distributions
(e.g. gentoo [1]); thought this is not a valid reason.
[1] https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-kernel/linux-headers/linux-headers-4.4.ebuild#n36
Signed-off-by: Samuel Martin <s.martin49 at gmail.com>
---
changes v6->v7:
- improve commit log
changes v5->v6:
- new patch
---
package/linux-headers/linux-headers.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/linux-headers/linux-headers.mk b/package/linux-headers/linux-headers.mk
index 0900778..7633257 100644
--- a/package/linux-headers/linux-headers.mk
+++ b/package/linux-headers/linux-headers.mk
@@ -123,6 +123,7 @@ define LINUX_HEADERS_INSTALL_STAGING_CMDS
HOSTCXX="$(HOSTCXX)" \
INSTALL_HDR_PATH=$(STAGING_DIR)/usr \
headers_install)
+ find $(STAGING_DIR)/usr \( -name .install -o -name ..install.cmd \) -delete
endef
ifeq ($(BR2_KERNEL_HEADERS_VERSION)$(BR2_KERNEL_HEADERS_AS_KERNEL),y)
--
2.7.2
More information about the buildroot
mailing list