Bump buidlroot version to 2018.02.6
This commit is contained in:
@@ -95,55 +95,4 @@ config BR2_TARGET_ROOTFS_UBIFS_OPTS
|
||||
help
|
||||
Any additional mkfs.ubifs options you may want to include.
|
||||
|
||||
config BR2_TARGET_ROOTFS_UBI
|
||||
bool "Embed into an UBI image"
|
||||
help
|
||||
Build an ubi image from the ubifs one (with ubinize).
|
||||
|
||||
if BR2_TARGET_ROOTFS_UBI
|
||||
|
||||
config BR2_TARGET_ROOTFS_UBI_PEBSIZE
|
||||
hex "physical eraseblock size"
|
||||
default 0x20000
|
||||
help
|
||||
Tells ubinize the physical eraseblock (PEB) size of the
|
||||
flash chip the ubi image is created for. The value provided
|
||||
here is passed to the -p/--peb-size option of ubinize.
|
||||
|
||||
config BR2_TARGET_ROOTFS_UBI_SUBSIZE
|
||||
int "sub-page size"
|
||||
default 512
|
||||
help
|
||||
Tells ubinize that the flash supports sub-pages and the sub-page
|
||||
size. Use 0 if sub-pages are not supported on flash chip.
|
||||
The value provided here is passed to the -s/--sub-page-size
|
||||
option of ubinize.
|
||||
|
||||
config BR2_TARGET_ROOTFS_UBI_USE_CUSTOM_CONFIG
|
||||
bool "Use custom config file"
|
||||
help
|
||||
Select this option to use a custom ubinize configuration file,
|
||||
rather than the default configuration used by Buildroot (which
|
||||
defines a single dynamic volume marked as auto-resize). Passing
|
||||
a custom ubinize configuration file allows you to create several
|
||||
volumes, specify volume types, etc.
|
||||
|
||||
As a convenience, buildroot replaces the string
|
||||
"BR2_ROOTFS_UBIFS_PATH" with the path to the built ubifs file.
|
||||
So the volume defined for the root filesystem can specify the
|
||||
image path as: image=BR2_ROOTFS_UBIFS_PATH
|
||||
|
||||
config BR2_TARGET_ROOTFS_UBI_CUSTOM_CONFIG_FILE
|
||||
string "Configuration file path"
|
||||
depends on BR2_TARGET_ROOTFS_UBI_USE_CUSTOM_CONFIG
|
||||
help
|
||||
Path to the ubinize configuration file.
|
||||
|
||||
config BR2_TARGET_ROOTFS_UBI_OPTS
|
||||
string "Additional ubinize options"
|
||||
help
|
||||
Any additional ubinize options you may want to include.
|
||||
|
||||
endif # BR2_TARGET_ROOTFS_UBI
|
||||
|
||||
endif # BR2_TARGET_ROOTFS_UBIFS
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
################################################################################
|
||||
#
|
||||
# Embed the ubifs image into an ubi image
|
||||
#
|
||||
################################################################################
|
||||
|
||||
UBI_UBINIZE_OPTS := -m $(BR2_TARGET_ROOTFS_UBIFS_MINIOSIZE)
|
||||
UBI_UBINIZE_OPTS += -p $(BR2_TARGET_ROOTFS_UBI_PEBSIZE)
|
||||
ifneq ($(BR2_TARGET_ROOTFS_UBI_SUBSIZE),0)
|
||||
UBI_UBINIZE_OPTS += -s $(BR2_TARGET_ROOTFS_UBI_SUBSIZE)
|
||||
endif
|
||||
|
||||
UBI_UBINIZE_OPTS += $(call qstrip,$(BR2_TARGET_ROOTFS_UBI_OPTS))
|
||||
|
||||
ROOTFS_UBI_DEPENDENCIES = rootfs-ubifs
|
||||
|
||||
ifeq ($(BR2_TARGET_ROOTFS_UBI_USE_CUSTOM_CONFIG),y)
|
||||
UBINIZE_CONFIG_FILE_PATH = $(call qstrip,$(BR2_TARGET_ROOTFS_UBI_CUSTOM_CONFIG_FILE))
|
||||
else
|
||||
UBINIZE_CONFIG_FILE_PATH = fs/ubifs/ubinize.cfg
|
||||
endif
|
||||
|
||||
# don't use sed -i as it misbehaves on systems with SELinux enabled when this is
|
||||
# executed through fakeroot (see #9386)
|
||||
define ROOTFS_UBI_CMD
|
||||
sed 's;BR2_ROOTFS_UBIFS_PATH;$@fs;' \
|
||||
$(UBINIZE_CONFIG_FILE_PATH) > $(BUILD_DIR)/ubinize.cfg
|
||||
$(HOST_DIR)/usr/sbin/ubinize -o $@ $(UBI_UBINIZE_OPTS) $(BUILD_DIR)/ubinize.cfg
|
||||
rm $(BUILD_DIR)/ubinize.cfg
|
||||
endef
|
||||
|
||||
$(eval $(call ROOTFS_TARGET,ubi))
|
||||
@@ -4,7 +4,10 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
UBIFS_OPTS := -e $(BR2_TARGET_ROOTFS_UBIFS_LEBSIZE) -c $(BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT) -m $(BR2_TARGET_ROOTFS_UBIFS_MINIOSIZE)
|
||||
UBIFS_OPTS = \
|
||||
-e $(BR2_TARGET_ROOTFS_UBIFS_LEBSIZE) \
|
||||
-c $(BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT) \
|
||||
-m $(BR2_TARGET_ROOTFS_UBIFS_MINIOSIZE)
|
||||
|
||||
ifeq ($(BR2_TARGET_ROOTFS_UBIFS_RT_ZLIB),y)
|
||||
UBIFS_OPTS += -x zlib
|
||||
@@ -21,7 +24,7 @@ UBIFS_OPTS += $(call qstrip,$(BR2_TARGET_ROOTFS_UBIFS_OPTS))
|
||||
ROOTFS_UBIFS_DEPENDENCIES = host-mtd
|
||||
|
||||
define ROOTFS_UBIFS_CMD
|
||||
$(HOST_DIR)/usr/sbin/mkfs.ubifs -d $(TARGET_DIR) $(UBIFS_OPTS) -o $@
|
||||
$(HOST_DIR)/sbin/mkfs.ubifs -d $(TARGET_DIR) $(UBIFS_OPTS) -o $@
|
||||
endef
|
||||
|
||||
$(eval $(call ROOTFS_TARGET,ubifs))
|
||||
$(eval $(rootfs))
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
[ubifs]
|
||||
mode=ubi
|
||||
vol_id=0
|
||||
vol_type=dynamic
|
||||
vol_name=rootfs
|
||||
vol_alignment=1
|
||||
vol_flags=autoresize
|
||||
image=BR2_ROOTFS_UBIFS_PATH
|
||||
Reference in New Issue
Block a user