User Tools

Site Tools


start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
start [2020-07-06 21:24]
joshtriplett Drop instructions for kernels older than 3.17-rc1,
start [2020-07-06 21:27] (current)
joshtriplett Minor formatting updates
Line 13: Line 13:
 ====== Submitting tinification changes ====== ====== Submitting tinification changes ======
  
-When submitting a change to make the kernel smaller, use ''​scripts/​bloat-o-meter''​ to compare the size of the old and new vmlinux, overall and broken out by symbol. ​ Include the bloat-o-meter output in your commit message.+When submitting a change to make the kernel smaller, use ''​scripts/​bloat-o-meter''​ to compare the size of the old and new ''​vmlinux''​, overall and broken out by symbol. ​ Include the ''​bloat-o-meter'' ​output in your commit message.
  
-Most new configuration ​options added as part of this effort ​should depend on CONFIG_EMBEDDED or CONFIG_EXPERT.+When introducing a new configuration ​option for an existing kernel feature, the new option ​should ​likely ​depend on ''​CONFIG_EXPERT''​.
  
-If your changes affect the size of the decompression stub, you may additionally need to run bloat-o-meter on the stub.+If your changes affect the size of the decompression stub, you may additionally need to run ''​bloat-o-meter'' ​on the stub.
  
-When adding a new Kconfig symbol, to confirm that you've added any necessary dependencies on that symbol, build an "allyesconfig" ​kernel with only your new symbol (and anything depending on it) turned off.  Build failures related to the bits your new symbol compiles out will identify additional dependencies you need.+When adding a new Kconfig symbol, to confirm that you've added any necessary dependencies on that symbol, build an ''​allyesconfig'' ​kernel with only your new symbol (and anything depending on it) turned off.  Build failures related to the bits your new symbol compiles out will identify additional dependencies you need.
  
-You can find the latest tinification changes in Josh Triplett'​s tree at https://​git.kernel.org/​cgit/​linux/​kernel/​git/​josh/​linux.git/​ , in the tiny/* branches. ​ Note that tiny/next gets reset for each new merge window, and other tiny/* branches may be recreated or rebased.+You can find the latest tinification changes in Josh Triplett'​s tree at https://​git.kernel.org/​cgit/​linux/​kernel/​git/​josh/​linux.git/​ , in the ''​tiny/*'' ​branches. ​ Note that tiny/next gets reset for each new merge window, and other ''​tiny/*'' ​branches may be recreated or rebased.
  
 ====== Searching for tinification opportunities ====== ====== Searching for tinification opportunities ======
-On a built kernel, try running ''​nm --size-sort vmlinux''​. ​ This will show all the symbols in vmlinux, sorted by size.+On a built kernel, try running ''​nm --size-sort vmlinux''​. ​ This will show all the symbols in ''​vmlinux''​, sorted by size.
  
 ====== Use Cases ====== ====== Use Cases ======
 See the [[Use Cases]] page. See the [[Use Cases]] page.
start.1594070673.txt.gz ยท Last modified: 2020-07-06 21:24 by joshtriplett