[Buildroot] [PATCH 05/10] microcom: convert to gentargets
Martin.Banky at gmail.com
Tue Oct 5 18:54:47 UTC 2010
I guess I should have explained this better. What I meant about
microcom being a flat archive, is that when you extract it, it does not
create a directory for itself. It just sticks its files, without a directory
being created, in the current directory. $(TAR_STRIP_COMPONENTS)=1 is
'Automatically detect tar --strip-path/components option', which, equates to
either --strip-path or --strip-components, depending on the version of tar.
Per the man page: --strip-components = 'strip NUMBER leading components from
file names on extraction', which means that for microcom, which doesn't have
a directory structure, it strips all the file names off, so no files
actually get extracted. This in turn, means that the patch routine does not
work. Hence, the reason for manually patching microcom. If you have a better
solution, I'd appreciate it, if you would show me, because I couldn't figure
one out. I hope this makes more sense.
On Tue, Oct 5, 2010 at 2:21 AM, Thomas Petazzoni <
thomas.petazzoni at free-electrons.com> wrote:
> On Tue, 5 Oct 2010 01:22:38 -0700
> Martin Banky <martin.banky at gmail.com> wrote:
> > +define MICROCOM_CONFIGURE_CMDS
> > + $(ZCAT) $(DL_DIR)/$(MICROCOM_SOURCE) | tar -C $(@D) $(TAR_OPTIONS)
> This sounds strange to me. The extraction is already done by the
> package infrastructure.
> > toolchain/patch-kernel.sh $(MICROCOM_DIR) package/microcom/
> This as well.
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> buildroot mailing list
> buildroot at busybox.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the buildroot