Skip to content

Commit 28cc258

Browse files
committed
Import picolibc 1.8.11 with copyleft files excluded
Based on upstream picolibc tag 1.8.11 (f7edb0869e64b9d687f46961adeef7154921fe92) https://github.com/picolibc/picolibc Excluded files: - test/test-stdio/test-printf.c - test/test-stdio/test-printf-testcases.h - scripts/GeneratePicolibcCrossFile.sh - COPYING.GPL2
0 parents  commit 28cc258

3,625 files changed

Lines changed: 668043 additions & 0 deletions

File tree

Some content is hidden

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

.clang-format

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
BasedOnStyle: WebKit
3+
AlignAfterOpenBracket: Align
4+
AlignArrayOfStructures: Left
5+
AlignConsecutiveBitFields:
6+
Enabled: true
7+
AlignConsecutiveDeclarations:
8+
Enabled: true
9+
AcrossEmptyLines: true
10+
AcrossComments: true
11+
AlignFunctionDeclarations: true
12+
AlignFunctionPointers: true
13+
PadOperators: true
14+
AlignConsecutiveMacros:
15+
Enabled: true
16+
AcrossEmptyLines: true
17+
AlignEscapedNewlines: LeftWithLastLine
18+
AlignTrailingComments:
19+
Kind: Always
20+
OverEmptyLines: 0
21+
AllowShortFunctionsOnASingleLine: Inline
22+
AttributeMacros:
23+
- '__pure'
24+
- '__picolibc_format'
25+
- '__nonnull'
26+
- '__returns_nonnull'
27+
- '__alloc_size'
28+
- '__alloc_size2'
29+
- '__alooc_align'
30+
- '__noreturn'
31+
- '__const'
32+
- '__unused'
33+
- '__used'
34+
- '__packed'
35+
- '__aligned'
36+
- '__section'
37+
- '__naked'
38+
- '__noinline'
39+
- '__always_inline'
40+
- '__warn_unused_result'
41+
- '__weak'
42+
- '__nothrow'
43+
- '__no_sanitize_address'
44+
- '__no_sanitize'
45+
- '__no_sanitize_undefined'
46+
- '__disable_sanitizer_instrumentation'
47+
- '__disable_sanitizer'
48+
- '__deprecated_m'
49+
- '__deprecated'
50+
- '__no_builtin'
51+
- '__malloc_like_with_free'
52+
- '__malloc_like'
53+
- '__returns_twice'
54+
BreakAfterReturnType: AllDefinitions
55+
ColumnLimit: 100
56+
PointerAlignment: Right
57+
SortIncludes:
58+
Enabled: false
59+
SpaceAroundPointerQualifiers: Before
60+
StatementMacros:
61+
- '__ssp_redirect'
62+
- '__ssp_redirect_raw'
63+
- '__ssp_redirect_wc'
64+
- '__ssp_redirect0'
65+
- '__ssp_bos_wicheck3'
66+
- '__ssp_bos_wicheck3_restrict'
67+
- '__ssp_bos_wicheck2_restrict'
68+
TypenameMacros:
69+
- '__declare_extern_inline'
70+
- '__strong_reference'
71+
- '__weak_reference'
72+
...

