Created
August 30, 2018 17:49
-
-
Save titouanc/ea0685d9cd8592deb1c49d48e33b3eee to your computer and use it in GitHub Desktop.
Buildroot package for the GNU Embedded Toolchain for Arm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# | |
# gcc-arm-none-eabi | |
# | |
################################################################################ | |
config BR2_PACKAGE_HOST_GCC_ARM_NONE_EABI_SUPPORTS | |
bool | |
default y | |
depends on BR2_HOSTARCH = "x86_64" | |
config BR2_PACKAGE_HOST_GCC_ARM_NONE_EABI | |
bool "host gcc-arm-none-eabi" | |
depends on BR2_PACKAGE_HOST_GCC_ARM_NONE_EABI_SUPPORTS | |
help | |
The GNU Embedded Toolchain for Arm is a ready-to-use, open source | |
suite of tools for C, C++ and Assembly programming targeting Arm | |
Cortex-M and Cortex-R family of processors. It includes the GNU | |
Compiler (GCC) and is available free of charge directly from Arm | |
for embedded software development on Windows, Linux and Mac OS X | |
operating systems. | |
https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# | |
# GNU Arm Embedded Toolchain | |
# | |
################################################################################ | |
# GCC Version being packaged | |
GCC_ARM_NONE_EABI_VERSION_GCC = 7 | |
# Release year | |
GCC_ARM_NONE_EABI_VERSION_YEAR = 2018 | |
# Release quarter | |
GCC_ARM_NONE_EABI_VERSION_Q = 2 | |
# Revision name ("update", "major", ...) | |
GCC_ARM_NONE_EABI_VERSION_REV = update | |
GCC_ARM_NONE_EABI_VERSION = $(GCC_ARM_NONE_EABI_VERSION_GCC)-$(GCC_ARM_NONE_EABI_VERSION_YEAR)-q$(GCC_ARM_NONE_EABI_VERSION_Q)-$(GCC_ARM_NONE_EABI_VERSION_REV) | |
GCC_ARM_NONE_EABI_SOURCE = gcc-arm-none-eabi-$(GCC_ARM_NONE_EABI_VERSION)-linux.tar.bz2 | |
GCC_ARM_NONE_EABI_SITE = https://developer.arm.com/-/media/Files/downloads/gnu-rm/$(GCC_ARM_NONE_EABI_VERSION_GCC)-$(GCC_ARM_NONE_EABI_VERSION_YEAR)q$(GCC_ARM_NONE_EABI_VERSION_Q) | |
GCC_ARM_NONE_EABI_LICENSE = GPL-2.0+, LGPL-2.1+ | |
GCC_ARM_NONE_EABI_LICENSE_FILES = share/doc/gcc-arm-none-eabi/license.txt | |
# This is a prebuilt toolchain, we only extract it to the host | |
GCC_ARM_NONE_EABI_INSTALLDIR = $(HOST_DIR)/share/gcc-arm-none-eabi | |
define HOST_GCC_ARM_NONE_EABI_INSTALL_CMDS | |
mkdir -p $(GCC_ARM_NONE_EABI_INSTALLDIR) | |
cp -dpfr $(@D)/* $(GCC_ARM_NONE_EABI_INSTALLDIR) | |
endef | |
$(eval $(host-generic-package)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment