Wednesday, May 12, 2010

PatchVerifier: Automates kernel build for various configs

The usual problem faced by the Folks working on Linux Mainline Submission work is To apply a patch, commit it, compile & test for various boards.

This script below automates this process by taking the various defconfigs to build for, as command line arguments.

How does it work:
  1. When u have a patch set ready 
  2. Take a kernel tree make necessary changes
  3. Keep ur patch set in a directory & Edit the patchverifier.sh file 
    • PATCH_DIR variable to the directory containing patches
  4. Run  #sh patchverifier.sh s3c6400 s5pv210 (for example)
  5. The script first runs checkpatch.pl and shows a choice to continue.
  6. Now, We have 2 options here 
    • apply the patches and commit or 
    • apply, commit and test for given _defconfigs 
  7. It runs and logs the output in $PWD/log-files directory.
  8. It also filters the warnings during the build and log them in separate log files named as  config + patch.log
  9. Here is the patchverifier.sh script. 
  10. It support Ctrl+C interrupt, it copies the logfiles till moment and exits.
  11. Give me your valuble inputs & consider using it.
Wish Me,

No comments: