Skip to content

Instantly share code, notes, and snippets.

@pklazy
Created May 4, 2017 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pklazy/35fb6e1862e354ad66c8aa3c74bfc599 to your computer and use it in GitHub Desktop.
Save pklazy/35fb6e1862e354ad66c8aa3c74bfc599 to your computer and use it in GitHub Desktop.
CROSS_COMPILE = arm-none-eabi-
TOOLCHAIN_LIBS = gcc
LIBGCC_DIR = $(shell dirname `$(CROSS_COMPILE)gcc ${KBUILD_CFLAGS} -print-libgcc-file-name`)
LIB_INCLUDE_DIR += -L ${LIBGCC_DIR}
TOOLCHAIN_CFLAGS = -I/usr/lib/arm-none-eabi/include
DTC ?= /usr/bin/dtc
OPENOCD ?= /usr/bin/openocd
OPENOCD_DEFAULT_PATH ?= /usr/share/openocd/scripts
export CROSS_COMPILE TOOLCHAIN_LIBS TOOLCHAIN_CFLAGS LIB_INCLUDE_DIR DTC OPENOCD OPENOCD_DEFAULT_PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment