Skip to content

Commit ed0f81a

Browse files
committed
build-assets/templates updates
1 parent f63fa9f commit ed0f81a

File tree

2 files changed

+17
-128
lines changed

2 files changed

+17
-128
lines changed

build-assets/templates/body-blog-release-post-part-1-liquid.md

Lines changed: 15 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ Version **{{ XBB_RELEASE_VERSION }}** is a new release; it follows the GNU GCC r
3333
<!-- truncate -->
3434

3535
import Image from '@theme/IdealImage';
36+
import CodeBlock from '@theme/CodeBlock';
37+
38+
import Prerequisites from './_common/_prerequisites-glib-2.27.mdx'
39+
import DeprecationNotices from './_common/_deprecation-notices-glib-2.27.mdx'
40+
import DownloadAnalytics from './_common/_download-analytics.mdx'
3641

3742
[The xPack GNU RISC-V Embedded GCC](/)
3843
is a standalone cross-platform binary distribution of
@@ -42,31 +47,24 @@ There are separate binaries for **Windows** (x64),
4247
**macOS** (x64 and arm64)
4348
and **GNU/Linux** (x64, arm64 and arm).
4449

45-
{% raw %}{% include note.html content="The main targets for the GNU/Linux Arm
50+
:::note Raspberry Pi
51+
52+
The main targets for the GNU/Linux Arm
4653
binaries are the **Raspberry Pi** class devices (armv7l and aarch64;
47-
armv6 is not supported)." %}{% endraw %}
54+
armv6 is not supported).
4855

49-
## Download
56+
:::
5057

51-
The binary files are available from <a href={ frontMatter.download_url }>GitHub Releases</a>.
58+
## Download
5259

53-
## Prerequisites
60+
The binary files can be downloaded automatically with **xpm** or manually
61+
from <a href={ frontMatter.download_url }>GitHub Releases</a>.
5462

