Skip to content

Commit bb085e6

Browse files
galaknashif
authored andcommitted
import meta-zephyr-sdk into sdk-ng
Pull commit 02e1ec6d512fbb2bfea10f56e83a7ac83753560d of meta-zephyr-sdk into sdk-ng so there is only one repo to deal with for sdk-ng. Signed-off-by: Kumar Gala <[email protected]>
1 parent 789f532 commit bb085e6

File tree

100 files changed

+5967
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+5967
-1
lines changed

.shippable.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ build:
3434
- unset CC
3535
- >
3636
if [ "${TARGET}" == 'tools' ]; then
37-
git clone https://github.com/zephyrproject-rtos/meta-zephyr-sdk.git;
3837
./meta-zephyr-sdk/scripts/meta-zephyr-sdk-clone.sh;
3938
./meta-zephyr-sdk/scripts/meta-zephyr-sdk-build-split.sh tools || ./meta-zephyr-sdk/scripts/meta-zephyr-sdk-build-split.sh tools || ./meta-zephyr-sdk/scripts/meta-zephyr-sdk-build-split.sh tools;
4039
mv ./meta-zephyr-sdk/scripts/toolchains/zephyr-sdk-x86_64-hosttools-standalone-0.9.sh .

meta-zephyr-sdk/.pullapprove.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 2
2+
3+
4+
requirements:
5+
signed_off_by:
6+
required: false
7+
groups:
8+
code-review:
9+
approve_by_comment:
10+
approve_regex: ^Approved
11+
enabled: true
12+
reject_regex: ^Rejected
13+
required: 1
14+
reset_on_push:
15+
enabled: false
16+
users:
17+
- nashif

meta-zephyr-sdk/.shippable.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
language: c
2+
3+
compiler: gcc
4+
5+
env:
6+
matrix:
7+
- SDK_TARGET=tools
8+
- SDK_TARGET=xtensa
9+
- SDK_TARGET=x86
10+
- SDK_TARGET=arm
11+
- SDK_TARGET=iamcu
12+
- SDK_TARGET=arc
13+
- SDK_TARGET=mips
14+
- SDK_TARGET=nios2
15+
- SDK_TARGET=riscv32
16+
17+
build:
18+
cache: false
19+
pre_ci_boot:
20+
image_name: zephyrprojectrtos/ci
21+
image_tag: v0.4-rc7
22+
pull: true
23+
options: "-e HOME=/home/buildslave --privileged=true --tty --net=bridge --user buildslave"
24+
25+
ci:
26+
- cd ..
27+
- ./meta-zephyr-sdk/scripts/meta-zephyr-sdk-clone.sh
28+
- ./meta-zephyr-sdk/scripts/meta-zephyr-sdk-build-split.sh ${SDK_TARGET} || ./meta-zephyr-sdk/scripts/meta-zephyr-sdk-build-split.sh ${SDK_TARGET} || ./meta-zephyr-sdk/scripts/meta-zephyr-sdk-build-split.sh ${SDK_TARGET}
29+
- >
30+
if [ "$IS_PULL_REQUEST" = "false" ]; then
31+
sudo -E sh -c 'echo "IS_GIT_TAG=${IS_GIT_TAG}" >> $JOB_STATE/sdk.env';
32+
sudo -E sh -c 'echo "IS_RELEASE=${IS_RELEASE}" >> $JOB_STATE/sdk.env';
33+
sudo -E sh -c 'echo "IS_PRERELEASE=${IS_PRERELEASE}" >> $JOB_STATE/sdk.env';
34+
sudo -E sh -c 'echo "GIT_TAG_NAME=${GIT_TAG_NAME}" >> $JOB_STATE/sdk.env';
35+
cat $JOB_STATE/sdk.env;
36+
export S3_PATH="s3://incoming.zephyrproject.org/sdk/${METAZEPHYRSDK_CIREPO_VERSIONNUMBER}";
37+
mkdir -p ./meta-zephyr-sdk/scripts/toolchains/;
38+
cp ./meta-zephyr-sdk/scripts/make_zephyr_sdk.sh ./meta-zephyr-sdk/scripts/toolchains/;
39+
cp ./meta-zephyr-sdk/scripts/template_dir ./meta-zephyr-sdk/scripts/toolchains/;
40+
aws s3 sync ./meta-zephyr-sdk/scripts/toolchains/ ${S3_PATH}/toolchains/;
41+
fi
42+
43+
integrations:
44+
generic:
45+
- integrationName: aws_s3_simple
46+

meta-zephyr-sdk/LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 otcshare
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

