-
Notifications
You must be signed in to change notification settings - Fork 0
Manual Patch
Example: package/system/ubox
-
make package/system/ubox/{clean,prepare} V=s QUILT=1
⇒ Unpacks the source tarball and prepares existing patches as quilt patch series (if any). -
cd build_dir/target-aarch64_generic_glibc/ubox-2021-08-03-205defb5/
⇒ Change to the prepared source directory. -
quilt push -a
⇒ Apply all existing patches using quilt push, if any. -
quilt new 002-logfile_permissions.patch
⇒ Create a new empty patch file. -
quilt edit log/logread.c
⇒ Edit the file you want to modify. -
quilt diff
⇒ Review the changes using quilt diff. -
quilt refresh
⇒ Update the patch file (e.g., 010-main_code_fix.patch) with the new changes. -
cd ../../..
⇒ Return to the top-level directory of the buildroot. -
make package/system/ubox/update V=sc
⇒ Move the new patch file over to the buildroot and run update. -
make package/system/ubox/{clean,compile} -j1 V=sc
⇒ Rebuild the package to test your changes.