btrfs-progs/common
David Sterba bd4a386ec5 btrfs-progs: build most common tools into one binary (busybox style)
Build several standalone tools into one binary and switch the function
by name (symlink or hardlink).

* btrfs
* mkfs.btrfs
* btrfs-image
* btrfs-convert
* btrfstune

The static target is also supported. The name of resulting boxed
binaries is btrfs.box and btrfs.box.static . All the binaries can be
built at the same time without prior configuration.

   text    data     bss     dec     hex filename
 822454   27000   19724  869178   d433a btrfs
 927314   28816   20812  976942   ee82e btrfs.box
2067745   58004   44736 2170485  211e75 btrfs.static
2627198   61724   83800 2772722  2a4ef2 btrfs.box.static

File sizes:

  857496  btrfs
  968536  btrfs.box
 2141400  btrfs.static
 2704472  btrfs.box.static

Standalone utilities:

  512504  btrfs-convert
  495960  btrfs-image
  471224  btrfstune
  491864  mkfs.btrfs

 1747720  btrfs-convert.static
 1411416  btrfs-image.static
 1304256  btrfstune.static
 1361696  mkfs.btrfs.static

So the shared 900K binary saves ~2M, or ~5.7M for static build.

Signed-off-by: David Sterba <dsterba@suse.cz>
2019-07-04 15:30:40 +02:00
..
box.h btrfs-progs: build most common tools into one binary (busybox style) 2019-07-04 15:30:40 +02:00
device-scan.c btrfs-progs: utils: split device scanning functions to own file 2019-07-04 02:06:34 +02:00
device-scan.h btrfs-progs: utils: split device scanning functions to own file 2019-07-04 02:06:34 +02:00
device-utils.c btrfs-progs: utils: split device handling functions to own file 2019-07-04 02:06:34 +02:00
device-utils.h btrfs-progs: utils: split device handling functions to own file 2019-07-04 02:06:34 +02:00
format-output.c btrfs-progs: output formatter infrastructure 2019-07-03 20:49:04 +02:00
format-output.h btrfs-progs: output formatter infrastructure 2019-07-03 20:49:04 +02:00
fsfeatures.c btrfs-progs: move utils.[ch] to common/ 2019-07-03 20:49:04 +02:00
fsfeatures.h btrfs-progs: move fsfeatures.[ch] to common/ 2019-07-03 20:49:03 +02:00
help.c btrfs-progs: build most common tools into one binary (busybox style) 2019-07-04 15:30:40 +02:00
help.h btrfs-progs: define new output format: json 2019-07-03 20:49:04 +02:00
internal.h
messages.c
messages.h
path-utils.c btrfs-progs: path-utils: rename test_isdir 2019-07-04 02:06:33 +02:00
path-utils.h btrfs-progs: path-utils: rename test_isdir 2019-07-04 02:06:33 +02:00
rbtree-utils.c btrfs-progs: move rbtree-utils.[ch] to common/ 2019-07-03 20:49:04 +02:00
rbtree-utils.h btrfs-progs: move rbtree-utils.[ch] to common/ 2019-07-03 20:49:04 +02:00
string-table.c btrfs-progs: move string-table.[ch] to common/ 2019-07-03 20:49:03 +02:00
string-table.h btrfs-progs: move string-table.[ch] to common/ 2019-07-03 20:49:03 +02:00
task-utils.c btrfs-progs: move task-utils.[ch] to common/ 2019-07-03 20:49:03 +02:00
task-utils.h btrfs-progs: move task-utils.[ch] to common/ 2019-07-03 20:49:03 +02:00
utils.c btrfs-progs: utils: split device scanning functions to own file 2019-07-04 02:06:34 +02:00
utils.h btrfs-progs: utils: split device scanning functions to own file 2019-07-04 02:06:34 +02:00