.clang-format-ignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
!**/*.[ch]
2+
**/*asm*.h
3+
**/*.ld.in

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[*]
2+
tab_width = 8
3+
charset = utf-8
4+
insert_final_newline = true
5+
6+
[*.{c,h,s,S}]
7+
indent_size = 4
8+
indent_style = space
9+
10+
[meson*]
11+
indent_style = space
12+
13+
[*.yml]
14+
indent_style = space

.gitattributes

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# -*- conf -*-
2+
3+
## Set merge driver for ChangeLog files
4+
# See gnulib's lib/git-merge-changelog.c (or git-merge-changelog(1))
5+
# for per-user setup instructions.
6+
#
7+
# The short version of this (optional) procedure is:
8+
#
9+
# (1) Install git-merge-changelog (this is the tricky part!)
10+
#
11+
# (2) Add something like the following to your ~/.gitconfig:
12+
#
13+
# [merge "merge-changelog"]
14+
# name = GNU-style ChangeLog merge driver
15+
# driver = git-merge-changelog %O %A %B
16+
#
17+
# (3) Enjoy mostly effortless ChangeLog merges, at least until the
18+
# file gets renamed again ...
19+
20+
ChangeLog merge=merge-changelog

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Automatically request review on all PRs
2+
* @keith-packard

.github/Dockerfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM debian:sid
2+
3+
COPY .github/linux-packages.txt /
4+
5+
COPY .github/linux-files.txt /
6+
7+
RUN dpkg --add-architecture i386 && \
8+
(apt-get update || apt-get update || apt-get update) && \
9+
(apt-get upgrade -y || apt-get upgrade -y || apt-get upgrade -y) && \
10+
(xargs -a linux-packages.txt apt-get install -y --no-install-recommends || \
11+
xargs -a linux-packages.txt apt-get install -y --no-install-recommends || \
12+
xargs -a linux-packages.txt apt-get install -y --no-install-recommends || \
13+
xargs -a linux-packages.txt apt-get install -y --no-install-recommends) && \
14+
apt-get clean && \
15+
mkdir -p /opt && \
16+
(cd /opt && \
17+
for file in `cat /linux-files.txt`; do \
18+
echo "Fetching $file"; \
19+
wget -nv "$file" || exit 1; \
20+
echo "Unpacking $file"; \
21+
tar xf `basename "$file"`; \
22+
echo "Removing $file"; \
23+
rm `basename "$file"`; \
24+
done) && \
25+
rm -rf /var/lib/apt/lists/*
26+

.github/Dockerfile-check-format

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
FROM debian:sid
2+
3+
COPY .github/check-format-packages.txt /
4+
5+
COPY .github/check-format-files.txt /
6+
7+
RUN (apt-get update || apt-get update || apt-get update) && \
8+
(apt-get upgrade -y || apt-get upgrade -y || apt-get upgrade -y) && \
9+
(xargs -a check-format-packages.txt apt-get install -y --no-install-recommends || \
10+
xargs -a check-format-packages.txt apt-get install -y --no-install-recommends || \
11+
xargs -a check-format-packages.txt apt-get install -y --no-install-recommends || \
12+
xargs -a check-format-packages.txt apt-get install -y --no-install-recommends) && \
13+
apt-get clean && \
14+
mkdir -p /opt && \
15+
(cd /opt && \
16+
for file in `cat /check-format-files.txt`; do \
17+
echo "Fetching $file"; \
18+
wget -nv "$file" || exit 1; \
19+
echo "Unpacking $file"; \
20+
tar xf `basename "$file"`; \
21+
echo "Removing $file"; \
22+
rm `basename "$file"`; \
23+
done) && \
24+
rm -rf /var/lib/apt/lists/*
25+

.github/Dockerfile-coreboot

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# syntax=docker/dockerfile:1
2+
FROM coreboot/coreboot-sdk
3+
4+
COPY .github/coreboot-packages.txt /
5+
6+
COPY .github/coreboot-files.txt /
7+
8+
USER root
9+
RUN apt-get update && \
10+
apt-get install -y --no-install-recommends ca-certificates wget gnupg && \
11+
(apt-get update || apt-get update || apt-get update) && \
12+
(apt-get upgrade -y || apt-get upgrade -y || apt-get upgrade -y) && \
13+
(xargs -a coreboot-packages.txt apt-get install -y --no-install-recommends || \
14+
xargs -a coreboot-packages.txt apt-get install -y --no-install-recommends || \
15+
xargs -a coreboot-packages.txt apt-get install -y --no-install-recommends || \
16+
xargs -a coreboot-packages.txt apt-get install -y --no-install-recommends) && \
17+
mkdir -p /opt && \
18+
(cd /opt && \
19+
for file in `cat /coreboot-files.txt`; do \
20+
echo "Fetching $file"; \
21+
wget "$file" || exit 1; \
22+
echo "Unpacking $file"; \
23+
tar xf `basename "$file"`; \
24+
echo "Removing $file"; \
25+
rm `basename "$file"`; \
26+
done) && \
27+
apt-get clean && \
28+
rm -rf /var/lib/apt/lists/*
29+

.github/Dockerfile-zephyr

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# syntax=docker/dockerfile:1
2+
FROM debian:sid
3+
4+
COPY .github/zephyr-packages.txt /
5+
6+
COPY .github/zephyr-files.txt /
7+
8+
COPY .github/zephyr-setup /
9+
10+
RUN (apt-get update || apt-get update || apt-get update) && \
11+
(apt-get upgrade -y || apt-get upgrade -y || apt-get upgrade -y) && \
12+
(xargs -a zephyr-packages.txt apt-get install -y --no-install-recommends || \
13+
xargs -a zephyr-packages.txt apt-get install -y --no-install-recommends || \
14+
xargs -a zephyr-packages.txt apt-get install -y --no-install-recommends || \
15+
xargs -a zephyr-packages.txt apt-get install -y --no-install-recommends) && \
16+
apt-get clean && \
17+
mkdir -p /opt && \
18+
(cd /opt && \
19+
for file in `cat /zephyr-files.txt`; do \
20+
echo "Fetching $file"; \
21+
wget -nv "$file" || exit 1; \
22+
echo "Unpacking $file"; \
23+
tar xf `basename "$file"`; \
24+
echo "Removing $file"; \
25+
rm `basename "$file"`; \
26+
done) && \
27+
if [ -f /opt/zephyr-sdk-*-hosttools*.sh ]; then \
28+
echo "Unpacking host tools"; \
29+
/opt/zephyr-sdk-*-hosttools*.sh -y -d /opt/zephyr-sdk-hosttools; \
30+
rm /opt/zephyr-sdk-*-hosttools*.sh; \
31+
else \
32+
echo "No host tools found"; \
33+
fi && \
34+
rm -rf /var/lib/apt/lists/*

.github/check-format-files.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)