All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] BINFMT_ZFLAT can't be a module
@ 2003-06-26 18:09 Matthew Wilcox
  2003-06-26 18:40 ` Roman Zippel
  0 siblings, 1 reply; 5+ messages in thread
From: Matthew Wilcox @ 2003-06-26 18:09 UTC (permalink / raw)
  To: David Woodhouse; +Cc: linux-kernel


BINFMT_ZFLAT is an attribute of BINFMT_FLAT not a distinct option in
its own right.  So the test in lib/Kconfig has to be changed to something
like this:

Index: lib/Kconfig
===================================================================
RCS file: /var/cvs/linux-2.5/lib/Kconfig,v
retrieving revision 1.4
diff -u -p -r1.4 Kconfig
--- lib/Kconfig	8 Apr 2003 15:20:57 -0000	1.4
+++ lib/Kconfig	26 Jun 2003 18:07:41 -0000
@@ -17,8 +17,8 @@ config CRC32
 #
 config ZLIB_INFLATE
 	tristate
-	default y if CRAMFS=y || PPP_DEFLATE=y || JFFS2_FS=y || ZISOFS_FS=y || BINFMT_ZFLAT=y || CRYPTO_DEFLATE=y
-	default m if CRAMFS=m || PPP_DEFLATE=m || JFFS2_FS=m || ZISOFS_FS=m || BINFMT_ZFLAT=m || CRYPTO_DEFLATE=m
+	default y if CRAMFS=y || PPP_DEFLATE=y || JFFS2_FS=y || ZISOFS_FS=y || CRYPTO_DEFLATE=y || (BINFMT_FLAT=y && BINFMT_ZFLAT=y)
+	default m if CRAMFS=m || PPP_DEFLATE=m || JFFS2_FS=m || ZISOFS_FS=m || CRYPTO_DEFLATE=m || (BINFMT_FLAT=m && BINFMT_ZFLAT=y)
 
 config ZLIB_DEFLATE
 	tristate

-- 
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] BINFMT_ZFLAT can't be a module
  2003-06-26 18:09 [PATCH] BINFMT_ZFLAT can't be a module Matthew Wilcox
@ 2003-06-26 18:40 ` Roman Zippel
  2003-06-26 18:56   ` Matthew Wilcox
  0 siblings, 1 reply; 5+ messages in thread
From: Roman Zippel @ 2003-06-26 18:40 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: David Woodhouse, linux-kernel

Hi,

On Thu, 26 Jun 2003, Matthew Wilcox wrote:

> BINFMT_ZFLAT is an attribute of BINFMT_FLAT not a distinct option in
> its own right.  So the test in lib/Kconfig has to be changed to something
> like this:
> 
> Index: lib/Kconfig
> ===================================================================
> RCS file: /var/cvs/linux-2.5/lib/Kconfig,v
> retrieving revision 1.4
> diff -u -p -r1.4 Kconfig
> --- lib/Kconfig	8 Apr 2003 15:20:57 -0000	1.4
> +++ lib/Kconfig	26 Jun 2003 18:07:41 -0000
> @@ -17,8 +17,8 @@ config CRC32
>  #
>  config ZLIB_INFLATE
>  	tristate
> -	default y if CRAMFS=y || PPP_DEFLATE=y || JFFS2_FS=y || ZISOFS_FS=y || BINFMT_ZFLAT=y || CRYPTO_DEFLATE=y
> -	default m if CRAMFS=m || PPP_DEFLATE=m || JFFS2_FS=m || ZISOFS_FS=m || BINFMT_ZFLAT=m || CRYPTO_DEFLATE=m
> +	default y if CRAMFS=y || PPP_DEFLATE=y || JFFS2_FS=y || ZISOFS_FS=y || CRYPTO_DEFLATE=y || (BINFMT_FLAT=y && BINFMT_ZFLAT=y)
> +	default m if CRAMFS=m || PPP_DEFLATE=m || JFFS2_FS=m || ZISOFS_FS=m || CRYPTO_DEFLATE=m || (BINFMT_FLAT=m && BINFMT_ZFLAT=y)

This can be simplified now to:

config ZLIB_INFLATE
	def_tristate CRAMFS || PPP_DEFLATE || JFFS2_FS || \
		     ZISOFS_FS || CRYPTO_DEFLATE || \
		     (BINFMT_FLAT && BINFMT_ZFLAT)

bye, Roman


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] BINFMT_ZFLAT can't be a module
  2003-06-26 18:40 ` Roman Zippel