meta-zephyr-sdk/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[![Run Status](https://api.shippable.com/projects/58ffb2b82ddacd0900464db0/badge?branch=master)](https://app.shippable.com/github/zephyrproject-rtos/meta-zephyr-sdk)
2+
3+
# Build Zephyr SDK
4+
5+
6+
Build the SDK in Docker using poky-zephyr-sdk container, follow the instructions below:
7+
8+
```
9+
$ cd $HOME
10+
$ mkdir -p zephyr-sdk
11+
$ git clone [email protected]:zephyrproject-rtos/meta-zephyr-sdk.git zephyr-sdk/meta-zephyr-sdk
12+
$ docker run --privileged --rm -it -v $HOME/zephyr-sdk:/workdir crops/poky-zephyr-sdk --workdir=/workdir
13+
```
14+
15+
Once in the container, clone the repos and build the SDK:
16+
17+
```
18+
workdir$ ./meta-zephyr-sdk/scripts/meta-zephyr-sdk-clone.sh
19+
workdir$ ./meta-zephyr-sdk/scripts/meta-zephyr-sdk-build.sh
20+
```
21+
22+
When finished, the resulting SDK binary can be found under
23+
24+
workdir/poky/meta-zephyr-sdk/scripts
25+
26+
For more info about container, please see: https://github.com/crops/poky-container
27+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
SANITY_TESTED_DISTROS = " \
2+
Ubuntu-14.04 \n \
3+
Ubuntu-15.04 \n \
4+
Ubuntu-16.04 \n \
5+
Fedora-23 \n \
6+
"
7+
8+
DISTRO = "zephyr-sdk"
9+
DISTRO_CODENAME = "zephyr-sdk"
10+
DISTRO_NAME = "Zephyr Yocto Toolchain"
11+
MAINTAINER = "Intel Yocto team"
12+
13+
SSTATE_DIR ?= "${TOPDIR}/../zephyr-cache/sstate-cache"
14+
CACHE_forcevariable = "${TOPDIR}/../zephyr-cache/cache"
15+
PERSISTENT_DIR = "${TOPDIR}/../zephyr-cache/persistent"
16+
DL_DIR ?= "${TOPDIR}/../zephyr-downloads"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
require conf/distro/poky.conf
2+
require include/zephyr-sdk.inc
3+
4+
DISTRO_VERSION = "0.9"
5+
PACKAGE_CLASSES = "package_ipk"
6+
TARGET_VENDOR = "-zephyr"

meta-zephyr-sdk/conf/layer.conf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# We have a conf and classes directory, add to BBPATH
2+
BBPATH := "${BBPATH}:${LAYERDIR}"
3+
4+
# We have a packages directory, add to BBFILES
5+
BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend"
6+
7+
LICENSE_PATH += "${LAYERDIR}/files/additional-licenses"
8+
9+
BBFILE_COLLECTIONS += "zephyr-sdk"
10+
BBFILE_PATTERN_zephyr-sdk := "^${LAYERDIR}/"
11+
BBFILE_PRIORITY_zephyr-sdk = "8"
12+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
require conf/machine/arch-arc.inc
2+
3+
PREFERRED_VERSION_gcc-cross-${TARGET_ARCH} ?= "6.x.arc"
4+
PREFERRED_VERSION_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "6.x.arc"
5+
PREFERRED_VERSION_libgcc ?= "6.x.arc"
6+
7+
PREFERRED_VERSION_binutils-cross-${TARGET_ARCH} ?= "2.26+gitarc"
8+
PREFERRED_VERSION_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "2.26+gitarc"
9+
10+
PREFERRED_VERSION_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "7.12+gitarc"
11+
12+
TARGET_LINK_HASH_STYLE = ""
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
DEFAULTTUNE ?= "arc"
2+
3+
TUNE_ARCH = "arc"
4+
TUNE_PKGARCH = "arc"
5+
TUNE_FEATURES_tune-arc = "littleendian"
6+
TUNE_CCARGS = ""
7+
8+
TUNEVALID[littleendian] = "Little endian mode"
9+
10+
def arc_siteinfo_setfunc(archinfo, osinfo, targetinfo, d):
11+
archinfo['arc'] = "endian-little bit-32 "
12+
osinfo['linux'] = "common-linux common-glibc"
13+
targetinfo['arc-linux'] = "arc-linux"
14+
return archinfo, osinfo, targetinfo
15+
16+
SITEINFO_EXTRA_DATAFUNCS = "arc_siteinfo_setfunc"
17+
18+
def arc_machdata_setfunc(machdata, d):
19+
machdata["elf"] = { "arc" : (195, 0, 0, True, 32), }
20+
return machdata
21+
22+
PACKAGEQA_EXTRA_MACHDEFFUNCS = "arc_machdata_setfunc"
23+
24+

0 commit comments

Comments
 (0)