Customizing U-Boot¶
Introduction¶
This guide demonstrates how to patch and rebuild Debian U-Boot images.
To learn how to build the U-Boot images outside of Debian, see: Build U-Boot from source code
Prerequisites¶
Make sure you set up the FlexBuild Docker environment properly by following FlexBuild Setup and Usage.
Add your patches on top of the Variscite source code¶
The following steps can be executed outside or inside the container.
Fetch the U-Boot source:
Next, make the desired changes to the U-Boot source code. Example: After changing the source code, commit the changes locally and generate a patch file: Once the patch is created, copy it to the U-Boot patch folder, which is inside the Flexbuild directory:Build U-Boot individually¶
Do not run any 'git am' or 'git apply' command. That will be done inside the U-Boot Makefile. Now, if you're not inside the container, get in with the following commands:
cd [...]/flexbuild # (Outside Docker environment)
. setup.env # (Outside Docker environment)
bld docker # (Outside Docker environment)
Rebuild U-Boot¶
Once you've built U-Boot, a clean step is needed if a rebuild is required:
Then, just build U-Boot normally with: