* [Buildroot] [pull request] Pull request for branch squashfs3
@ 2010-04-09 10:23 Thomas Petazzoni
2010-04-09 10:23 ` [Buildroot] [PATCH 1/2] squashfs3: new package Thomas Petazzoni
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2010-04-09 10:23 UTC (permalink / raw)
To: buildroot
Hello,
As requested during the review of the fs-cleanup branch, here is a set
of 2 patches that reintroduce the support for squashfs3. To make
things simpler, a separate package has been added.
The options are marked BR2_DEPRECATED.
Thomas
The following changes since commit 0b79c5022d32b15180a18087a0fba5a2f1af5cc7:
Thomas Petazzoni (1):
fs/*/Config.in: remove useless configuration comments
are available in the git repository at:
git://git.busybox.net/~tpetazzoni/git/buildroot squashfs3
Thomas Petazzoni (2):
squashfs3: new package
Add version selection for the SquashFS root filesystem
fs/squashfs/Config.in | 19 ++++++++++++
fs/squashfs/squashfs.mk | 4 ++
package/Config.in | 1 +
package/squashfs3/Config.in | 7 ++++
.../squashfs3/squashfs-3.4-build-system-fix.patch | 28 ++++++++++++++++++
package/squashfs3/squashfs3.mk | 30 ++++++++++++++++++++
6 files changed, 89 insertions(+), 0 deletions(-)
create mode 100644 package/squashfs3/Config.in
create mode 100644 package/squashfs3/squashfs-3.4-build-system-fix.patch
create mode 100644 package/squashfs3/squashfs3.mk
Thanks,
--
Thomas Petazzoni
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/2] squashfs3: new package
2010-04-09 10:23 [Buildroot] [pull request] Pull request for branch squashfs3 Thomas Petazzoni
@ 2010-04-09 10:23 ` Thomas Petazzoni
2010-04-09 10:23 ` [Buildroot] [PATCH 2/2] Add version selection for the SquashFS root filesystem Thomas Petazzoni
2010-04-09 14:20 ` [Buildroot] [pull request] Pull request for branch squashfs3 Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2010-04-09 10:23 UTC (permalink / raw)
To: buildroot
Add support for the old squashfs 3.x tools, so that squashfs 3.x root
filesystems can be generated.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/Config.in | 1 +
package/squashfs3/Config.in | 7 ++++
.../squashfs3/squashfs-3.4-build-system-fix.patch | 28 ++++++++++++++++++
package/squashfs3/squashfs3.mk | 30 ++++++++++++++++++++
4 files changed, 66 insertions(+), 0 deletions(-)
create mode 100644 package/squashfs3/Config.in
create mode 100644 package/squashfs3/squashfs-3.4-build-system-fix.patch
create mode 100644 package/squashfs3/squashfs3.mk
diff --git a/package/Config.in b/package/Config.in
index 0dac949..877a87e 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -189,6 +189,7 @@ source "package/sfdisk/Config.in"
endif
source "package/smartmontools/Config.in"
source "package/squashfs/Config.in"
+source "package/squashfs3/Config.in"
source "package/sshfs/Config.in"
source "package/sysstat/Config.in"
if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
diff --git a/package/squashfs3/Config.in b/package/squashfs3/Config.in
new file mode 100644
index 0000000..2f7033d
--- /dev/null
+++ b/package/squashfs3/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_SQUASHFS3
+ bool "squashfs3"
+ depends on BR2_DEPRECATED
+ help
+ Tools to generate SquashFS 3.x filesystems.
+
+ http://squashfs.sourceforge.net/
diff --git a/package/squashfs3/squashfs-3.4-build-system-fix.patch b/package/squashfs3/squashfs-3.4-build-system-fix.patch
new file mode 100644
index 0000000..5b86b00
--- /dev/null
+++ b/package/squashfs3/squashfs-3.4-build-system-fix.patch
@@ -0,0 +1,28 @@
+[PATCH]: squashfs-tools: Handle user supplied CFLAGS/LDFLAGS
+
+Properly handle make CFLAGS=.. LDFLAGS=..
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+---
+ squashfs-tools/Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+Index: squashfs3.4/squashfs-tools/Makefile
+===================================================================
+--- squashfs3.4.orig/squashfs-tools/Makefile
++++ squashfs3.4/squashfs-tools/Makefile
+@@ -2,12 +2,12 @@ INSTALL_DIR = /usr/local/bin
+
+ INCLUDEDIR = .
+
+-CFLAGS := -I$(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -O2
++override CFLAGS += -I$(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -O2
+
+ all: mksquashfs unsquashfs
+
+ mksquashfs: mksquashfs.o read_fs.o sort.o
+- $(CC) mksquashfs.o read_fs.o sort.o -lz -lpthread -lm -o $@
++ $(CC) $(LDFLAGS) mksquashfs.o read_fs.o sort.o -lz -lpthread -lm -o $@
+
+ mksquashfs.o: mksquashfs.c squashfs_fs.h mksquashfs.h global.h sort.h
+
diff --git a/package/squashfs3/squashfs3.mk b/package/squashfs3/squashfs3.mk
new file mode 100644
index 0000000..5504b14
--- /dev/null
+++ b/package/squashfs3/squashfs3.mk
@@ -0,0 +1,30 @@
+SQUASHFS3_VERSION=3.4
+SQUASHFS3_SOURCE=squashfs$(SQUASHFS3_VERSION).tar.gz
+SQUASHFS3_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/squashfs
+
+SQUASHFS3_DEPENDENCIES = zlib
+HOST_SQUASHFS3_DEPENDENCIES = host-zlib
+
+define SQUASHFS3_BUILD_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) \
+ CC="$(TARGET_CC)" \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ LDFLAGS="$(TARGET_LDFLAGS)" \
+ -C $(@D)/squashfs-tools/
+endef
+
+define SQUASHFS3_INSTALL_TARGET_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/squashfs-tools/ INSTALL_DIR=$(TARGET_DIR)/usr/bin install
+endef
+
+define HOST_SQUASHFS3_BUILD_CMDS
+ $(HOST_MAKE_ENV) $(MAKE) -C $(@D)/squashfs-tools/
+endef
+
+define HOST_SQUASHFS3_INSTALL_CMDS
+ $(HOST_MAKE_ENV) $(MAKE) -C $(@D)/squashfs-tools/ INSTALL_DIR=$(HOST_DIR)/usr/bin install
+endef
+
+$(eval $(call GENTARGETS,package,squashfs3))
+$(eval $(call GENTARGETS,package,squashfs3,host))
+
--
1.6.3.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 2/2] Add version selection for the SquashFS root filesystem
2010-04-09 10:23 [Buildroot] [pull request] Pull request for branch squashfs3 Thomas Petazzoni
2010-04-09 10:23 ` [Buildroot] [PATCH 1/2] squashfs3: new package Thomas Petazzoni
@ 2010-04-09 10:23 ` Thomas Petazzoni
2010-04-09 14:20 ` [Buildroot] [pull request] Pull request for branch squashfs3 Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2010-04-09 10:23 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
fs/squashfs/Config.in | 19 +++++++++++++++++++
fs/squashfs/squashfs.mk | 4 ++++
2 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/fs/squashfs/Config.in b/fs/squashfs/Config.in
index 6cc8fca..bcc93b9 100644
--- a/fs/squashfs/Config.in
+++ b/fs/squashfs/Config.in
@@ -2,3 +2,22 @@ config BR2_TARGET_ROOTFS_SQUASHFS
bool "squashfs root filesystem"
help
Build a squashfs root filesystem
+
+if BR2_TARGET_ROOTFS_SQUASHFS
+choice
+ prompt "SquashFS version"
+ default BR2_TARGET_ROOTFS_SQUASHFS4
+ help
+ Select the Squash filesystem version to use to generate the
+ root filesystem.
+
+config BR2_TARGET_ROOTFS_SQUASHFS4
+ bool "4.x"
+
+config BR2_TARGET_ROOTFS_SQUASHFS3
+ depends on BR2_DEPRECATED
+ bool "3.x"
+
+endchoice
+endif
+
diff --git a/fs/squashfs/squashfs.mk b/fs/squashfs/squashfs.mk
index d72388e..f11ba20 100644
--- a/fs/squashfs/squashfs.mk
+++ b/fs/squashfs/squashfs.mk
@@ -4,7 +4,11 @@
#
#############################################################
+ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4),y)
ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs
+else
+ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs3
+endif
define ROOTFS_SQUASHFS_CMD
$(HOST_DIR)/usr/bin/mksquashfs $(TARGET_DIR) $$@ -noappend
--
1.6.3.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [pull request] Pull request for branch squashfs3
2010-04-09 10:23 [Buildroot] [pull request] Pull request for branch squashfs3 Thomas Petazzoni
2010-04-09 10:23 ` [Buildroot] [PATCH 1/2] squashfs3: new package Thomas Petazzoni
2010-04-09 10:23 ` [Buildroot] [PATCH 2/2] Add version selection for the SquashFS root filesystem Thomas Petazzoni
@ 2010-04-09 14:20 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2010-04-09 14:20 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Thomas> Hello,
Thomas> As requested during the review of the fs-cleanup branch, here is a set
Thomas> of 2 patches that reintroduce the support for squashfs3. To make
Thomas> things simpler, a separate package has been added.
Thomas> The options are marked BR2_DEPRECATED.
Committed, thanks!
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-04-09 14:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-09 10:23 [Buildroot] [pull request] Pull request for branch squashfs3 Thomas Petazzoni
2010-04-09 10:23 ` [Buildroot] [PATCH 1/2] squashfs3: new package Thomas Petazzoni
2010-04-09 10:23 ` [Buildroot] [PATCH 2/2] Add version selection for the SquashFS root filesystem Thomas Petazzoni
2010-04-09 14:20 ` [Buildroot] [pull request] Pull request for branch squashfs3 Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox