Re: [EXT] [vpp-dev] cross-compilation support

2019-11-06 Thread Damjan Marion via Lists.Fd.Io
> On 6 Nov 2019, at 13:15, Stanislav Chlebec > wrote: > > Hello Damjan and all > > We had a meeting in ARM team to clarify our standpoint and goals on > cross-compilation for aarch64. > We welcome your initiative to make this process more generic and effective > and we are thankful that yo

Re: [EXT] [vpp-dev] cross-compilation support

2019-11-06 Thread Stanislav Chlebec
: Damjan Marion Cc: vpp-dev@lists.fd.io Subject: Re: [EXT] [vpp-dev] cross-compilation support Let me clarify a bit more, as i can see that this still may be confusing: 1) VPP is using cmake to build binaries and packages, all cmake related stuff is in src/. 2) there is build-root/Makefile and

Re: [EXT] [vpp-dev] cross-compilation support

2019-11-01 Thread Nitin Saxena
Understood. Thanks Nitin > -Original Message- > From: Damjan Marion > Sent: Friday, November 1, 2019 5:13 PM > To: Nitin Saxena > Cc: vpp-dev@lists.fd.io > Subject: Re: [EXT] [vpp-dev] cross-compilation support > > > > > On 1 Nov 2019, at 12:14,

Re: [EXT] [vpp-dev] cross-compilation support

2019-11-01 Thread Damjan Marion via Lists.Fd.Io
ember 1, 2019 4:10 PM >> To: Nitin Saxena >> Cc: vpp-dev@lists.fd.io >> Subject: Re: [EXT] [vpp-dev] cross-compilation support >> >> >> >>>> On 1 Nov 2019, at 09:57, Nitin Saxena wrote: >>> >>> Hi Damjan, >>> >>>>

Re: [EXT] [vpp-dev] cross-compilation support

2019-11-01 Thread Nitin Saxena
intended for native compilation and not for cross Thanks, Nitin > -Original Message- > From: Damjan Marion > Sent: Friday, November 1, 2019 4:10 PM > To: Nitin Saxena > Cc: vpp-dev@lists.fd.io > Subject: Re: [EXT] [vpp-dev] cross-compilation support > > > &g

Re: [EXT] [vpp-dev] cross-compilation support

2019-11-01 Thread Damjan Marion via Lists.Fd.Io
root makefile... > > Thanks, > Nitin > >> -Original Message- >> From: Damjan Marion >> Sent: Friday, November 1, 2019 1:34 AM >> To: Damjan Marion >> Cc: Nitin Saxena ; vpp-dev@lists.fd.io >> Subject: Re: [EXT] [vpp-dev] cross-compila

Re: [EXT] [vpp-dev] cross-compilation support

2019-11-01 Thread Nitin Saxena
jan Marion > Cc: Nitin Saxena ; vpp-dev@lists.fd.io > Subject: Re: [EXT] [vpp-dev] cross-compilation support > > > Let me clarify a bit more, as i can see that this still may be confusing: > > 1) VPP is using cmake to build binaries and packages, all cmake related stuff > is

Re: [EXT] [vpp-dev] cross-compilation support

2019-11-01 Thread Luca Muscariello
FYI, I have recently started to use the buildx experimental feature in docker (>=19.03). it looks interesting as it is designed on purpose for building multi-platform images, and manages to reuse the same dockerfile for as many platforms as supported by qemu (in theory). I'm not quite sure yet ab

Re: [EXT] Re: [vpp-dev] cross-compilation support

2019-10-31 Thread Nitin Saxena
.mk@42). Any comment of taking those changes? Thanks, Nitin > -Original Message- > From: vpp-dev@lists.fd.io On Behalf Of Damjan > Marion via Lists.Fd.Io > Sent: Friday, November 1, 2019 12:15 AM > To: Christian Hopps > Cc: vpp-dev@lists.fd.io > Subject: [EXT] Re:

Re: [EXT] [vpp-dev] cross-compilation support

2019-10-31 Thread Christian Hopps
> On Oct 31, 2019, at 5:39 PM, Damjan Marion via Lists.Fd.Io > wrote: > > > >> On 31 Oct 2019, at 21:41, Christian Hopps wrote: >> >>> >>> On Oct 31, 2019, at 4:03 PM, Damjan Marion via Lists.Fd.Io >>> wrote: >>> >>> >>> Let me clarify a bit more, as i can see that this still may be c

