Skip to content

Commit

Permalink
Initialize repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ltekieli committed Sep 24, 2020
0 parents commit a04e76b
Show file tree
Hide file tree
Showing 7 changed files with 100 additions and 0 deletions.
1 change: 1 addition & 0 deletions .ct-ng-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ea38601
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.build
.config*
build.log
output
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -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.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
```
11 changes: 11 additions & 0 deletions aarch64-rpi3-linux-gnu_defconfig
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions arm-cortex_a8-linux-gnueabihf_defconfig
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions armv6-rpi-linux-gnueabihf_defconfig
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a04e76b

Please sign in to comment.