update buildroot to 2017.02.11
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
From 1e76e5778a1885452939a79d9145b80634a5b023 Mon Sep 17 00:00:00 2001
|
||||
From: Andreas Bombe <aeb@debian.org>
|
||||
Date: Wed, 11 May 2016 03:44:58 +0200
|
||||
Subject: [PATCH] mkfs: Default to 64/32 heads/sectors for targets smaller than
|
||||
512 MB
|
||||
|
||||
This may put defaults in certain use cases a little bit more in line
|
||||
with the old defaults in versions up to 3.0.28. It has mostly aesthetic
|
||||
value in most cases.
|
||||
|
||||
Signed-off-by: Andreas Bombe <aeb@debian.org>
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
---
|
||||
Patch status: upstream
|
||||
|
||||
src/mkfs.fat.c | 10 ++++++++++
|
||||
1 file changed, 10 insertions(+)
|
||||
|
||||
diff --git a/src/mkfs.fat.c b/src/mkfs.fat.c
|
||||
index 8a320fd..bad492b 100644
|
||||
--- a/src/mkfs.fat.c
|
||||
+++ b/src/mkfs.fat.c
|
||||
@@ -519,6 +519,16 @@ static void establish_params(struct device_info *info)
|
||||
unsigned int cluster_size = 4; /* starting point for FAT12 and FAT16 */
|
||||
int def_root_dir_entries = 512;
|
||||
|
||||
+ if (info->size < 512 * 1024 * 1024) {
|
||||
+ /*
|
||||
+ * These values are more or less meaningless, but we can at least
|
||||
+ * use less extreme values for smaller filesystems where the large
|
||||
+ * dummy values signifying LBA only access are not needed.
|
||||
+ */
|
||||
+ sec_per_track = 32;
|
||||
+ heads = 64;
|
||||
+ }
|
||||
+
|
||||
if (info->type != TYPE_FIXED) {
|
||||
/* enter default parameters for floppy disks if the size matches */
|
||||
switch (info->size / 1024) {
|
||||
--
|
||||
2.7.3
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
From 06ce096dabd8a29c72dc0bc5110d2c4867baa490 Mon Sep 17 00:00:00 2001
|
||||
From: Alessio Sergi <al3hex@gmail.com>
|
||||
Date: Fri, 6 May 2016 18:18:18 +0200
|
||||
Subject: [PATCH] src/device_info.c: Fix undefined PATH_MAX under musl
|
||||
|
||||
In musl libc, PATH_MAX is defined in <limits.h>.
|
||||
|
||||
Status: pending
|
||||
https://github.com/dosfstools/dosfstools/pull/27
|
||||
|
||||
[Romain: add patch status]
|
||||
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
||||
---
|
||||
src/device_info.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/device_info.c b/src/device_info.c
|
||||
index f5d11ac..cd57388 100644
|
||||
--- a/src/device_info.c
|
||||
+++ b/src/device_info.c
|
||||
@@ -17,6 +17,7 @@
|
||||
*/
|
||||
|
||||
|
||||
+#include <limits.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <sys/types.h>
|
||||
--
|
||||
2.5.5
|
||||
|
||||
30
bsp/buildroot-2017.02.11/package/dosfstools/Config.in
Normal file
30
bsp/buildroot-2017.02.11/package/dosfstools/Config.in
Normal file
@@ -0,0 +1,30 @@
|
||||
config BR2_PACKAGE_DOSFSTOOLS
|
||||
bool "dosfstools"
|
||||
depends on BR2_USE_WCHAR
|
||||
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
|
||||
help
|
||||
Tools for creating and checking DOS FAT filesystems.
|
||||
|
||||
https://github.com/dosfstools/dosfstools
|
||||
|
||||
if BR2_PACKAGE_DOSFSTOOLS
|
||||
|
||||
config BR2_PACKAGE_DOSFSTOOLS_FATLABEL
|
||||
bool "fatlabel"
|
||||
help
|
||||
Get or set the DOS FAT filesystem label.
|
||||
|
||||
config BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT
|
||||
bool "fsck.fat"
|
||||
help
|
||||
Check a DOS FAT filesystem.
|
||||
|
||||
config BR2_PACKAGE_DOSFSTOOLS_MKFS_FAT
|
||||
bool "mkfs.fat"
|
||||
help
|
||||
Creates a DOS FAT filesystem on a device.
|
||||
|
||||
endif
|
||||
|
||||
comment "dosfstools needs a toolchain w/ wchar"
|
||||
depends on !BR2_USE_WCHAR
|
||||
@@ -0,0 +1,6 @@
|
||||
config BR2_PACKAGE_HOST_DOSFSTOOLS
|
||||
bool "host dosfstools"
|
||||
help
|
||||
Tools for creating and checking DOS FAT filesystems.
|
||||
|
||||
https://github.com/dosfstools/dosfstools
|
||||
@@ -0,0 +1,2 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 9037738953559d1efe04fc5408b6846216cc0138f7f9d32de80b6ec3c35e7daf dosfstools-4.0.tar.xz
|
||||
49
bsp/buildroot-2017.02.11/package/dosfstools/dosfstools.mk
Normal file
49
bsp/buildroot-2017.02.11/package/dosfstools/dosfstools.mk
Normal file
@@ -0,0 +1,49 @@
|
||||
################################################################################
|
||||
#
|
||||
# dosfstools
|
||||
#
|
||||
################################################################################
|
||||
|
||||
DOSFSTOOLS_VERSION = 4.0
|
||||
DOSFSTOOLS_SOURCE = dosfstools-$(DOSFSTOOLS_VERSION).tar.xz
|
||||
DOSFSTOOLS_SITE = https://github.com/dosfstools/dosfstools/releases/download/v$(DOSFSTOOLS_VERSION)
|
||||
DOSFSTOOLS_LICENSE = GPLv3+
|
||||
DOSFSTOOLS_LICENSE_FILES = COPYING
|
||||
DOSFSTOOLS_CONF_OPTS = --enable-compat-symlinks --exec-prefix=/
|
||||
HOST_DOSFSTOOLS_CONF_OPTS = --enable-compat-symlinks
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
||||
DOSFSTOOLS_CONF_OPTS += --with-udev
|
||||
DOSFSTOOLS_DEPENDENCIES += udev
|
||||
else
|
||||
DOSFSTOOLS_CONF_OPTS += --without-udev
|
||||
endif
|
||||
|
||||
ifneq ($(BR2_ENABLE_LOCALE),y)
|
||||
DOSFSTOOLS_CONF_OPTS += LIBS="-liconv"
|
||||
DOSFSTOOLS_DEPENDENCIES += libiconv
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_FATLABEL),)
|
||||
define DOSFSTOOLS_REMOVE_FATLABEL
|
||||
rm -f $(addprefix $(TARGET_DIR)/sbin/,dosfslabel fatlabel)
|
||||
endef
|
||||
DOSFSTOOLS_POST_INSTALL_TARGET_HOOKS += DOSFSTOOLS_REMOVE_FATLABEL
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT),)
|
||||
define DOSFSTOOLS_REMOVE_FSCK_FAT
|
||||
rm -f $(addprefix $(TARGET_DIR)/sbin/,fsck.fat dosfsck fsck.msdos fsck.vfat)
|
||||
endef
|
||||
DOSFSTOOLS_POST_INSTALL_TARGET_HOOKS += DOSFSTOOLS_REMOVE_FSCK_FAT
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_MKFS_FAT),)
|
||||
define DOSFSTOOLS_REMOVE_MKFS_FAT
|
||||
rm -f $(addprefix $(TARGET_DIR)/sbin/,mkfs.fat mkdosfs mkfs.msdos mkfs.vfat)
|
||||
endef
|
||||
DOSFSTOOLS_POST_INSTALL_TARGET_HOOKS += DOSFSTOOLS_REMOVE_MKFS_FAT
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user