diff --git a/recipes-devtools/prebuilt-gcc-linaro/prebuilt-gcc-linaro_4.9-2016.02.bb b/recipes-devtools/prebuilt-gcc-linaro/prebuilt-gcc-linaro_4.9-2016.02.bb new file mode 100644 index 0000000..a6af321 --- /dev/null +++ b/recipes-devtools/prebuilt-gcc-linaro/prebuilt-gcc-linaro_4.9-2016.02.bb @@ -0,0 +1,27 @@ +# Copyright (C) 2016 Romain Perier +# Released under the MIT license (see COPYING.MIT for the terms) + +inherit base native + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM="file://include/gmp.h;beginline=1;endline=29;md5=6e0172559b628f995afd902f4920f78b" +ARM_ABI = "arm-linux-gnueabi" +VER = "${PV}-x86_64_${ARM_ABI}" +SRC_URI = "https://releases.linaro.org/components/toolchain/binaries/${PV}/${ARM_ABI}/gcc-linaro-${VER}.tar.xz" +SRC_URI[sha256sum] = "fdef102e754b2aa9e7d0b2ad465216a41b421694e1ce0cc972621214f8ac4bd5" + +S = "${WORKDIR}/gcc-linaro-${VER}" + +python do_fetch() { + build_arch = d.getVar("BUILD_ARCH", True) + if build_arch != "x86_64": + bb.fatal("Build architecture '%s' is not supported by this package\n" % build_arch) + bb.build.exec_func("base_do_fetch", d) +} + +do_install() { + DIRS="arm-linux-gnueabi bin lib libexec" + for subdir in $DIRS; do + cp -rPp ${S}/${subdir} ${STAGING_DIR_NATIVE}${prefix_native} + done +}