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/06/30 10:49] – rewrite patching section, moved below the steps for getting the package set up in the first place 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 163: | Line 167: | ||
| - Configure the default emulator (if you've added a whole new system) with https:// | - Configure the default emulator (if you've added a whole new system) with https:// | ||
| - Configure the default settings for particular architectures (such as if your emulator requires certain settings to function on a particular architecture) at https:// | - Configure the default settings for particular architectures (such as if your emulator requires certain settings to function on a particular architecture) at https:// | ||
| + | - Add the system' | ||
| - (Optional) If you need to add an explanation for the emulator' | - (Optional) If you need to add an explanation for the emulator' | ||
| Line 173: | 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 183: | Line 188: | ||
| <code bash> | <code bash> | ||
| - | mv output/rpi3/target output/rpi3/target_ | + | mv output/bcm2837/target output/bcm2837/target_ |
| </ | </ | ||
| Line 189: | Line 194: | ||
| <code bash> | <code bash> | ||
| - | cd output/rpi3/ | + | cd output/bcm2837/ |
| </ | </ | ||
| | | ||
| Line 198: | Line 203: | ||
| </ | </ | ||
| - | Make the modifications to the files you want now, keeping track of which files you edit. | + | Then add the file(s) |
| - | + | ||
| - | Then add them to the current commit. Then compare the differences and save them to a " | + | |
| <code bash> | <code bash> | ||
| git add <the file(s) you modified> | git add <the file(s) you modified> | ||
| + | </ | ||
| + | |||
| + | <WRAP center round tip> | ||
| + | Add all files with '' | ||
| + | </ | ||
| + | |||
| + | Make the modifications to the files you want now. | ||
| + | |||
| + | Then compare the differences and save them to a " | ||
| + | |||
| + | <code bash> | ||
| git diff > ../ | git diff > ../ | ||
| </ | </ | ||
| Line 211: | Line 225: | ||
| <code bash> | <code bash> | ||
| cd ../../.. | cd ../../.. | ||
| - | rm -rf ouput/rpi3/ | + | rm -rf ouput/bcm2837/ |
| </ | </ | ||
| Line 223: | 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.1656586163.txt.gz
- Last modified: 4 years ago
- by atari