[Buildroot] [PATCH 2/2] linenoise: install nothing on target
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Mon Sep 8 19:41:09 UTC 2014
Dear Francois Perrad,
On Mon, 8 Sep 2014 20:30:34 +0200, Francois Perrad wrote:
> linenoise is a static library, so it's enough to install on staging.
> and the linenoise_example executable is not really useful.
>
> Signed-off-by: Francois Perrad <francois.perrad at gadz.org>
> ---
> package/linenoise/linenoise.mk | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/package/linenoise/linenoise.mk b/package/linenoise/linenoise.mk
> index 562b445..34f85ed 100644
> --- a/package/linenoise/linenoise.mk
> +++ b/package/linenoise/linenoise.mk
> @@ -21,10 +21,4 @@ define LINENOISE_INSTALL_STAGING_CMDS
> $(INSTALL) -m 755 -D $(@D)/linenoise_example $(STAGING_DIR)/usr/bin/linenoise_example
> endef
>
> -define LINENOISE_INSTALL_TARGET_CMDS
> - $(INSTALL) -m 644 -D $(@D)/linenoise.h $(TARGET_DIR)/usr/include/linenoise.h
> - $(INSTALL) -m 644 -D $(@D)/liblinenoise.a $(TARGET_DIR)/usr/lib/liblinenoise.a
> - $(INSTALL) -m 755 -D $(@D)/linenoise_example $(TARGET_DIR)/usr/bin/linenoise_example
> -endef
> -
> $(eval $(generic-package))
Then maybe add:
# Static library only, nothing to install on target
LINENOISE_INSTALL_TARGET = NO
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list