mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 2/3] mtd-utils.in: Add busybox dependencies
Date: Tue, 13 Mar 2012 10:12:15 +0100	[thread overview]
Message-ID: <20120313091215.GB29221@pengutronix.de> (raw)
In-Reply-To: <1331561345-9386-2-git-send-email-bernhard@bwalle.de>

On Mon, Mar 12, 2012 at 03:09:04PM +0100, bernhard@bwalle.de wrote:
> From: Bernhard Walle <walle@corscience.de>
> 
> Some tools that mtd-utils provide can be also provided by busybox. Add
> the dependencies here as done in other configuration files to prevent
> the user from misconfiguration.
> 
> Signed-off-by: Bernhard Walle <walle@corscience.de>
> ---
>  rules/mtd-utils.in |   32 ++++++++++++++++++++++++++++++++
>  1 file changed, 32 insertions(+)
> 
> diff --git a/rules/mtd-utils.in b/rules/mtd-utils.in
> index bc25ace..30ec133 100644
> --- a/rules/mtd-utils.in
> +++ b/rules/mtd-utils.in
> @@ -43,9 +43,13 @@ config MTD_UTILS_FLASH_ERASEALL
>  	bool
>  	prompt "flash_eraseall (deprecated)"
>  	select MTD_UTILS_FLASH_ERASE
> +	depends on !BUSYBOX_FLASH_ERASEALL

	depends on !BUSYBOX_FLASH_ERASEALL || ALLYES

For all. Sorry, I missed that in the last review.

Michael

>  	help
>  	  ...use flash_erase instead
>  
> +comment "busybox' flash_eraseall is selected!"
> +	depends on BUSYBOX_FLASH_ERASEALL
> +
>  config MTD_UTILS_MTDINFO
>  	bool
>  	prompt "mtdinfo"
> @@ -55,9 +59,13 @@ config MTD_UTILS_MTDINFO
>  config MTD_UTILS_FLASH_LOCK
>  	bool
>  	prompt "flash_lock"
> +	depends on !BUSYBOX_FLASH_LOCK
>  	help
>  	  This utility locks one or more sectors of flash device.
>  
> +comment "busybox' flash_lock is selected!"
> +	depends on BUSYBOX_FLASH_LOCK
> +
>  config MTD_UTILS_FLASH_OTP_DUMP
>  	bool
>  	prompt "flash_otp_dump"
> @@ -73,15 +81,23 @@ config MTD_UTILS_FLASH_OTP_INFO
>  config MTD_UTILS_FLASH_UNLOCK
>  	bool
>  	prompt "flash_unlock"
> +	depends on !BUSYBOX_FLASH_UNLOCK
>  	help
>  	  This utility unlock all sectors of flash device.
>  
> +comment "busybox' flash_unlock is selected!"
> +	depends on BUSYBOX_FLASH_UNLOCK
> +
>  config MTD_UTILS_FLASHCP
>  	bool
>  	prompt "flashcp"
> +	depends on !BUSYBOX_FLASHCP
>  	help
>  	  Flash Copy - Written by Abraham van der Merwe
>  
> +comment "busybox' flashcp is selected!"
> +	depends on BUSYBOX_FLASHCP
> +
>  config MTD_UTILS_FTL_CHECK
>  	bool
>  	prompt "ftl_check"
> @@ -126,10 +142,14 @@ config MTD_UTILS_MTDDEBUG
>  config MTD_UTILS_NANDDUMP
>  	bool
>  	prompt "nanddump"
> +	depends on !BUSYBOX_NANDDUMP
>  	help
>  	  This utility dumps the contents of raw NAND chips or NAND
>  	  chips contained in DoC devices.
>  
> +comment "busybox' nanddump is selected!"
> +	depends on BUSYBOX_NANDDUMP
> +
>  config MTD_UTILS_NANDTEST
>  	bool
>  	prompt "nandtest"
> @@ -139,11 +159,15 @@ config MTD_UTILS_NANDTEST
>  config MTD_UTILS_NANDWRITE
>  	bool
>  	prompt "nandwrite"
> +	depends on !BUSYBOX_NANDWRITE
>  	help
>  	  This utility writes a binary image directly to a NAND flash
>  	  chip or NAND chips contained in DoC devices. This is the
>  	  "inverse operation" of nanddump.
>  
> +comment "busybox' nandwrite is selected!"
> +	depends on BUSYBOX_NANDWRITE
> +
>  config MTD_UTILS_NFTL_FORMAT
>  	bool
>  	prompt "nftl_format"
> @@ -206,9 +230,13 @@ if MTD_UTILS_UBI_UTILS
>  config MTD_UTILS_UBIATTACH
>  	bool
>  	prompt "ubiattach"
> +	depends on !BUSYBOX_UBIATTACH
>  	help
>  	  Attach an ubi device to a mtd device
>  
> +comment "busybox' ubiattach is selected!"
> +	depends on BUSYBOX_UBIATTACH
> +
>  config MTD_UTILS_UBICRC32
>  	bool
>  	prompt "ubicrc32"
> @@ -218,9 +246,13 @@ config MTD_UTILS_UBICRC32
>  config MTD_UTILS_UBIDETACH
>  	bool
>  	prompt "ubidetach"
> +	depends on !BUSYBOX_UBIDETACH
>  	help
>  	  Detach an ubi device from a mtd device
>  
> +comment "busybox' ubidetach is selected!"
> +	depends on BUSYBOX_UBIDETACH
> +
>  config MTD_UTILS_UBIFORMAT
>  	bool
>  	select GCCLIBS_GCC_S
> -- 
> 1.7.9.3
> 
> 
> -- 
> ptxdist mailing list
> ptxdist@pengutronix.de
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2012-03-13  9:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-12 14:09 [ptxdist] [PATCH 1/3] Update mtd-utils to 1.4.9 bernhard
2012-03-12 14:09 ` [ptxdist] [PATCH 2/3] mtd-utils.in: Add busybox dependencies bernhard
2012-03-13  9:12   ` Michael Olbrich [this message]
2012-03-13  9:18     ` Bernhard Walle
2012-03-13  9:41       ` Michael Olbrich
2012-03-12 14:09 ` [ptxdist] [PATCH 3/3] procps.in: Unify wording of busybox comments bernhard
2012-03-13  9:14   ` Michael Olbrich
2012-03-13  9:09 ` [ptxdist] [PATCH 1/3] Update mtd-utils to 1.4.9 Michael Olbrich
2012-03-13 12:02   ` Bernhard Walle
2012-03-13 12:00     ` [ptxdist] [PATCH] " bernhard
2012-03-13 13:31       ` Michael Olbrich
2012-03-13 13:34         ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120313091215.GB29221@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox