2012-01-29 01:42:49 +08:00
|
|
|
menu "Host utilities"
|
|
|
|
|
2015-01-08 01:10:36 +08:00
|
|
|
source "package/checkpolicy/Config.in.host"
|
2014-10-11 19:05:35 +08:00
|
|
|
source "package/cramfs/Config.in.host"
|
2014-05-09 05:35:43 +08:00
|
|
|
source "package/dfu-util/Config.in.host"
|
2014-09-11 18:08:44 +08:00
|
|
|
source "package/dos2unix/Config.in.host"
|
2014-05-09 05:35:43 +08:00
|
|
|
source "package/dosfstools/Config.in.host"
|
|
|
|
source "package/e2fsprogs/Config.in.host"
|
|
|
|
source "package/e2tools/Config.in.host"
|
|
|
|
source "package/genext2fs/Config.in.host"
|
|
|
|
source "package/genimage/Config.in.host"
|
|
|
|
source "package/genpart/Config.in.host"
|
|
|
|
source "package/lpc3250loader/Config.in.host"
|
package/mke2img: new package
Currently, we are using a shell script called genext2fs, that
impersonates the real genext2fs. But that script does much more than
just call genextfs: it also calls tune2fs and e2fsck.
Because it impersonates genext2fs, we can not easily add new options,
and are constrained by the genext2fs options.
But it turns out that, of all the options supported by the real
genext2fs, we only really care for a subset, namely:
- number of blocks
- number of inodes
- percentage of blocks reeserved to root
- the root directory which to generate the image from
So, we introduce a new host package, mke2img, that is intended to
eventually replace genext2fs.sh.
This new script is highly modeled from the existing genext2fs.sh, but
was slightly refreshed, and a new, supposedly sane set of options has
been choosen for the features we need (see above), and some new options
were added, too, rather than relying on the arguments order or
environment variables:
-b <nb-blocks> number of blocks in the filesystem
-i <nb-inodes> number of inodes in the filesystem
-r <pc-reserved> percentage of reserved blocks
* -d <root-dir> directory containing the root of the filesystem
* -o <img-file> output image file
-G <ext-gen> extfs generation: 2, 3, or 4 (default: 2)
-R <ext-rev> ext2 revision: 0 or 1 (default 1)
-l <label> filesystem label
-u <uid> filesystem UUID; if not specified, a random one is used
* Mandatory options
Since the upstream e2fsprogs are expected to release a new mke2fs that
will be able to generate a filesystem image from a directory, we then
will be able to replace all the logic in mke2img, to use mke2fs instead
of the (relatively fragile) combination of the three tools we currently
use.
An entry is added for it in the "Host utilities" menu, so it can be
selected for use by post-{build,image} scripts. The ext2 filesystem
selection is changed to select that now.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Karoly Kasza <kaszak@gmail.com>
Reviewed-by: Karoly Kasza <kaszak@gmail.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-12-07 06:40:04 +08:00
|
|
|
source "package/mke2img/Config.in.host"
|
2014-05-09 05:35:43 +08:00
|
|
|
source "package/mtd/Config.in.host"
|
|
|
|
source "package/mtools/Config.in.host"
|
|
|
|
source "package/omap-u-boot-utils/Config.in.host"
|
|
|
|
source "package/openocd/Config.in.host"
|
|
|
|
source "package/parted/Config.in.host"
|
2014-07-31 06:57:16 +08:00
|
|
|
source "package/patchelf/Config.in.host"
|
2014-07-01 19:42:03 +08:00
|
|
|
source "package/pwgen/Config.in.host"
|
2014-12-11 06:11:58 +08:00
|
|
|
source "package/qemu/Config.in.host"
|
2014-05-09 05:35:43 +08:00
|
|
|
source "package/sam-ba/Config.in.host"
|
|
|
|
source "package/squashfs/Config.in.host"
|
|
|
|
source "package/sunxi-tools/Config.in.host"
|
|
|
|
source "package/uboot-tools/Config.in.host"
|
|
|
|
source "package/util-linux/Config.in.host"
|
2012-01-29 01:42:50 +08:00
|
|
|
|
2012-01-29 01:42:49 +08:00
|
|
|
endmenu
|