Skip to content

Commit

Permalink
fs/ext2: add option to specify a filesystem label
Browse files Browse the repository at this point in the history
Filesystems of the ext familly can carry a filesystem label.
Add an option for the user to specify such a label.

Signed-off-by: "Yann E. MORIN" <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Károly Kasza <[email protected]>
Tested-by: Karoly Kasza <[email protected]>
Reviewed-by: Karoly Kasza <[email protected]>
Reviewed-by: Thomas Petazzoni <[email protected]>
Tested-by: Thomas Petazzoni <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
  • Loading branch information
yann-morin-1998 authored and tpetazzoni committed Dec 7, 2014
1 parent d6831e5 commit c83fa6b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/ext2/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ config BR2_TARGET_ROOTFS_EXT2_REV
default 0 if BR2_TARGET_ROOTFS_EXT2_2r0
default 1 if !BR2_TARGET_ROOTFS_EXT2_2r0

config BR2_TARGET_ROOTFS_EXT2_LABEL
string "filesystem label"

config BR2_TARGET_ROOTFS_EXT2_BLOCKS
int "size in blocks (leave at 0 for auto calculation)"
default 0
Expand Down
8 changes: 8 additions & 0 deletions fs/ext2/ext2.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ ifneq ($(strip $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)),0)
EXT2_OPTS += -r $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)
endif

# Not qstrip-ing the variable, because it may contain spaces, but we must
# qstrip it when checking. Furthermore, we need to further quote it, so
# that the quotes do not get eaten by the echo statement when creating the
# fakeroot script
ifneq ($(call qstrip,$(BR2_TARGET_ROOTFS_EXT2_LABEL)),)
EXT2_OPTS += -l '$(BR2_TARGET_ROOTFS_EXT2_LABEL)'
endif

ROOTFS_EXT2_DEPENDENCIES = host-mke2img

define ROOTFS_EXT2_CMD
Expand Down

0 comments on commit c83fa6b

Please sign in to comment.