forked from lede-project/source
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools/squashfs4: update to version 4.2 (adds support for xz compression)
Based on a patch by Jonas Gorski SVN-Revision: 26422
- Loading branch information
Felix Fietkau
committed
Apr 3, 2011
1 parent
b9e759a
commit e6aa1ca
Showing
12 changed files
with
1,036 additions
and
2,379 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,40 @@ | ||
--- a/squashfs-tools/global.h | ||
+++ b/squashfs-tools/global.h | ||
@@ -44,4 +44,8 @@ typedef long long squashfs_fragment_inde | ||
typedef squashfs_inode_t squashfs_inode; | ||
typedef squashfs_block_t squashfs_block; | ||
--- a/squashfs-tools/mksquashfs.c | ||
+++ b/squashfs-tools/mksquashfs.c | ||
@@ -60,6 +60,10 @@ | ||
#include <sys/sysinfo.h> | ||
#endif | ||
|
||
+#ifndef FNM_EXTMATCH | ||
+#define FNM_EXTMATCH 0 | ||
+#endif | ||
+ | ||
#endif | ||
#ifdef SQUASHFS_TRACE | ||
#define TRACE(s, args...) \ | ||
do { \ | ||
--- a/squashfs-tools/unsquashfs.h | ||
+++ b/squashfs-tools/unsquashfs.h | ||
@@ -49,8 +49,10 @@ | ||
@@ -49,8 +49,14 @@ | ||
#define __BYTE_ORDER BYTE_ORDER | ||
#define __BIG_ENDIAN BIG_ENDIAN | ||
#define __LITTLE_ENDIAN LITTLE_ENDIAN | ||
+#include <sys/sysctl.h> | ||
#else | ||
#include <endian.h> | ||
+#include <sys/sysinfo.h> | ||
+#endif | ||
+ | ||
+#ifndef FNM_EXTMATCH | ||
+#define FNM_EXTMATCH 0 | ||
#endif | ||
|
||
#include "squashfs_fs.h" | ||
--- a/squashfs-tools/unsquashfs.c | ||
+++ b/squashfs-tools/unsquashfs.c | ||
@@ -29,7 +29,6 @@ | ||
#include "compressor.h" | ||
#include "xattr.h" | ||
|
||
-#include <sys/sysinfo.h> | ||
#include <sys/types.h> | ||
|
||
struct cache *fragment_cache, *data_cache; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- a/squashfs-tools/Makefile | ||
+++ b/squashfs-tools/Makefile | ||
@@ -129,7 +129,6 @@ ifeq ($(LZMA_XZ_SUPPORT),1) | ||
CFLAGS += -DLZMA_SUPPORT | ||
MKSQUASHFS_OBJS += lzma_xz_wrapper.o | ||
UNSQUASHFS_OBJS += lzma_xz_wrapper.o | ||
-LIBS += -llzma | ||
COMPRESSORS += lzma | ||
endif | ||
|
||
@@ -137,10 +136,18 @@ ifeq ($(XZ_SUPPORT),1) | ||
CFLAGS += -DXZ_SUPPORT | ||
MKSQUASHFS_OBJS += xz_wrapper.o | ||
UNSQUASHFS_OBJS += xz_wrapper.o | ||
-LIBS += -llzma | ||
COMPRESSORS += xz | ||
endif | ||
|
||
+ifneq ($(LZMA_XZ_SUPPORT)$(XZ_SUPPORT),) | ||
+ifneq ($(LZMA_LIB),) | ||
+MKSQUASHFS_OBJS += $(LZMA_LIB) | ||
+UNSQUASHFS_OBJS += $(LZMA_LIB) | ||
+else | ||
+LIBS += -llzma | ||
+endif | ||
+endif | ||
+ | ||
ifeq ($(LZO_SUPPORT),1) | ||
CFLAGS += -DLZO_SUPPORT | ||
ifdef LZO_DIR |
Oops, something went wrong.