forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request zephyrproject-rtos#5 from Pillar1989/flash
add Flash
- Loading branch information
Showing
7,940 changed files
with
339,631 additions
and
133,701 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
steps: | ||
- command: | ||
- .buildkite/run.sh | ||
env: | ||
ZEPHYR_TOOLCHAIN_VARIANT: "zephyr" | ||
ZEPHYR_SDK_INSTALL_DIR: "/opt/sdk/zephyr-sdk-0.11.4" | ||
parallelism: 240 | ||
timeout_in_minutes: 210 | ||
retry: | ||
manual: true | ||
plugins: | ||
- docker#v3.5.0: | ||
image: "zephyrprojectrtos/ci:v0.11.10" | ||
propagate-environment: true | ||
volumes: | ||
- "/var/lib/buildkite-agent/git-mirrors:/var/lib/buildkite-agent/git-mirrors" | ||
- "/var/lib/buildkite-agent/zephyr-module-cache:/var/lib/buildkite-agent/zephyr-module-cache" | ||
- "/var/lib/buildkite-agent/zephyr-ccache:/root/.ccache" | ||
workdir: "/workdir/zephyr" | ||
agents: | ||
- "queue=default" | ||
|
||
- wait: ~ | ||
continue_on_failure: true | ||
|
||
- plugins: | ||
- junit-annotate#v1.7.0: | ||
artifacts: twister-*.xml | ||
|
||
notify: | ||
- email: "builds+int+399+7809482394022958124@lists.zephyrproject.org" | ||
if: build.state != "passed" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2020 Linaro Limited | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# report disk usage: | ||
echo "--- $0 disk usage" | ||
df -h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2020 Linaro Limited | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Save off where we started so we can go back there | ||
WORKDIR=${PWD} | ||
|
||
echo "--- $0 disk usage" | ||
df -h | ||
du -hs /var/lib/buildkite-agent/* | ||
docker images -a | ||
docker system df -v | ||
|
||
if [ -n "${BUILDKITE_PULL_REQUEST_BASE_BRANCH}" ]; then | ||
git fetch -v origin ${BUILDKITE_PULL_REQUEST_BASE_BRANCH} | ||
git checkout FETCH_HEAD | ||
git config --local user.email "builds@zephyrproject.org" | ||
git config --local user.name "Zephyr CI" | ||
git merge --no-edit "${BUILDKITE_COMMIT}" || { | ||
local merge_result=$? | ||
echo "Merge failed: ${merge_result}" | ||
git merge --abort | ||
exit $merge_result | ||
} | ||
fi | ||
|
||
mkdir -p /var/lib/buildkite-agent/zephyr-ccache/ | ||
|
||
# create cache dirs, no-op if they already exist | ||
mkdir -p /var/lib/buildkite-agent/zephyr-module-cache/modules | ||
mkdir -p /var/lib/buildkite-agent/zephyr-module-cache/tools | ||
mkdir -p /var/lib/buildkite-agent/zephyr-module-cache/bootloader | ||
|
||
# Clean cache - if it already exists | ||
cd /var/lib/buildkite-agent/zephyr-module-cache | ||
find -type f -not -path "*/.git/*" -not -name ".git" -delete | ||
|
||
# Remove any stale locks | ||
find -name index.lock -delete | ||
|
||
# return from where we started so we can find pipeline files from | ||
# git repo | ||
cd ${WORKDIR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
steps: | ||
- command: | ||
- .buildkite/run.sh | ||
env: | ||
ZEPHYR_TOOLCHAIN_VARIANT: "zephyr" | ||
ZEPHYR_SDK_INSTALL_DIR: "/opt/sdk/zephyr-sdk-0.11.4" | ||
parallelism: 40 | ||
timeout_in_minutes: 180 | ||
retry: | ||
manual: true | ||
plugins: | ||
- docker#v3.5.0: | ||
image: "zephyrprojectrtos/ci:v0.11.10" | ||
propagate-environment: true | ||
volumes: | ||
- "/var/lib/buildkite-agent/git-mirrors:/var/lib/buildkite-agent/git-mirrors" | ||
- "/var/lib/buildkite-agent/zephyr-module-cache:/var/lib/buildkite-agent/zephyr-module-cache" | ||
- "/var/lib/buildkite-agent/zephyr-ccache:/root/.ccache" | ||
workdir: "/workdir/zephyr" | ||
agents: | ||
- "queue=default" | ||
|
||
- wait: ~ | ||
continue_on_failure: true | ||
|
||
- plugins: | ||
- junit-annotate#v1.7.0: | ||
artifacts: twister-*.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2020 Linaro Limited | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
set -eE | ||
|
||
function cleanup() | ||
{ | ||
# Rename twister junit xml for use with junit-annotate-buildkite-plugin | ||
# create dummy file if twister did nothing | ||
if [ ! -f twister-out/twister.xml ]; then | ||
touch twister-out/twister.xml | ||
fi | ||
mv twister-out/twister.xml twister-${BUILDKITE_JOB_ID}.xml | ||
buildkite-agent artifact upload twister-${BUILDKITE_JOB_ID}.xml | ||
|
||
|
||
# Upload test_file to get list of tests that are build/run | ||
if [ -f test_file.txt ]; then | ||
buildkite-agent artifact upload test_file.txt | ||
fi | ||
|
||
# ccache stats | ||
echo "--- ccache stats at finish" | ||
ccache -s | ||
|
||
# disk usage | ||
echo "--- disk usage at finish" | ||
df -h | ||
} | ||
|
||
trap cleanup ERR | ||
|
||
echo "--- run $0" | ||
|
||
git log -n 5 --oneline --decorate --abbrev=12 | ||
|
||
# Setup module cache | ||
cd /workdir | ||
ln -s /var/lib/buildkite-agent/zephyr-module-cache/modules | ||
ln -s /var/lib/buildkite-agent/zephyr-module-cache/tools | ||
ln -s /var/lib/buildkite-agent/zephyr-module-cache/bootloader | ||
cd /workdir/zephyr | ||
|
||
export JOB_NUM=$((${BUILDKITE_PARALLEL_JOB}+1)) | ||
|
||
# ccache stats | ||
echo "" | ||
echo "--- ccache stats at start" | ||
ccache -s | ||
|
||
|
||
if [ -n "${DAILY_BUILD}" ]; then | ||
SANITYCHECK_OPTIONS=" --inline-logs -N --build-only --all --retry-failed 3 -v " | ||
echo "--- DAILY BUILD" | ||
west init -l . | ||
west update 1> west.update.log || west update 1> west.update-2.log | ||
west forall -c 'git reset --hard HEAD' | ||
source zephyr-env.sh | ||
./scripts/twister --subset ${JOB_NUM}/${BUILDKITE_PARALLEL_JOB_COUNT} ${SANITYCHECK_OPTIONS} | ||
else | ||
if [ -n "${BUILDKITE_PULL_REQUEST_BASE_BRANCH}" ]; then | ||
./scripts/ci/run_ci.sh -c -b ${BUILDKITE_PULL_REQUEST_BASE_BRANCH} -r origin \ | ||
-m ${JOB_NUM} -M ${BUILDKITE_PARALLEL_JOB_COUNT} -p ${BUILDKITE_PULL_REQUEST} | ||
else | ||
./scripts/ci/run_ci.sh -c -b ${BUILDKITE_BRANCH} -r origin \ | ||
-m ${JOB_NUM} -M ${BUILDKITE_PARALLEL_JOB_COUNT}; | ||
fi | ||
fi | ||
|
||
SANITY_EXIT_STATUS=$? | ||
|
||
cleanup | ||
|
||
exit ${SANITY_EXIT_STATUS} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
name: Hardware Support | ||
about: Suggest adding hardware support | ||
title: '' | ||
labels: Hardware Support | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is this request related to a missing driver support for a particular hardware platform, SoC or board? Please describe.** | ||
Describe in details the hardware support being requested and why this support benefits Zephyr. | ||
|
||
**Describe why you are asking for this support?** | ||
Describe why you are asking for this support instead of contributing it directly to the tree | ||
|
||
If this is a new board or SoC, please state whether you are willing to maintain the Zephyr support for it if it is included in the main tree | ||
|
||
**Additional context** | ||
Add any other context or graphics (drag-and-drop an image) about the hardware here. |
File renamed without changes.
Oops, something went wrong.