build: support ARM with meson
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 22 Jan 2018 15:26:29 +0000 (20:56 +0530)
committerBruce Richardson <bruce.richardson@intel.com>
Tue, 30 Jan 2018 20:59:00 +0000 (21:59 +0100)
commitb1d48c41189aa8f996db0cf3370abc90402a9984
tree0103a608eab02efdb7d93569bdf3f19e7fe3ccf1
parentc22ada8c65daf7da42e263442b9a716bb841f368
build: support ARM with meson

Add files to enable compiling for ARM native/cross builds.
This can be tested by doing a cross-compile for armv8-a type using
the linaro gcc toolchain.

        meson arm-build --cross-file aarch64_cross.txt
        ninja -C arm-build

where aarch64_cross.txt contained the following

        [binaries]
        c = 'aarch64-linux-gnu-gcc'
        cpp = 'aarch64-linux-gnu-cpp'
        ar = 'aarch64-linux-gnu-ar'

        [host_machine]
        system = 'linux'
        cpu_family = 'aarch64'
        cpu = 'armv8-a'
        endian = 'little'

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
config/arm/meson.build [new file with mode: 0644]
config/meson.build
lib/librte_eal/common/arch/arm/meson.build [new file with mode: 0644]
lib/librte_eal/common/include/arch/arm/meson.build [new file with mode: 0644]