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 (#14430): https://lists.fd.io/g/vpp-dev/message/14430 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] -=-=-=-=-=-=-=-=-=-=-=-