Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by mx.groups.io with SMTP id smtpd.web10.10964.1591796622004060818 for ; Wed, 10 Jun 2020 06:43:42 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=kgeiphrl; spf=pass (domain: linaro.org, ip: 209.85.215.193, mailfrom: sumit.garg@linaro.org) Received: by mail-pg1-f193.google.com with SMTP id e18so1009724pgn.7 for ; Wed, 10 Jun 2020 06:43:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZHBPvjSWePGsNjllRV0+qTuRSC0Z7D5x3IFRZeA5vxA=; b=kgeiphrlR4z/QeB1ifeDM4tEWbOUunYKvn+oKA97hSmnRz700IUUSBDR1SYWzSG3M/ itwFWgZtJtJ4iGDKBIkgnNjPthUr72HemqSPJSbcDS98wbrcpCCSCsA1iXY6dMm+h2dh gT72rdUzheejXichTuALYWpo0PuSIyVj236sIR5UVw9M+/XQUZaD2NvqSbMvmJZsWsqO lp4pXcRkk6IA8KWfp+L+wlU794nbKY0F/mjKXeFVWYYlRl36oBXyMuYmhm5GV/0DK0r1 McKTHTW2jfTEe363/jvDMzqEBBB0POF2SYujwvcFIAd18SdDezRHf46JHR+0olXeRCS/ FKlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZHBPvjSWePGsNjllRV0+qTuRSC0Z7D5x3IFRZeA5vxA=; b=ZYAfIhcgQTLMwq+UuBIcQaSnNpEnnXQ8oDFnGF2+cdivVQSVOqKqfB/Ua1H7oT5WRS lkIDgGaOM/LHRcSOiA5k93fvhhe40NdA2skyLgPQfeh+WsdZ+MEuUMVMzZ83vGECZCWX vxi8osDyn5BAxdUDDcb7bz8LCIzfJViEknYQBxnPxo+7gHcNE+0D3M4ktHdFmgQKh/CQ A/8Guu0oG0QBsT//Nd1LwIsDzjC6+PkgFiKn+uzRNY/BlQPNpaQo5f/6xC6aB2m6XCYu ZEIam7jXiRxU42/oYTsn4ED9yBa+jAQCxnokB8qLmD6n+qbPxSRzelTWo9CH4mlPd01x SL5Q== X-Gm-Message-State: AOAM533R0yiU7qY48mwsb9sZ+IzWUN4+P9a3isntphllsnZeO5s7GasT 2u7vd85u5Uo1RkUBqzXVTPh1QZFRK90= X-Google-Smtp-Source: ABdhPJyoWwJsj5duL9QakzhyDZgdWUVbAW/Pdd/Fl8A3rPTuE12vsvrQsFbZPCCUMWflyYBAJaDyJg== X-Received: by 2002:a05:6a00:1511:: with SMTP id q17mr2859307pfu.16.1591796620954; Wed, 10 Jun 2020 06:43:40 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([117.252.64.69]) by smtp.gmail.com with ESMTPSA id u12sm5227530pjy.37.2020.06.10.06.43.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jun 2020 06:43:40 -0700 (PDT) From: "Sumit Garg" To: meta-arm@lists.yoctoproject.org Cc: pbarker@konsulko.com, denis@denix.org, wmills@ti.com, richard.purdie@linuxfoundation.org, daniel.thompson@linaro.org, Sumit Garg Subject: [PATCH v2 4/5] meta-arm-toolchain: Add README Date: Wed, 10 Jun 2020 19:13:01 +0530 Message-Id: <1591796582-5015-5-git-send-email-sumit.garg@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1591796582-5015-1-git-send-email-sumit.garg@linaro.org> References: <1591796582-5015-1-git-send-email-sumit.garg@linaro.org> Document usage details for GNU Arm toolchains which could either be built from source or pre-built. Signed-off-by: Sumit Garg --- meta-arm-toolchain/README.md | 113 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 meta-arm-toolchain/README.md diff --git a/meta-arm-toolchain/README.md b/meta-arm-toolchain/README.md new file mode 100644 index 0000000..e415136 --- /dev/null +++ b/meta-arm-toolchain/README.md @@ -0,0 +1,113 @@ +meta-arm-toolchain Yocto Layer +============================== + +This layer contains recipes for GNU Arm toolchains which could either be built +from source or pre-built toolchain binaries. + +Information regarding contributing, reporting bugs, etc can be found in the +top-level meta-arm readme file. + +Source Arm toolchain for Linux development +------------------------------------------ + +Recipes for GNU Arm toolchain built from source are provided under +``recipes-devtools/gcc/``. In order to use Arm toolchain instead of OE core +toolchain, one just needs to override ``GCCVERSION`` in corresponding distro +conf file. + +- Eg. to use GNU Arm toolchain version ``9.2`` + GCCVERSION = "arm-9.2" + +Pre-built Arm toolchain for Linux development +--------------------------------------------- + +Recipes for pre-built GNU Arm toolchain for Linux development are provided under +``recipes-devtools/external-arm-toolchain/``. + +external-arm-toolchain.bb +~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU toolchains targeting processors +from the Arm Cortex-A family and implementing the Arm A-profile architecture. + +Usage +^^^^^ + +In order to use any of pre-built Arm toolchain versions (8.2, 8.3, 9.2 and so +on), a user needs to download and untar tool-set on host machine at a particular +installation path eg: ``/opt/toolchain/``. Then user needs to specify following +in ``conf/local.conf`` in order to replace OE toolchain with pre-built GNU-A +toolchain: + +TCMODE = "external-arm" +EXTERNAL_TOOLCHAIN = "" + +- Eg. for AArch64 (eg. qemuarm64 machine in poky distro) + EXTERNAL_TOOLCHAIN = "\ + /gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu \ + " + +- Eg. for AArch32 (eg. qemuarm machine in poky distro) + EXTERNAL_TOOLCHAIN = "\ + /gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf \ + " + +Supported distros and machines +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Since this pre-built GNU-A tool-set simply replaces OE toolchain, so it is +meant to be distro and machine agnostic as long as one is cross-compiling for +Arm A-profile architecture. + +Tested distro and machines (for zeus stable release): +1. Distro: poky; machines: qemuarm and qemuarm64 (build and boot tested) +2. Distro: RPB; machines: dragonboard-410c (build and boot tested) +3. Distro: world; machines: qemuarm and qemuarm64. Build tested for following + layers: + - poky/meta + - poky/meta-poky + - poky/meta-yocto-bsp + - meta-openembedded/meta-oe + - meta-openembedded/meta-python + - meta-openembedded/meta-networking + +SDK support +^^^^^^^^^^^ + +Pre-built toochain provides support to build OE SDK which has been tested using +following commands: + +$ bitbake core-image-base -c populate_sdk +$ bitbake core-image-base -c testsdk + +Note: Currently generated SDK only uses glibc provided by pre-built toolchain. + The cross compiler, binutils, gdb/gdbserver etc. are built from source. + This is something we would like to improve in future in order to package + most of the components from pre-built toolchain instead. + +Pre-built Arm toolchain for bare-metal development +-------------------------------------------------- + +Recipes for pre-built GNU Arm toolchain for bare-metal development are provided +under ``recipes-devtools/external-arm-toolchain/``. + +gcc-arm-none-eabi_.bb +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU Arm Embedded toolchain for +bare-metal software development on devices based on 32-bit Arm Cortex-A, +Cortex-R and Cortex-M processors. + +Supported version: 9-2019-q4-major + +gcc-aarch64-none-elf_.bb +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +This recipe provides support for pre-built GNU Arm toolchain for bare-metal +software development on devices based on 64-bit Arm Cortex-A processors. + +Supported version: 9.2-2019.12 + +Layer maintainer(s) +------------------- +* Sumit Garg -- 2.7.4