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 /path/to/vpp/src [your favorite xcompile args] cmake —build . > On 31 Oct 2019, at 19:39, Christian Hopps <cho...@chopps.org> wrote: > > 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 source project. > > Important in holding this opinion is that it's seems possible to make this > work w/o docker/qemu/root, I think someone just has to find the time to make > an acceptable to the project working patch. > > I asked internally and it seems that our changes to support x-compile do not > go as far as producing debian/ubuntu packages, so they aren't ready for > upstreaming, unfortunately. > > Thanks, > Chris. > >> On Oct 31, 2019, at 2:23 PM, Damjan Marion <dmar...@me.com> wrote: >> >> >> 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 <cho...@chopps.org> wrote: >>> >>> 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 >>>> <dmarion=me....@lists.fd.io> wrote: >>>> >>>> >>>> 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 scenarios like build vpp packages for AArch64 centos7 on >>>> ubuntu x86 host. >>>> >>>> export CROSS_DISTRO_NAME=ubuntu >>>> exprot CROSS_DISTRO_VER=18.04 >>>> export CROSS_ARCH=x86_64 >>>> export CROSS_TARGET=release >>>> >>>> $ make cross-env-init >>>> >>>> this is executed once, it creates docker container named >>>> "vpp-dev-env-ubuntu-18.04-x86_64”, install all dependencies including DPDK >>>> and other libs” >>>> >>>> $ make cross-env-update >>>> >>>> updates cross-env to latest packages and ext-deps >>>> >>>> $ make cross-shell >>>> >>>> starts shell inside cross-env >>>> >>>> $ make cross-package >>>> >>>> builds VPP and creates packages: >>>> >>>> ls -la build/ubuntu-18.04-x86_64-release >>>> total 11716 >>>> drwxr-xr-x 3 root root 4096 Oct 31 17:30 . >>>> drwxrwxr-x 4 damarion damarion 4096 Oct 31 17:36 .. >>>> drwxr-xr-x 22 root root 4096 Oct 31 17:30 build >>>> -rw-r--r-- 1 root root 190124 Oct 31 17:30 >>>> libvppinfra_20.01-rc0~555-g7f980bcfe_amd64.deb >>>> -rw-r--r-- 1 root root 145056 Oct 31 17:30 >>>> libvppinfra-dev_20.01-rc0~555-g7f980bcfe_amd64.deb >>>> -rw-r--r-- 1 root root 23140 Oct 31 17:30 >>>> python3-vpp-api_20.01-rc0~555-g7f980bcfe_amd64.deb >>>> -rw-r--r-- 1 root root 8815 Oct 31 17:30 >>>> vpp_20.01-rc0~555-g7f980bcfe_amd64.buildinfo >>>> -rw-r--r-- 1 root root 4147 Oct 31 17:30 >>>> vpp_20.01-rc0~555-g7f980bcfe_amd64.changes >>>> -rw-r--r-- 1 root root 3674024 Oct 31 17:30 >>>> vpp_20.01-rc0~555-g7f980bcfe_amd64.deb >>>> -rw-r--r-- 1 root root 23104 Oct 31 17:30 >>>> vpp-api-python_20.01-rc0~555-g7f980bcfe_amd64.deb >>>> -rw-r--r-- 1 root root 719712 Oct 31 17:30 >>>> vpp-dbg_20.01-rc0~555-g7f980bcfe_amd64.deb >>>> -rw-r--r-- 1 root root 915744 Oct 31 17:30 >>>> vpp-dev_20.01-rc0~555-g7f980bcfe_amd64.deb >>>> -rw-r--r-- 1 root root 3113820 Oct 31 17:30 >>>> vpp-plugin-core_20.01-rc0~555-g7f980bcfe_amd64.deb >>>> -rw-r--r-- 1 root root 3144784 Oct 31 17:30 >>>> vpp-plugin-dpdk_20.01-rc0~555-g7f980bcfe_amd64.deb >>>> >>>> >>>> >>>> >>>> >>>> -=-=-=-=-=-=-=-=-=-=-=- >>>> Links: You receive all messages sent to this group. >>>> >>>> View/Reply Online (#14428): https://lists.fd.io/g/vpp-dev/message/14428 >>>> Mute This Topic: https://lists.fd.io/mt/40199795/1826170 >>>> Group Owner: vpp-dev+ow...@lists.fd.io >>>> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [cho...@chopps.org] >>>> -=-=-=-=-=-=-=-=-=-=-=- >>> >> > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > > View/Reply Online (#14434): https://lists.fd.io/g/vpp-dev/message/14434 > Mute This Topic: https://lists.fd.io/mt/40199795/675642 > Group Owner: vpp-dev+ow...@lists.fd.io > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [dmar...@me.com] > -=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14436): https://lists.fd.io/g/vpp-dev/message/14436 Mute This Topic: https://lists.fd.io/mt/40199795/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-