55-
- GNU/Linux x64: any system with **GLIBC 2.27** or higher
56-
(like Ubuntu 18 or later, Debian 10 or later, RedHat 8 or later,
57-
Fedora 29 or later, etc)
58-
- GNU/Linux Arm 64/32-bit: any system with **GLIBC 2.27** or higher
59-
(like Raspberry Pi OS, Ubuntu 18 or later, Debian 10 or later,
60-
RedHat 8 or later, Fedora 29 or later, etc)
61-
- Windows x64: Windows 7 with the Universal C Runtime
62-
([UCRT](https://support.microsoft.com/en-us/topic/update-for-universal-c-runtime-in-windows-c0514201-7fe6-95a3-b0a5-287930f3560c)),
63-
Windows 8, Windows 10
64-
- macOS x64: 10.13 or later
65-
- macOS arm64: 11.6 or later
63+
<Prerequisites/>
6664

6765
## Install
6866

69-
The full details of installing the **xPack GNU RISC-V Embedded GCC**
67+
The full details of installing the **xPack GNU RISC-V Embedded GCC**
7068
on various platforms are presented in the [Install Guide](/docs/install/).
7169

7270
## Compliance
@@ -150,66 +148,6 @@ rv64imfdc_zicsr/lp64d;@march=rv64imfdc_zicsr@mabi=lp64d
150148

151149
Compared to the upstream GNU release, there are no functional changes.
152150

153-
### risc-none-elf-gcc
154-
155-
For compliance reasons, starting with 11.x, the name of the toolchain
156-
was updated to `risc-none-elf-gcc`.
157-
158-
### RISC-V ISA updates
159-
160-
Compared to previous releases, starting from 12.x, the compiler
161-
implements the new RISC-V ISA, which introduces an incompatibility issue,
162-
and builds might throw error messages like _unrecognized opcode `csrr`_.
163-
164-
The reason is that csr read/write (`csrr*`/`csrw*`)
165-
instructions and `fence.i` instruction were separated from the `I`
166-
extension, becoming two standalone extensions: `Zicsr` and `Zifencei`.
167-
168-
The solution is to add `_zicsr` and/or `_zifencei` to the
169-
`-march` option, e.g. `-march=rv32imac` becomes
170-
`-march=rv32imac_zicsr_zifencei`.
171-
172-
In Eclipse, until the GUI is updated, select the *Toolchain Default*
173-
for _Architecture_ and
174-
enter the new string separately as _Other target flags_.
175-
176-
### newlib-nano
177-
178-
Support for **newlib-nano** is available using the
179-
`--specs=nano.specs` option. For best results, this option must be
180-
added to both compile and link time.
181-
182-
### nosys.specs
183-
184-
If no syscalls are needed, `--specs=nosys.specs` can be used at link
185-
time to provide empty implementations for the POSIX system calls.
186-
187-
### -mcmodel=medany
188-
189-
The libraries are compiled with `-O2 -mcmodel=medany`. The nano version is
190-
compiled with `-Os -mcmodel=medany`.
191-
192-
{% raw %}{% include important.html content="It is mandatory for the applications to
193-
be compiled with
194-
`-mcmodel=medany`, otherwise the link will fail." %}{% endraw %}
195-
196-
### Python
197-
198-
Support for Python scripting was added to GDB. This distribution provides
199-
a separate binary, `riscv-none-elf-gdb-py3` with
200-
support for **Python { frontMatter.python_version }**.
201-
202-
The Python 3 runtime is included, so GDB does not need any version of
203-
Python to be installed, and is not impacted by the presence of other
204-
versions installed on the system.
205-
206-
### Text User Interface (TUI)
207-
208-
Support for TUI was added to GDB. The `ncurses` library was added to
209-
the distribution.
210-
211-
{% raw %}{% include note.html content="TUI is not available on Windows." %}{% endraw %}
212-
213151
## Bug fixes
214152

215153
- none
Lines changed: 2 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,4 @@
11

2-
## Deprecation notices
2+
<DeprecationNotices/>
33

4-
### Linux minimum requirements
5-
6-
The minimum requirement is **GLIBC 2.27**, available starting
7-
with Ubuntu 18, Debian 10 and RedHat 8.
8-
Support for RedHat 7 was dropped in 2022.
9-
10-
### 32-bit support
11-
12-
Support for 32-bit Intel Linux and Intel Windows was
13-
dropped in 2022.
14-
15-
### Pre-deprecation notice for 32-bit Arm Linux
16-
17-
Due to the large user base of 32-bit Raspberry Pi systems,
18-
support for 32-bit Arm Linux (armv7l) will be preserved
19-
for a little while, but expect it to be dropped by 2025,
20-
so it is recommended to consider an upgrade to a RPi 4 or 5 with
21-
at least 4 GB (preferably 8 GB) of RAM.
22-
23-
## Pre-deprecation notice for Ubuntu 18.04
24-
25-
Ubuntu 18.04 LTS _Bionic Beaver_ reached the end of the standard five-year
26-
maintenance window for Long-Term Support (LTS) release on 31 May 2023.
27-
28-
As a courtesy, the xPack GNU/Linux releases will continue to be based on
29-
Ubuntu 18.04 for another year.
30-
31-
From 2025 onwards, the GNU/Linux binaries will be built on **Debian 10**,
32-
(**GLIBC 2.28**), and are also expected to run on RedHat 8.
33-
34-
Users are urged to update their build and test infrastructure to
35-
ensure a smooth transition to the next xPack releases.
36-
37-
## Download analytics
38-
39-
- GitHub [xpack-dev-tools/riscv-none-elf-gcc-xpack](https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/)
40-
- this release <a href={ `https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/v${ frontMatter.version }/` } ><Image img={ `https://img.shields.io/github/downloads/xpack-dev-tools/riscv-none-elf-gcc-xpack/v${ frontMatter.version }/total.svg` } alt='Github Release' /></a>
41-
- all xPack releases [![Github All Releases](https://img.shields.io/github/downloads/xpack-dev-tools/riscv-none-elf-gcc-xpack/total.svg)](https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/)
42-
- deprecated xPack releases [![Github All Releases](https://img.shields.io/github/downloads/xpack-dev-tools/riscv-none-embed-gcc-xpack/total.svg)](https://github.com/xpack-dev-tools/riscv-none-embed-gcc-xpack/releases/)
43-
- all GNU MCU Eclipse releases [![Github All Releases](https://img.shields.io/github/downloads/gnu-mcu-eclipse/riscv-none-gcc/total.svg)](https://github.com/gnu-mcu-eclipse/riscv-none-gcc/releases/)
44-
- [individual file counters](https://somsubhra.github.io/github-release-stats/?username=xpack-dev-tools&repository=riscv-none-elf-gcc-xpack) (grouped per release)
45-
- npmjs.com [@xpack-dev-tools/riscv-none-elf-gcc](https://www.npmjs.com/package/@xpack-dev-tools/riscv-none-elf-gcc)
46-
- latest releases [![npm](https://img.shields.io/npm/dw/@xpack-dev-tools/riscv-none-elf-gcc.svg)](https://www.npmjs.com/package/@xpack-dev-tools/riscv-none-elf-gcc/)
47-
- all @xpack-dev-tools releases [![npm](https://img.shields.io/npm/dt/@xpack-dev-tools/riscv-none-elf-gcc.svg)](https://www.npmjs.com/package/@xpack-dev-tools/riscv-none-elf-gcc/)
48-
- all @xpack-dev-tools deprecated releases [![npm](https://img.shields.io/npm/dt/@xpack-dev-tools/riscv-none-embed-gcc.svg)](https://www.npmjs.com/package/@xpack-dev-tools/riscv-none-embed-gcc/)
49-
- all @gnu-mcu-eclipse releases [![npm](https://img.shields.io/npm/dt/@gnu-mcu-eclipse/riscv-none-gcc.svg)](https://www.npmjs.com/package/@gnu-mcu-eclipse/riscv-none-gcc/)
50-
51-
Credit to [Shields IO](https://shields.io) for the badges and to
52-
[Somsubhra/github-release-stats](https://github.com/Somsubhra/github-release-stats)
53-
for the individual file counters.
4+
<DownloadAnalytics version={ frontMatter.version }/>

0 commit comments

Comments
 (0)