[Buildroot] [PATCHv2 2/4] kmod: allow to build a host variant

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Sep 2 21:48:44 UTC 2013


Dear Peter Korsgaard,

On Mon, 02 Sep 2013 22:58:04 +0200, Peter Korsgaard wrote:

>  Thomas> +# We only install depmod, since that's the only tool used for the
>  Thomas> +# host.
>  Thomas> +define HOST_KMOD_INSTALL_TOOLS
>  Thomas> +	mkdir -p $(HOST_DIR)/sbin/
>  Thomas> +	ln -sf ../usr/bin/kmod $(HOST_DIR)/sbin/depmod
>  Thomas> +endef
>  Thomas> +
>  Thomas> +HOST_KMOD_POST_INSTALL_HOOKS += HOST_KMOD_INSTALL_TOOLS
>  Thomas> +
> 
> We also need to set HOST_KMOD_AUTORECONF = YES because of the
> configure.ac patch (arguably we should default HOST_<pkg>_AUTORECONF =
> <pkg>_AUTORECONF).

Ah, yes, right. I didn't see the problem since the configure.ac patch
is only to support gcc < 4.6.x on the host, which wasn't my case. But
certainly useful in general indeed.

Thanks,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the buildroot mailing list