dosfstools: fix build on OS X
- avoid using tools/include/endian.h on OS X to fix compilation. - remove unneeded Host/Compile definition. - refresh patches. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
parent
14ee2b0642
commit
57530dbec6
2 changed files with 2 additions and 10 deletions
|
@ -20,13 +20,10 @@ HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)
|
||||||
include $(INCLUDE_DIR)/host-build.mk
|
include $(INCLUDE_DIR)/host-build.mk
|
||||||
|
|
||||||
ifeq ($(HOST_OS),Darwin)
|
ifeq ($(HOST_OS),Darwin)
|
||||||
|
HOST_CFLAGS += -UHAVE_ENDIAN_H
|
||||||
LDLIBS += -liconv
|
LDLIBS += -liconv
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define Host/Compile
|
|
||||||
$(MAKE) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" LDFLAGS="$(HOST_LDFLAGS)" LDLIBS="$(LDLIBS)"
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Host/Install
|
define Host/Install
|
||||||
$(INSTALL_BIN) $(HOST_BUILD_DIR)/src/mkfs.fat $(STAGING_DIR_HOST)/bin/
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/src/mkfs.fat $(STAGING_DIR_HOST)/bin/
|
||||||
$(LN) mkfs.fat $(STAGING_DIR_HOST)/bin/mkdosfs
|
$(LN) mkfs.fat $(STAGING_DIR_HOST)/bin/mkdosfs
|
||||||
|
|
|
@ -13,11 +13,9 @@ Signed-off-by: Andreas Bombe <aeb@debian.org>
|
||||||
src/mkfs.fat.c | 10 ++++++++++
|
src/mkfs.fat.c | 10 ++++++++++
|
||||||
1 file changed, 10 insertions(+)
|
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
|
--- a/src/mkfs.fat.c
|
||||||
+++ b/src/mkfs.fat.c
|
+++ b/src/mkfs.fat.c
|
||||||
@@ -519,6 +519,16 @@ static void establish_params(struct device_info *info)
|
@@ -519,6 +519,16 @@ static void establish_params(struct devi
|
||||||
unsigned int cluster_size = 4; /* starting point for FAT12 and FAT16 */
|
unsigned int cluster_size = 4; /* starting point for FAT12 and FAT16 */
|
||||||
int def_root_dir_entries = 512;
|
int def_root_dir_entries = 512;
|
||||||
|
|
||||||
|
@ -34,6 +32,3 @@ index 8a320fd..bad492b 100644
|
||||||
if (info->type != TYPE_FIXED) {
|
if (info->type != TYPE_FIXED) {
|
||||||
/* enter default parameters for floppy disks if the size matches */
|
/* enter default parameters for floppy disks if the size matches */
|
||||||
switch (info->size / 1024) {
|
switch (info->size / 1024) {
|
||||||
--
|
|
||||||
2.1.4
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue