Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| batocera.linux_buildroot_modifications [2022/08/26 03:00] – [Patching a package] added tip about -A flag for git add atari | batocera.linux_buildroot_modifications [2022/09/28 07:14] (current) – specifics atari | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| You may know me from former titles such as " | You may know me from former titles such as " | ||
| + | |||
| + | <WRAP center round info> | ||
| + | RPi3, the "per platform" | ||
| + | </ | ||
| <WRAP center round tip> | <WRAP center round tip> | ||
| Line 25: | Line 29: | ||
| - download the package in the dl directory according to information from '' | - download the package in the dl directory according to information from '' | ||
| - extract the package in '' | - extract the package in '' | ||
| - | - patch the package from '' | + | - patch the package from '' |
| - configure the package according to the '' | - configure the package according to the '' | ||
| - build the package according to the '' | - build the package according to the '' | ||
| - | - install in the '' | + | - install in the '' |
| - | - install in the '' | + | - install in the '' |
| - | For each step, Buildroot creates an empty flag file. For example: '' | + | For each step, Buildroot creates an empty flag file. For example: '' |
| In case a step failed, just run '' | In case a step failed, just run '' | ||
| - | To completely rebuild a package: | + | To completely rebuild a package |
| - | rm -rf output/rpi3/ | + | rm -rf output/bcm2837/ |
| make package-name | make package-name | ||
| For example, to build EmulationStation again from the latest '' | For example, to build EmulationStation again from the latest '' | ||
| - | rm -rf output/rpi3/ | + | rm -rf output/bcm2837/ |
| make batocera-emulationstation | make batocera-emulationstation | ||
| | | ||
| Line 174: | Line 178: | ||
| Let's say you want to work on the package " | Let's say you want to work on the package " | ||
| - | First, compile a complete version of Batocera for the architecture you will test. In this example, we will do so for '' | + | First, compile a complete version of Batocera for the architecture you will test. In this example, we will do so for RPi3. |
| <code bash> | <code bash> | ||
| cd batocera.linux | cd batocera.linux | ||
| - | make rpi3-build | + | make bcm2837-build |
| </ | </ | ||
| Line 184: | Line 188: | ||
| <code bash> | <code bash> | ||
| - | mv output/rpi3/target output/rpi3/target_ | + | mv output/bcm2837/target output/bcm2837/target_ |
| </ | </ | ||
| Line 190: | Line 194: | ||
| <code bash> | <code bash> | ||
| - | cd output/rpi3/ | + | cd output/bcm2837/ |
| </ | </ | ||
| | | ||
| Line 221: | Line 225: | ||
| <code bash> | <code bash> | ||
| cd ../../.. | cd ../../.. | ||
| - | rm -rf ouput/rpi3/ | + | rm -rf ouput/bcm2837/ |
| </ | </ | ||
| Line 233: | Line 237: | ||
| ===== Testing a package without compiling the entirety of Batocera ===== | ===== Testing a package without compiling the entirety of Batocera ===== | ||
| - | It's possible to compile //just// the package you've modified and then transfer it over to your live Batocera installation using '' | + | It's possible to compile //just// the package you've modified and then transfer it over to your live Batocera installation using '' |
| <code bash> | <code bash> | ||
| - | rsync -av output/rpi3/target/ root@batocera.local:/ | + | rsync -av output/bcm2837/target/ root@batocera.local:/ |
| </ | </ | ||
| This will sync up the contents of the target directory on your build machine with the Batocera machine. Feel free to immediately test your changes. If the changes are bad and you need to restore, simply reboot and the changes will not persist. To have them persist instead, run [[modify_the_system_while_it_s_running|batocera-save-overlay]] from the machine itself. | This will sync up the contents of the target directory on your build machine with the Batocera machine. Feel free to immediately test your changes. If the changes are bad and you need to restore, simply reboot and the changes will not persist. To have them persist instead, run [[modify_the_system_while_it_s_running|batocera-save-overlay]] from the machine itself. | ||
- batocera.linux_buildroot_modifications.1661482817.txt.gz
- Last modified: 4 years ago
- by atari