Modify

Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#9484 closed defect (fixed)

Build fails when using custom kernel squashfs configuration.

Reported by: vanilkovy.puding@… Owned by: developers
Priority: low Milestone: Barrier Breaker 14.07
Component: toolchain Version: Trunk
Keywords: Cc: vanilkovy.puding@…

Description

Hello Developers,

I have been playing around with kernel config for squashfs.
When i use:

CONFIG_XZ_DEC=n
CONFIG_SQUASHFS_EMBEDDED=y
CONFIG_SQUASHFS_LZMA=n
CONFIG_SQUASHFS_XZ=n

I get following error.

...
...
/mnt/data/OpenWRT_trunk/trunk/staging_dir/host/bin/mksquashfs4 /mnt/data/OpenWRT_trunk/trunk/build_dir/target-mipsel_uClibc-0.9.32/root-brcm47xx /mnt/data/OpenWRT_trunk/trunk/build_dir/linux-brcm47xx/root.squashfs -nopad -noappend -root-owned -comp  -processors 1
/mnt/data/OpenWRT_trunk/trunk/staging_dir/host/bin/mksquashfs4: Compressor "-processors" is not supported!
/mnt/data/OpenWRT_trunk/trunk/staging_dir/host/bin/mksquashfs4: Compressors available:
	gzip (default)
	lzma
	xz
make[5]: *** [install] Error 1
...
...

So i suggest to change /trunk/include/image.mk file.

+	SQUASHFSCOMP := gzip
45	LZMA_XZ_OPTIONS := -Xpreset 9 -Xe -Xlc 0 -Xlp 2 -Xpb 2
46	ifeq ($(CONFIG_SQUASHFS_LZMA),y)
47	  SQUASHFSCOMP := lzma $(LZMA_XZ_OPTIONS)
48	endif
49	ifeq ($(CONFIG_SQUASHFS_XZ),y)
50	  SQUASHFSCOMP := xz $(LZMA_XZ_OPTIONS)
51	endif

When neither LZMA or XZ is true default gzip compression is used and no error is produced.

Attachments (0)

Change History (5)

comment:1 follow-up: Changed 7 years ago by shchers@…

I have better solution:

diff --git a/include/image.mk b/include/image.mk
index 753e88f..ed3c7f2 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -43,6 +43,7 @@ ifneq ($(CONFIG_JFFS2_LZMA),y)
 endif
 
 LZMA_XZ_OPTIONS := -Xpreset 9 -Xe -Xlc 0 -Xlp 2 -Xpb 2
+SQUASHFSCOMP := gzip
 ifeq ($(CONFIG_SQUASHFS_LZMA),y)
   SQUASHFSCOMP := lzma $(LZMA_XZ_OPTIONS)
 endif

comment:2 in reply to: ↑ 1 ; follow-up: Changed 7 years ago by vanilkovy.puding@…

Replying to shchers@…:
Well, I think this is the same solution. Except the lines are reordered. :)

comment:3 in reply to: ↑ 2 Changed 7 years ago by anonymous

Replying to vanilkovy.puding@…:

Replying to shchers@…:
Well, I think this is the same solution. Except the lines are reordered. :)

Yes, of course! I'm sorry for inattention:)

comment:4 Changed 7 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r27748

comment:5 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.