RPi-Distro / pi-gen

Tool used to create the official Raspberry Pi OS images
BSD 3-Clause "New" or "Revised" License
2.57k stars 1.61k forks source link

stage0: remove unnecessary firmware packages #718

Open stefanb2 opened 10 months ago

stefanb2 commented 10 months ago

While merging the Debian Bookworm changes into our tailored stage2 baseline branch I noticed that about 50 additional packages were installed compared to Bullseye, e.g. full gcc, man pages and *-dev packages. None of them are required to build or run the stage2 image.

For the default Raspi OS stage2 build, i.e. -lite image, this change doesn't have any big effects, because the above mentioned packages are dragged in via dependencies for other packages. We gave removed these packages in our tailored configuration.

The changes to step 02-firmware:

NOTE: this will cause merge conflicts with arm64 branch. Similar changes need to be done for the arm64 configuration.