User Tools

Site Tools


raspberry:cross-platform-compile:setup-for-different-debian-versions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
raspberry:cross-platform-compile:setup-for-different-debian-versions [2026/09/13 09:25] – [Distribution vs. Revision Strategy] oscarraspberry:cross-platform-compile:setup-for-different-debian-versions [2026/09/13 09:28] (current) – [Links] oscar
Line 64: Line 64:
   * Extract their contents into a target filesystem tree.   * Extract their contents into a target filesystem tree.
 With `--variant=extract`, package maintainer scripts and ARM programs are not executed. A sysroot can therefore normally be created without QEMU and without adding `armhf` as a foreign architecture on the host. With `--variant=extract`, package maintainer scripts and ARM programs are not executed. A sysroot can therefore normally be created without QEMU and without adding `armhf` as a foreign architecture on the host.
 +
 +
 +
 ---- ----
 ## Install host tools ## Install host tools
Line 100: Line 103:
 ``` ```
  
----- 
 ---- ----
 ## Distribution vs. Revision Strategy  ## Distribution vs. Revision Strategy 
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://archive.raspberrypi.com/debian/ bookworm main  deb http://archive.raspberrypi.com/debian/ bookworm main
 ``` ```
 +
 +----
 ## 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://manpages.debian.org/trixie/mmdebstrap/mmdebstrap.1.en.html|Debian `mmdebstrap` manual]]   * [[https://manpages.debian.org/trixie/mmdebstrap/mmdebstrap.1.en.html|Debian `mmdebstrap` manual]]
raspberry/cross-platform-compile/setup-for-different-debian-versions.1789291524.txt.gz · Last modified: by oscar