mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-03 16:19:58 +00:00
Merge pull request #4953 from YosysHQ/krys/local_docs_fixes
A few fixes, mostly local docs builds
This commit is contained in:
commit
644efca341
|
@ -16,15 +16,17 @@ html_theme_options: dict[str] = {
|
|||
"source_branch": "main",
|
||||
"source_directory": "docs/source/",
|
||||
}
|
||||
html_context: dict[str] = {}
|
||||
|
||||
# try to fix the readthedocs detection
|
||||
html_context: dict[str] = {
|
||||
"READTHEDOCS": True,
|
||||
"display_github": True,
|
||||
"github_user": "YosysHQ",
|
||||
"github_repo": "yosys",
|
||||
"slug": "yosys",
|
||||
}
|
||||
if os.getenv("READTHEDOCS"):
|
||||
html_context.update({
|
||||
"READTHEDOCS": True,
|
||||
"display_github": True,
|
||||
"github_user": "YosysHQ",
|
||||
"github_repo": "yosys",
|
||||
"slug": "yosys",
|
||||
})
|
||||
|
||||
# override source_branch if not main
|
||||
git_slug = os.getenv("READTHEDOCS_VERSION_NAME")
|
||||
|
|
|
@ -34,31 +34,18 @@ Targeted architectures
|
|||
|
||||
The `OSS CAD Suite`_ releases `nightly builds`_ for the following architectures:
|
||||
|
||||
.. only:: html
|
||||
- **linux-x64** - Most personal Linux based computers
|
||||
- **darwin-x64** - macOS 12 or later with Intel CPU
|
||||
- **darwin-arm64** - macOS 12 or later with M1/M2 CPU
|
||||
- **windows-x64** - Targeted for Windows 10 and 11
|
||||
- **linux-arm64** - Devices such as Raspberry Pi with 64bit OS
|
||||
|
||||
- linux-x64 |linux-x64|
|
||||
- Most personal Linux based computers
|
||||
|
||||
- darwin-x64 |darwin-x64|
|
||||
- macOS 12 or later with Intel CPU
|
||||
|
||||
- darwin-arm64 |darwin-arm64|
|
||||
- macOS 12 or later with M1/M2 CPU
|
||||
|
||||
- windows-x64 |windows-x64|
|
||||
- Targeted for Windows 10 and 11
|
||||
|
||||
- linux-arm64 |linux-arm64|
|
||||
For more information about the targeted architectures, and the current build
|
||||
status, check the `OSS CAD Suite`_ git repository.
|
||||
|
||||
.. _OSS CAD Suite: https://github.com/YosysHQ/oss-cad-suite-build
|
||||
.. _nightly builds: https://github.com/YosysHQ/oss-cad-suite-build/releases/latest
|
||||
|
||||
.. |linux-x64| image:: https://github.com/YosysHQ/oss-cad-suite-build/actions/workflows/linux-x64.yml/badge.svg
|
||||
.. |darwin-x64| image:: https://github.com/YosysHQ/oss-cad-suite-build/actions/workflows/darwin-x64.yml/badge.svg
|
||||
.. |darwin-arm64| image:: https://github.com/YosysHQ/oss-cad-suite-build/actions/workflows/darwin-arm64.yml/badge.svg
|
||||
.. |windows-x64| image:: https://github.com/YosysHQ/oss-cad-suite-build/actions/workflows/windows-x64.yml/badge.svg
|
||||
.. |linux-arm64| image:: https://github.com/YosysHQ/oss-cad-suite-build/actions/workflows/linux-arm64.yml/badge.svg
|
||||
|
||||
Building from source
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
@ -6,22 +6,12 @@ Testing Yosys
|
|||
Automatic testing
|
||||
-----------------
|
||||
|
||||
.. only:: html
|
||||
|
||||
The `Yosys Git repo`_ has automatic testing of builds and running of the
|
||||
included test suite on the following platforms:
|
||||
|
||||
- Ubuntu |test-linux|
|
||||
- macOS |test-macos|
|
||||
The `Yosys Git repo`_ has automatic testing of builds and running of the
|
||||
included test suite on both Ubuntu and macOS, as well as across range of
|
||||
compiler versions. For up to date information, including OS versions, refer to
|
||||
`the git actions page`_.
|
||||
|
||||
.. _Yosys Git repo: https://github.com/YosysHQ/yosys
|
||||
|
||||
.. |test-linux| image:: https://github.com/YosysHQ/yosys/actions/workflows/test-linux.yml/badge.svg?branch=main
|
||||
.. |test-macos| image:: https://github.com/YosysHQ/yosys/actions/workflows/test-macos.yml/badge.svg?branch=main
|
||||
|
||||
For up to date information, including OS versions, refer to `the git actions
|
||||
page`_.
|
||||
|
||||
.. _the git actions page: https://github.com/YosysHQ/yosys/actions
|
||||
|
||||
.. todo:: are unit tests currently working
|
||||
|
|
14
libs/fst/00_PATCH_i386_endian.patch
Normal file
14
libs/fst/00_PATCH_i386_endian.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- fstapi.cc
|
||||
+++ fstapi.cc
|
||||
@@ -4723,7 +4723,10 @@ if(gzread_pass_status)
|
||||
hdr_incomplete = (xc->start_time == 0) && (xc->end_time == 0);
|
||||
|
||||
fstFread(&dcheck, 8, 1, xc->f);
|
||||
- xc->double_endian_match = (dcheck == FST_DOUBLE_ENDTEST);
|
||||
+ /*
|
||||
+ * Yosys patch: Fix double endian check for i386 targets built in modern gcc
|
||||
+ */
|
||||
+ xc->double_endian_match = (dcheck == (double)FST_DOUBLE_ENDTEST);
|
||||
if(!xc->double_endian_match)
|
||||
{
|
||||
union {
|
|
@ -19,3 +19,4 @@ patch -p0 < 00_PATCH_win_zlib.patch
|
|||
patch -p0 < 00_PATCH_win_io.patch
|
||||
patch -p1 < 00_PATCH_strict_alignment.patch
|
||||
patch -p0 < 00_PATCH_wx_len_overread.patch
|
||||
patch -p0 < 00_PATCH_i386_endian.patch
|
||||
|
|
|
@ -4723,7 +4723,10 @@ if(gzread_pass_status)
|
|||
hdr_incomplete = (xc->start_time == 0) && (xc->end_time == 0);
|
||||
|
||||
fstFread(&dcheck, 8, 1, xc->f);
|
||||
xc->double_endian_match = (dcheck == FST_DOUBLE_ENDTEST);
|
||||
/*
|
||||
* Yosys patch: Fix double endian check for i386 targets built in modern gcc
|
||||
*/
|
||||
xc->double_endian_match = (dcheck == (double)FST_DOUBLE_ENDTEST);
|
||||
if(!xc->double_endian_match)
|
||||
{
|
||||
union {
|
||||
|
|
Loading…
Reference in a new issue