From a04e76b581059e23ab310e568b2bba21e987d228 Mon Sep 17 00:00:00 2001 From: Lukasz Tekieli Date: Thu, 24 Sep 2020 19:23:19 +0200 Subject: [PATCH] Initialize repo --- .ct-ng-version | 1 + .gitignore | 4 ++++ LICENSE | 21 +++++++++++++++++++ README.md | 28 +++++++++++++++++++++++++ aarch64-rpi3-linux-gnu_defconfig | 11 ++++++++++ arm-cortex_a8-linux-gnueabihf_defconfig | 16 ++++++++++++++ armv6-rpi-linux-gnueabihf_defconfig | 19 +++++++++++++++++ 7 files changed, 100 insertions(+) create mode 100644 .ct-ng-version create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md create mode 100644 aarch64-rpi3-linux-gnu_defconfig create mode 100644 arm-cortex_a8-linux-gnueabihf_defconfig create mode 100644 armv6-rpi-linux-gnueabihf_defconfig diff --git a/.ct-ng-version b/.ct-ng-version new file mode 100644 index 0000000..0da0c0d --- /dev/null +++ b/.ct-ng-version @@ -0,0 +1 @@ +ea38601 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f46eb28 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.build +.config* +build.log +output diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e8ffc5c --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Lukasz Tekieli + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..18d992b --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +# devboards-toolchains +Collection of crosstool-ng toolchains for differents dev boards: +- aarch64-rpi3-linux-gnu_defconfig - **raspberry pi 3b+** +- arm-cortex_a8-linux-gnueabihf_defconfig - **beaglebone black** +- armv6-rpi-linux-gnueabihf_defconfig - **raspberry pi zero w** + +## Prerequisites +- [ct-ng-env](https://github.com/ltekieli/ct-ng-env) + +## Usage +Get the correct version of crosstool-ng: +``` +$ ct-ng-env $(cat ./.ct-ng-version) ~/.ct-ng-current +$ source ~/.ct-ng-current/activate +``` + +Build a toolchain: +``` +$ mkdir -p output/downloads +$ export CT_PREFIX=${PWD}/output +$ DEFCONFIG=aarch64-rpi3-linux-gnu_defconfig ct-ng defconfig +$ ct-ng build + +$ tree -L 1 output/ +output/ +├── aarch64-rpi3-linux-gnu +└── downloads +``` diff --git a/aarch64-rpi3-linux-gnu_defconfig b/aarch64-rpi3-linux-gnu_defconfig new file mode 100644 index 0000000..8ad762f --- /dev/null +++ b/aarch64-rpi3-linux-gnu_defconfig @@ -0,0 +1,11 @@ +CT_CONFIG_VERSION="3" +CT_LOCAL_TARBALLS_DIR="${CT_PREFIX}/downloads" +CT_ARCH_ARM=y +CT_ARCH_CPU="cortex-a53" +CT_ARCH_64=y +CT_STATIC_TOOLCHAIN=y +CT_TARGET_VENDOR="rpi3" +CT_KERNEL_LINUX=y +CT_CC_LANG_CXX=y +CT_DEBUG_GDB=y +CT_ZLIB_NEEDED=y diff --git a/arm-cortex_a8-linux-gnueabihf_defconfig b/arm-cortex_a8-linux-gnueabihf_defconfig new file mode 100644 index 0000000..6b1feef --- /dev/null +++ b/arm-cortex_a8-linux-gnueabihf_defconfig @@ -0,0 +1,16 @@ +CT_CONFIG_VERSION="3" +CT_LOCAL_TARBALLS_DIR="${CT_PREFIX}/downloads" +CT_ARCH_ARM=y +CT_ARCH_CPU="cortex-a8" +CT_ARCH_FPU="vfpv3" +CT_ARCH_FLOAT_HW=y +CT_STATIC_TOOLCHAIN=y +CT_TARGET_VENDOR="cortex_a8" +CT_KERNEL_LINUX=y +CT_CC_LANG_CXX=y +CT_DEBUG_DUMA=y +CT_DEBUG_GDB=y +CT_GDB_NATIVE=y +CT_DEBUG_LTRACE=y +CT_DEBUG_STRACE=y +CT_ZLIB_NEEDED=y diff --git a/armv6-rpi-linux-gnueabihf_defconfig b/armv6-rpi-linux-gnueabihf_defconfig new file mode 100644 index 0000000..c741a56 --- /dev/null +++ b/armv6-rpi-linux-gnueabihf_defconfig @@ -0,0 +1,19 @@ +CT_CONFIG_VERSION="3" +CT_LOCAL_TARBALLS_DIR="${CT_PREFIX}/src" +CT_ARCH_ARM=y +CT_ARCH_CPU="arm1176jzf-s" +CT_ARCH_SUFFIX="v6" +CT_ARCH_FPU="vfp" +CT_ARCH_FLOAT_HW=y +CT_STATIC_TOOLCHAIN=y +CT_TARGET_VENDOR="rpi" +CT_KERNEL_LINUX=y +CT_GLIBC_LOCALES=y +CT_GLIBC_KERNEL_VERSION_CHOSEN=y +CT_GLIBC_MIN_KERNEL_VERSION="3.2.27" +CT_CC_GCC_DISABLE_PCH=y +CT_CC_GCC_BUILD_ID=y +CT_CC_GCC_LNK_HASH_STYLE_BOTH=y +CT_CC_LANG_CXX=y +CT_DEBUG_GDB=y +CT_ZLIB_NEEDED=y