Skip to content

Commit 644efca

Browse files
Merge pull request #4953 from YosysHQ/krys/local_docs_fixes
A few fixes, mostly local docs builds
2 parents a647731 + 013206d commit 644efca

File tree

6 files changed

+39
-42
lines changed

6 files changed

+39
-42
lines changed

docs/source/conf.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,17 @@
1616
"source_branch": "main",
1717
"source_directory": "docs/source/",
1818
}
19+
html_context: dict[str] = {}
1920

2021
# try to fix the readthedocs detection
21-
html_context: dict[str] = {
22-
"READTHEDOCS": True,
23-
"display_github": True,
24-
"github_user": "YosysHQ",
25-
"github_repo": "yosys",
26-
"slug": "yosys",
27-
}
22+
if os.getenv("READTHEDOCS"):
23+
html_context.update({
24+
"READTHEDOCS": True,
25+
"display_github": True,
26+
"github_user": "YosysHQ",
27+
"github_repo": "yosys",
28+
"slug": "yosys",
29+
})
2830

2931
# override source_branch if not main
3032
git_slug = os.getenv("READTHEDOCS_VERSION_NAME")

docs/source/getting_started/installation.rst

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,31 +34,18 @@ Targeted architectures
3434

3535
The `OSS CAD Suite`_ releases `nightly builds`_ for the following architectures:
3636

37-
.. only:: html
37+
- **linux-x64** - Most personal Linux based computers
38+
- **darwin-x64** - macOS 12 or later with Intel CPU
39+
- **darwin-arm64** - macOS 12 or later with M1/M2 CPU
40+
- **windows-x64** - Targeted for Windows 10 and 11
41+
- **linux-arm64** - Devices such as Raspberry Pi with 64bit OS
3842

39-
- linux-x64 |linux-x64|
40-
- Most personal Linux based computers
41-
42-
- darwin-x64 |darwin-x64|
43-
- macOS 12 or later with Intel CPU
44-
45-
- darwin-arm64 |darwin-arm64|
46-
- macOS 12 or later with M1/M2 CPU
47-
48-
- windows-x64 |windows-x64|
49-
- Targeted for Windows 10 and 11
50-
51-
- linux-arm64 |linux-arm64|
43+
For more information about the targeted architectures, and the current build
44+
status, check the `OSS CAD Suite`_ git repository.
5245

5346
.. _OSS CAD Suite: https://github.com/YosysHQ/oss-cad-suite-build
5447
.. _nightly builds: https://github.com/YosysHQ/oss-cad-suite-build/releases/latest
5548

56-
.. |linux-x64| image:: https://github.com/YosysHQ/oss-cad-suite-build/actions/workflows/linux-x64.yml/badge.svg
57-
.. |darwin-x64| image:: https://github.com/YosysHQ/oss-cad-suite-build/actions/workflows/darwin-x64.yml/badge.svg
58-
.. |darwin-arm64| image:: https://github.com/YosysHQ/oss-cad-suite-build/actions/workflows/darwin-arm64.yml/badge.svg
59-
.. |windows-x64| image:: https://github.com/YosysHQ/oss-cad-suite-build/actions/workflows/windows-x64.yml/badge.svg
60-
.. |linux-arm64| image:: https://github.com/YosysHQ/oss-cad-suite-build/actions/workflows/linux-arm64.yml/badge.svg
61-
6249
Building from source
6350
~~~~~~~~~~~~~~~~~~~~
6451

docs/source/yosys_internals/extending_yosys/test_suites.rst

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,12 @@ Testing Yosys
66
Automatic testing
77
-----------------
88

9-
.. only:: html
10-
11-
The `Yosys Git repo`_ has automatic testing of builds and running of the
12-
included test suite on the following platforms:
13-
14-
- Ubuntu |test-linux|
15-
- macOS |test-macos|
9+
The `Yosys Git repo`_ has automatic testing of builds and running of the
10+
included test suite on both Ubuntu and macOS, as well as across range of
11+
compiler versions. For up to date information, including OS versions, refer to
12+
`the git actions page`_.
1613

1714
.. _Yosys Git repo: https://github.com/YosysHQ/yosys
18-
19-
.. |test-linux| image:: https://github.com/YosysHQ/yosys/actions/workflows/test-linux.yml/badge.svg?branch=main
20-
.. |test-macos| image:: https://github.com/YosysHQ/yosys/actions/workflows/test-macos.yml/badge.svg?branch=main
21-
22-
For up to date information, including OS versions, refer to `the git actions
23-
page`_.
24-
2515
.. _the git actions page: https://github.com/YosysHQ/yosys/actions
2616

2717
.. todo:: are unit tests currently working

libs/fst/00_PATCH_i386_endian.patch

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
--- fstapi.cc
2+
+++ fstapi.cc
3+
@@ -4723,7 +4723,10 @@ if(gzread_pass_status)
4+
hdr_incomplete = (xc->start_time == 0) && (xc->end_time == 0);
5+
6+
fstFread(&dcheck, 8, 1, xc->f);
7+
- xc->double_endian_match = (dcheck == FST_DOUBLE_ENDTEST);
8+
+ /*
9+
+ * Yosys patch: Fix double endian check for i386 targets built in modern gcc
10+
+ */
11+
+ xc->double_endian_match = (dcheck == (double)FST_DOUBLE_ENDTEST);
12+
if(!xc->double_endian_match)
13+
{
14+
union {

libs/fst/00_UPDATE.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ patch -p0 < 00_PATCH_win_zlib.patch
1919
patch -p0 < 00_PATCH_win_io.patch
2020
patch -p1 < 00_PATCH_strict_alignment.patch
2121
patch -p0 < 00_PATCH_wx_len_overread.patch
22+
patch -p0 < 00_PATCH_i386_endian.patch

libs/fst/fstapi.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4723,7 +4723,10 @@ if(gzread_pass_status)
47234723
hdr_incomplete = (xc->start_time == 0) && (xc->end_time == 0);
47244724

47254725
fstFread(&dcheck, 8, 1, xc->f);
4726-
xc->double_endian_match = (dcheck == FST_DOUBLE_ENDTEST);
4726+
/*
4727+
* Yosys patch: Fix double endian check for i386 targets built in modern gcc
4728+
*/
4729+
xc->double_endian_match = (dcheck == (double)FST_DOUBLE_ENDTEST);
47274730
if(!xc->double_endian_match)
47284731
{
47294732
union {

0 commit comments

Comments
 (0)