Re: [EXT] [vpp-dev] cross-compilation support

2019-10-31 Thread Damjan Marion via Lists.Fd.Io
>> >>>> Hi, >>>> >>>>>> cmake /path/to/vpp/src [your favorite xcompile args] cmake —build . >>>> Instead of having a shell script to pass cmake commands, I really liked >>>> the idea of passing vpp_cmake_args from build-data/platforms/*.

Re: [EXT] [vpp-dev] cross-compilation support

2019-10-31 Thread Christian Hopps
ke_args from build-data/platforms/*.mk >>> (https://gerrit.fd.io/r/#/c/vpp/+/21035/23/build-data/platforms/native.mk@42). >>> Any comment of taking those changes? >>> >>> Thanks, >>>

Re: [EXT] [vpp-dev] cross-compilation support

2019-10-31 Thread Damjan Marion via Lists.Fd.Io
alf Of Damjan >>> Marion via Lists.Fd.Io >>> Sent: Friday, November 1, 2019 12:15 AM >>> To: Christian Hopps >>> Cc: vpp-dev@lists.fd.io >>> Subject: [EXT] Re: [vpp-dev] cross-compilation support >>> >>> External Email >>> >>

Re: [EXT] [vpp-dev] cross-compilation support

2019-10-31 Thread Damjan Marion via Lists.Fd.Io
- >> From: vpp-dev@lists.fd.io On Behalf Of Damjan >> Marion via Lists.Fd.Io >> Sent: Friday, November 1, 2019 12:15 AM >> To: Christian Hopps >> Cc: vpp-dev@lists.fd.io >> Subject: [EXT] Re: [vpp-dev] cross-compilation support >> >> External Email >&

Re: [vpp-dev] cross-compilation support

2019-10-31 Thread Damjan Marion via Lists.Fd.Io
I slightly modified my patch, so it builds both native packages and cross packages out of same makefile. Native: $ make pkg $ ls -la build/native-release total 99352 drwxrwxr-x 3 damarion damarion 4096 Oct 31 20:00 . drwxrwxr-x 10 damarion damarion 4096 Oct 31 19:55 .. drwxrwxr-x 22 da

Re: [vpp-dev] cross-compilation support

2019-10-31 Thread Damjan Marion via Lists.Fd.Io
Nobody requires you to use docker, you are free to pass right arguments straight to the cmake. All the stuff in build-data, build-root, build/ is optional, and it is there to help developers to stage workspace and create packages but VPP can be built as simple as: mkdir build cd build cmake

Re: [vpp-dev] cross-compilation support

2019-10-31 Thread Christian Hopps
I mean to call out the use of docker/qemu. In order to allow for this the user has to have extra privileges. As I mentioned, locally we use docker for building, I like it, it's a nice tool; however, my personal opinion is that it seems wrong to require docker and/or qemu for compiling an open s

Re: [vpp-dev] cross-compilation support

2019-10-31 Thread Damjan Marion via Lists.Fd.Io
That is just copy paste from Ben’s command line. As. i wrote, this is just about presenting the concept... > On 31 Oct 2019, at 18:39, Christian Hopps wrote: > > Requiring root privileges for building software is pretty atypical and > limiting, even for x-compiling. > > Thanks, > Chris. > >

Re: [vpp-dev] cross-compilation support

2019-10-31 Thread Christian Hopps
Requiring root privileges for building software is pretty atypical and limiting, even for x-compiling. Thanks, Chris. > On Oct 31, 2019, at 12:45 PM, Damjan Marion via Lists.Fd.Io > wrote: > > > So what people think about following approach for cross-compilation: > > Patch: https://gerrit.f

[vpp-dev] cross-compilation support

2019-10-31 Thread Damjan Marion via Lists.Fd.Io
So what people think about following approach for cross-compilation: Patch: https://gerrit.fd.io/r/c/vpp/+/23153 At the moment this is just to show idea, so it works only for x86-to-x86 and between ubuntu versions only but it can be easily extended to sce