@ 2003-06-26 18:56   ` Matthew Wilcox
  2003-06-26 19:10     ` Roman Zippel
  0 siblings, 1 reply; 5+ messages in thread
From: Matthew Wilcox @ 2003-06-26 18:56 UTC (permalink / raw)
  To: Roman Zippel; +Cc: Matthew Wilcox, David Woodhouse, linux-kernel

On Thu, Jun 26, 2003 at 08:40:05PM +0200, Roman Zippel wrote:
> > -	default y if CRAMFS=y || PPP_DEFLATE=y || JFFS2_FS=y || ZISOFS_FS=y || BINFMT_ZFLAT=y || CRYPTO_DEFLATE=y
> > -	default m if CRAMFS=m || PPP_DEFLATE=m || JFFS2_FS=m || ZISOFS_FS=m || BINFMT_ZFLAT=m || CRYPTO_DEFLATE=m
> > +	default y if CRAMFS=y || PPP_DEFLATE=y || JFFS2_FS=y || ZISOFS_FS=y || CRYPTO_DEFLATE=y || (BINFMT_FLAT=y && BINFMT_ZFLAT=y)
> > +	default m if CRAMFS=m || PPP_DEFLATE=m || JFFS2_FS=m || ZISOFS_FS=m || CRYPTO_DEFLATE=m || (BINFMT_FLAT=m && BINFMT_ZFLAT=y)
> 
> This can be simplified now to:
> 
> config ZLIB_INFLATE
> 	def_tristate CRAMFS || PPP_DEFLATE || JFFS2_FS || \
> 		     ZISOFS_FS || CRYPTO_DEFLATE || \
> 		     (BINFMT_FLAT && BINFMT_ZFLAT)

Could you document this in Documentation/kbuild/kconfig-language.txt
please?  The thing is, I'm not sure it'll work, and it's hard to convince
myself without docs.

Here's what I want:

CRAMFS	FLAT	ZFLAT	outcome
Y	Y	Y	Y
Y	Y	N	Y
Y	M	Y	Y
Y	M	N	Y
Y	N	-	Y

M	Y	Y	Y
M	Y	N	M (*)
M	M	Y	M
M	M	N	M
M	N	-	M

N	Y	Y	Y
N	Y	N	N
N	M	Y	M
N	M	N	N
N	N	-	N

Does dep_tristate give me that?  Particularly the one with a (*) by it.

-- 
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] BINFMT_ZFLAT can't be a module
  2003-06-26 18:56   ` Matthew Wilcox
@ 2003-06-26 19:10     ` Roman Zippel
  2003-06-27 10:51       ` Juan Quintela
  0 siblings, 1 reply; 5+ messages in thread
From: Roman Zippel @ 2003-06-26 19:10 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: David Woodhouse, linux-kernel

Hi,

On Thu, 26 Jun 2003, Matthew Wilcox wrote:

> > config ZLIB_INFLATE
> > 	def_tristate CRAMFS || PPP_DEFLATE || JFFS2_FS || \
> > 		     ZISOFS_FS || CRYPTO_DEFLATE || \
> > 		     (BINFMT_FLAT && BINFMT_ZFLAT)
> 
> Could you document this in Documentation/kbuild/kconfig-language.txt
> please?

Expressions are documented and 'def_tristate ...' is short for 'tristate' 
and 'default ...'

> Does dep_tristate give me that?  Particularly the one with a (*) by it.

Yes.

bye, Roman


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] BINFMT_ZFLAT can't be a module
  2003-06-26 19:10     ` Roman Zippel
@ 2003-06-27 10:51       ` Juan Quintela
  0 siblings, 0 replies; 5+ messages in thread
From: Juan Quintela @ 2003-06-27 10:51 UTC (permalink / raw)
  To: Roman Zippel; +Cc: Matthew Wilcox, David Woodhouse, linux-kernel

>>>>> "roman" == Roman Zippel <zippel@linux-m68k.org> writes:

Hi

roman> Expressions are documented and 'def_tristate ...' is short for 'tristate' 
roman> and 'default ...'

/me wonders if default_tristate or tristate_default will not be better
(it looks confusing with define_tristate).

Later, Juan.

-- 
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-06-27 10:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-26 18:09 [PATCH] BINFMT_ZFLAT can't be a module Matthew Wilcox
2003-06-26 18:40 ` Roman Zippel
2003-06-26 18:56   ` Matthew Wilcox
2003-06-26 19:10     ` Roman Zippel
2003-06-27 10:51       ` Juan Quintela

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.