summaryrefslogtreecommitdiffstats
path: root/bsp/meta-ti/recipes-ti/devtools/gcc-aarch64-none-elf_9.2-2019.12.bb
blob: 2ec0f9cf16a1a6485fb5a52f673acd3fbd722d09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright (C) 2020 Texas Instruments Inc.
# Released under the MIT license (see COPYING.MIT for the terms)

SUMMARY = "Baremetal GCC for Aarch64 processors"
LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"

LIC_FILES_CHKSUM = "file://share/doc/gcc/GNU-Free-Documentation-License.html;md5=cc1e9a49a59ce7e6ae5ef37cd16eca0c"

PROVIDES = "virtual/aarch64-none-elf-gcc"

SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/binrel/gcc-arm-${PV}-x86_64-aarch64-none-elf.tar.xz"

SRC_URI[sha256sum] = "36d2cbe7c2984f2c20f562ac2f3ba524c59151adfa8ee10f1326c88de337b6d1"

S = "${WORKDIR}/gcc-arm-${PV}-x86_64-aarch64-none-elf"

COMPATIBLE_HOST = "x86_64.*-linux"

do_install() {
    install -d ${D}${datadir}/aarch64-none-elf/
    cp -r ${S}/. ${D}${datadir}/aarch64-none-elf/

    install -d ${D}${bindir}
    # Symlink all executables into bindir
    for f in ${D}${datadir}/aarch64-none-elf/bin/aarch64-none-elf-*; do
        lnr $f ${D}${bindir}/$(basename $f)
    done
}

FILES_${PN} = "${datadir} ${bindir}"

INSANE_SKIP_${PN} = "already-stripped libdir staticdev file-rdeps"

INHIBIT_SYSROOT_STRIP = "1"
INHIBIT_PACKAGE_STRIP = "1"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"

BBCLASSEXTEND = "native nativesdk"