All of lore.kernel.org
 help / color / mirror / Atom feed
* Compiling DPDK 17.02 with a Busybox-based tar
@ 2017-03-14  7:58 Raphael Cohn
  2017-03-14  9:39 ` Thomas Monjalon
  0 siblings, 1 reply; 4+ messages in thread
From: Raphael Cohn @ 2017-03-14  7:58 UTC (permalink / raw)
  To: dev

Hi,

To compile DPDK on a system with Busybox tar installed, it's necessary to
make a small change to the build system:-

    sed -i -e '/--keep-newer-files/d' mk/rte.sdkinstall.mk
    sed -i -e 's;--strip-components=1 \\;--strip-components=1;g' mk/
rte.sdkinstall.mk

I'm not sure whether the impact of this change fundamentally affects DPDK.
I'm a little surprised that tar is needed at all for a compile + install,
but I haven't investigated further. Is it being used to do a copy?

Raph

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Compiling DPDK 17.02 with a Busybox-based tar
  2017-03-14  7:58 Compiling DPDK 17.02 with a Busybox-based tar Raphael Cohn
@ 2017-03-14  9:39 ` Thomas Monjalon
  2017-03-14 14:20   ` Raphael Cohn
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Monjalon @ 2017-03-14  9:39 UTC (permalink / raw)
  To: Raphael Cohn; +Cc: dev

2017-03-14 07:58, Raphael Cohn:
> Hi,
> 
> To compile DPDK on a system with Busybox tar installed, it's necessary to
> make a small change to the build system:-
> 
>     sed -i -e '/--keep-newer-files/d' mk/rte.sdkinstall.mk
>     sed -i -e 's;--strip-components=1 \\;--strip-components=1;g' mk/
> rte.sdkinstall.mk
> 
> I'm not sure whether the impact of this change fundamentally affects DPDK.
> I'm a little surprised that tar is needed at all for a compile + install,
> but I haven't investigated further. Is it being used to do a copy?

Yes it is used to make a copy.
It is a convenient one-liner.

I am a bit surprised that you need to install DPDK with busybox.
The busybox systems are generally cross-built and prepared out of the box,
with the host tools.
However, if you feel it is important to install DPDK on such target,
you are welcome to propose a patch.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Compiling DPDK 17.02 with a Busybox-based tar
  2017-03-14  9:39 ` Thomas Monjalon
@ 2017-03-14 14:20   ` Raphael Cohn
  2017-03-14 15:03     ` Thomas Monjalon
  0 siblings, 1 reply; 4+ messages in thread
From: Raphael Cohn @ 2017-03-14 14:20 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dev

Why it is surprising that I need to compile DPDK on a system Busybox?

I currently build DPDK both for my local Alpine Linux system (busybox)
using the system compiler, use busybox for my cross-tools toolchain, and
also use it in Libertine Linux. It means a system using DPDK can be much
more minimal. Likewise, Aboriginal Linux uses Busybox (and, shortly,
Toybox), for similar reasons. It also means users of my rust crate can work
in a wider range of systems than RHEL / Ubuntu.

On 14 March 2017 at 09:39, Thomas Monjalon <thomas.monjalon@6wind.com>
wrote:

> 2017-03-14 07:58, Raphael Cohn:
> > Hi,
> >
> > To compile DPDK on a system with Busybox tar installed, it's necessary to
> > make a small change to the build system:-
> >
> >     sed -i -e '/--keep-newer-files/d' mk/rte.sdkinstall.mk
> >     sed -i -e 's;--strip-components=1 \\;--strip-components=1;g' mk/
> > rte.sdkinstall.mk
> >
> > I'm not sure whether the impact of this change fundamentally affects
> DPDK.
> > I'm a little surprised that tar is needed at all for a compile + install,
> > but I haven't investigated further. Is it being used to do a copy?
>
> Yes it is used to make a copy.
> It is a convenient one-liner.
>
> I am a bit surprised that you need to install DPDK with busybox.
> The busybox systems are generally cross-built and prepared out of the box,
> with the host tools.
> However, if you feel it is important to install DPDK on such target,
> you are welcome to propose a patch.
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Compiling DPDK 17.02 with a Busybox-based tar
  2017-03-14 14:20   ` Raphael Cohn
@ 2017-03-14 15:03     ` Thomas Monjalon
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2017-03-14 15:03 UTC (permalink / raw)
  To: Raphael Cohn; +Cc: dev

2017-03-14 14:20, Raphael Cohn:
> Why it is surprising that I need to compile DPDK on a system Busybox?
> 
> I currently build DPDK both for my local Alpine Linux system (busybox)
> using the system compiler, use busybox for my cross-tools toolchain, and
> also use it in Libertine Linux. It means a system using DPDK can be much
> more minimal. Likewise, Aboriginal Linux uses Busybox (and, shortly,
> Toybox), for similar reasons. It also means users of my rust crate can work
> in a wider range of systems than RHEL / Ubuntu.

I understand the need for busybox on the target system.
I was just saying that generally we use a more complete system on the
host building a target. But you are free to use any tool you want :)

PS: please reply in-line


> On 14 March 2017 at 09:39, Thomas Monjalon <thomas.monjalon@6wind.com>
> wrote:
> 
> > 2017-03-14 07:58, Raphael Cohn:
> > > Hi,
> > >
> > > To compile DPDK on a system with Busybox tar installed, it's necessary to
> > > make a small change to the build system:-
> > >
> > >     sed -i -e '/--keep-newer-files/d' mk/rte.sdkinstall.mk
> > >     sed -i -e 's;--strip-components=1 \\;--strip-components=1;g' mk/
> > > rte.sdkinstall.mk
> > >
> > > I'm not sure whether the impact of this change fundamentally affects
> > DPDK.
> > > I'm a little surprised that tar is needed at all for a compile + install,
> > > but I haven't investigated further. Is it being used to do a copy?
> >
> > Yes it is used to make a copy.
> > It is a convenient one-liner.
> >
> > I am a bit surprised that you need to install DPDK with busybox.
> > The busybox systems are generally cross-built and prepared out of the box,
> > with the host tools.
> > However, if you feel it is important to install DPDK on such target,
> > you are welcome to propose a patch.
> >
> >

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-14 15:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-14  7:58 Compiling DPDK 17.02 with a Busybox-based tar Raphael Cohn
2017-03-14  9:39 ` Thomas Monjalon
2017-03-14 14:20   ` Raphael Cohn
2017-03-14 15:03     ` Thomas Monjalon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.