Skip to content

Instantly share code, notes, and snippets.

@bjoernsauer
Last active September 4, 2019 14:17
Show Gist options
  • Save bjoernsauer/d1d9b96133f4f808e081cb43084ae009 to your computer and use it in GitHub Desktop.
Save bjoernsauer/d1d9b96133f4f808e081cb43084ae009 to your computer and use it in GitHub Desktop.
Conan (https://conan.io/) Profile for the AXC F 2152 controller
# Adjust this path to the SDK install location
toolchain_path=/opt/pxc/axcf2152_2019.6
[settings]
# We are building in Ubuntu Linux
os_build=Linux
arch_build=x86_64
# We are cross-building to ARM
os=Linux
arch=armv7hf
compiler=gcc
compiler.version=8.2
compiler.libcxx=libstdc++11
build_type=Release
[options]
[build_requires]
cmake_installer/3.15.0@conan/stable
ninja_installer/1.9.0@bincrafters/stable
[env]
CONAN_CMAKE_FIND_ROOT_PATH=$toolchain_path/sysroots/cortexa9t2hf-neon-pxc-linux-gnueabi
CONAN_CMAKE_SYSTEM_NAME=Linux
CONAN_CMAKE_SYSTEM_PROCESSOR=armv7hf
PATH=[$toolchain_path/sysroots/x86_64-pokysdk-linux/usr/bin/arm-pxc-linux-gnueabi]
SYSROOT=$toolchain_path/sysroots/cortexa9t2hf-neon-pxc-linux-gnueabi
PKG_CONFIG_SYSROOT_DIR=$toolchain_path/sysroots/cortexa9t2hf-neon-pxc-linux-gnueabi
PKG_CONFIG_PATH=$toolchain_path/sysroots/cortexa9t2hf-neon-pxc-linux-gnueabi/usr/lib:$toolchain_path/sysroots/cortexa9t2hf-neon-pxc-linux-gnueabi/usr/share/pkgconfig
CONFIG_SITE=$toolchain_path/site-config-cortexa9t2hf-neon-pxc-linux-gnueabi
CHOST=arm-pxc-linux-gnueabi
AR=arm-pxc-linux-gnueabi-ar
AS=arm-pxc-linux-gnueabi-as
LD=arm-pxc-linux-gnueabi-ld
RANLIB=arm-pxc-linux-gnueabi-ranlib
CC=arm-pxc-linux-gnueabi-gcc
CXX=arm-pxc-linux-gnueabi-g++
CFLAGS=-O2 -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=$toolchain_path/sysroots/cortexa9t2hf-neon-pxc-linux-gnueabi
CXXFLAGS=-O2 -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=$toolchain_path/sysroots/cortexa9t2hf-neon-pxc-linux-gnueabi
CPPFLAGS=-O2 -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=$toolchain_path/sysroots/cortexa9t2hf-neon-pxc-linux-gnueabi
LDFLAGS=-Wl,--hash-style=gnu -Wl,--as-needed --sysroot=$toolchain_path/sysroots/cortexa9t2hf-neon-pxc-linux-gnueabi
STRIP=arm-pxc-linux-gnueabi-strip
NM=arm-pxc-linux-gnueabi-nm
GDB=arm-pxc-linux-gnueabi-gdb
OBJCOPY=arm-pxc-linux-gnueabi-objcopy
OBJDUMP=arm-pxc-linux-gnueabi-objdump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment