[Buildroot] [Patch v7 08/10] libhttpparser: add host variant

Arnout Vandecappelle arnout at mind.be
Thu Aug 10 23:41:53 UTC 2017



On 23-07-17 10:12, Eric Le Bihan wrote:
> Allow build of host variant of libhttpparser.
> 
> Signed-off-by: Eric Le Bihan <eric.le.bihan.dev at free.fr>
> ---
>  package/libhttpparser/libhttpparser.mk | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/package/libhttpparser/libhttpparser.mk b/package/libhttpparser/libhttpparser.mk
> index 015efc0..475dfde 100644
> --- a/package/libhttpparser/libhttpparser.mk
> +++ b/package/libhttpparser/libhttpparser.mk
> @@ -23,4 +23,13 @@ define LIBHTTPPARSER_INSTALL_TARGET_CMDS
>  	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) PREFIX=$(TARGET_DIR)/usr install
>  endef
>  
> +define HOST_LIBHTTPPARSER_BUILD_CMDS
> +	$(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) library package
> +endef
> +
> +define HOST_LIBHTTPPARSER_INSTALL_CMDS
> +	$(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) PREFIX=$(HOST_DIR)/usr install

 /usr is gone.

 Regards,
 Arnout

> +endef
> +
>  $(eval $(generic-package))
> +$(eval $(host-generic-package))
> 

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF


More information about the buildroot mailing list