raspberry:cross-platform-compile:setup-for-different-debian-versions
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| raspberry:cross-platform-compile:setup-for-different-debian-versions [2026/09/13 09:26] – [Install host tools] oscar | raspberry:cross-platform-compile:setup-for-different-debian-versions [2026/09/13 09:28] (current) – [Links] oscar | ||
|---|---|---|---|
| Line 102: | Line 102: | ||
| # arm-linux-gnueabihf-g++ --version | # arm-linux-gnueabihf-g++ --version | ||
| ``` | ``` | ||
| + | |||
| + | ---- | ||
| ## Distribution vs. Revision Strategy | ## Distribution vs. Revision Strategy | ||
| Knowing the target distribution (e.g.Bookworm) is enough to select the correct release, but not necessarily the exact package revisions. A production Pi may not yet have the latest Bookworm security updates available from its repositories. Choose one of these policies: | Knowing the target distribution (e.g.Bookworm) is enough to select the correct release, but not necessarily the exact package revisions. A production Pi may not yet have the latest Bookworm security updates available from its repositories. Choose one of these policies: | ||
| Line 107: | Line 109: | ||
| - **Pinned baseline policy:** Pin package versions or repository snapshots to a tested production baseline. | - **Pinned baseline policy:** Pin package versions or repository snapshots to a tested production baseline. | ||
| + | |||
| + | ---- | ||
| ## Inspect the target | ## Inspect the target | ||
| Line 145: | Line 149: | ||
| The output can be copied back to the development host. | The output can be copied back to the development host. | ||
| + | |||
| + | ---- | ||
| ## Raspberry Pi Repositories | ## Raspberry Pi Repositories | ||
| Raspberry Pi OS requires two separate repositories because it combines standard Linux software with custom hardware-specific code created by Raspberry Pi Ltd. | Raspberry Pi OS requires two separate repositories because it combines standard Linux software with custom hardware-specific code created by Raspberry Pi Ltd. | ||
| Line 182: | Line 188: | ||
| deb http:// | deb http:// | ||
| ``` | ``` | ||
| + | |||
| + | ---- | ||
| ## Prepare repository signing keys | ## Prepare repository signing keys | ||
| The following two repositories are essential for the Raspberry Pi, and we need both to be setup on the build host as well: | The following two repositories are essential for the Raspberry Pi, and we need both to be setup on the build host as well: | ||
| Line 285: | Line 293: | ||
| # mv rpios-bookwork-x-cross-armhf.list rpios-bookwork-x-cross-armhf.list.disabed | # mv rpios-bookwork-x-cross-armhf.list rpios-bookwork-x-cross-armhf.list.disabed | ||
| ``` | ``` | ||
| + | |||
| + | ---- | ||
| ## Choose target development packages | ## Choose target development packages | ||
| Line 309: | Line 319: | ||
| sysroot by adding `--simulate` to the command in the next section. | sysroot by adding `--simulate` to the command in the next section. | ||
| + | |||
| + | ---- | ||
| ## Resolve and download the sysroot | ## Resolve and download the sysroot | ||
| ### Enable Source list | ### Enable Source list | ||
| Line 366: | Line 378: | ||
| ``` | ``` | ||
| + | |||
| + | ---- | ||
| ## Compile a direct GCC test | ## Compile a direct GCC test | ||
| Line 405: | Line 419: | ||
| and run it there before using the environment for production releases. | and run it there before using the environment for production releases. | ||
| + | |||
| + | ---- | ||
| ## CPU compatibility warning | ## CPU compatibility warning | ||
| Line 439: | Line 455: | ||
| Never combine armhf and arm64 files in one sysroot. | Never combine armhf and arm64 files in one sysroot. | ||
| + | |||
| + | ---- | ||
| ## Links | ## Links | ||
| * [[https:// | * [[https:// | ||
raspberry/cross-platform-compile/setup-for-different-debian-versions.1789291586.txt.gz · Last modified: by oscar
