Patchwork mtd: add options to build flash_otp_unlock and flash_otp_write

login
register
mail settings
Submitter Arnout Vandecappelle
Date Jan. 11, 2013, 9:48 a.m.
Message ID <1357897708-20616-1-git-send-email-arnout@mind.be>
Download mbox | patch
Permalink /patch/211262/
State Superseded
Headers show

Comments

Arnout Vandecappelle - Jan. 11, 2013, 9:48 a.m.
From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
 package/mtd/Config.in |    6 ++++++
 package/mtd/mtd.mk    |    2 ++
 2 files changed, 8 insertions(+)
Baruch Siach - Jan. 11, 2013, 9:57 a.m.
Hi Arnout,

On Fri, Jan 11, 2013 at 10:48:28AM +0100, Arnout Vandecappelle (Essensium/Mind) wrote:
> From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>
> 
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> ---
>  package/mtd/Config.in |    6 ++++++
>  package/mtd/mtd.mk    |    2 ++
>  2 files changed, 8 insertions(+)
> 
> diff --git a/package/mtd/Config.in b/package/mtd/Config.in
> index 7330dd5..ddc3737 100644
> --- a/package/mtd/Config.in
> +++ b/package/mtd/Config.in
> @@ -30,6 +30,12 @@ config BR2_PACKAGE_MTD_FLASH_OTP_DUMP
>  config BR2_PACKAGE_MTD_FLASH_OTP_INFO
>  	bool "flash_otp_info"
>  
> +config BR2_PACKAGE_MTD_FLASH_OTP_LOCK
> +	bool "flash_otp_lock"
> +
> +config BR2_PACKAGE_MTD_FLASH_OTP_WRITE
> +	bool "flash_otp_write"
> +
>  config BR2_PACKAGE_MTD_FLASH_UNLOCK
>  	bool "flash_unlock"
>  	default y
> diff --git a/package/mtd/mtd.mk b/package/mtd/mtd.mk
> index aef478f..c48b59f 100644
> --- a/package/mtd/mtd.mk
> +++ b/package/mtd/mtd.mk
> @@ -38,6 +38,8 @@ MTD_TARGETS_$(BR2_PACKAGE_MTD_FLASH_ERASE)	+= flash_erase
>  MTD_TARGETS_$(BR2_PACKAGE_MTD_FLASH_LOCK)	+= flash_lock
>  MTD_TARGETS_$(BR2_PACKAGE_MTD_FLASH_OTP_DUMP)	+= flash_otp_dump
>  MTD_TARGETS_$(BR2_PACKAGE_MTD_FLASH_OTP_INFO)	+= flash_otp_info
> +MTD_TARGETS_$(BR2_PACKAGE_MTD_FLASH_OTP_INFO)	+= flash_otp_lock

$(BR2_PACKAGE_MTD_FLASH_OTP_LOCK)?

> +MTD_TARGETS_$(BR2_PACKAGE_MTD_FLASH_OTP_INFO)	+= flash_otp_write

$(BR2_PACKAGE_MTD_FLASH_OTP_WRITE)?

>  MTD_TARGETS_$(BR2_PACKAGE_MTD_FLASH_UNLOCK)	+= flash_unlock
>  MTD_TARGETS_$(BR2_PACKAGE_MTD_FTL_CHECK)	+= ftl_check
>  MTD_TARGETS_$(BR2_PACKAGE_MTD_FTL_FORMAT)	+= ftl_format

baruch

Patch

diff --git a/package/mtd/Config.in b/package/mtd/Config.in
index 7330dd5..ddc3737 100644
--- a/package/mtd/Config.in
+++ b/package/mtd/Config.in
@@ -30,6 +30,12 @@  config BR2_PACKAGE_MTD_FLASH_OTP_DUMP
 config BR2_PACKAGE_MTD_FLASH_OTP_INFO
 	bool "flash_otp_info"
 
+config BR2_PACKAGE_MTD_FLASH_OTP_LOCK
+	bool "flash_otp_lock"
+
+config BR2_PACKAGE_MTD_FLASH_OTP_WRITE
+	bool "flash_otp_write"
+
 config BR2_PACKAGE_MTD_FLASH_UNLOCK
 	bool "flash_unlock"
 	default y
diff --git a/package/mtd/mtd.mk b/package/mtd/mtd.mk
index aef478f..c48b59f 100644
--- a/package/mtd/mtd.mk
+++ b/package/mtd/mtd.mk
@@ -38,6 +38,8 @@  MTD_TARGETS_$(BR2_PACKAGE_MTD_FLASH_ERASE)	+= flash_erase
 MTD_TARGETS_$(BR2_PACKAGE_MTD_FLASH_LOCK)	+= flash_lock
 MTD_TARGETS_$(BR2_PACKAGE_MTD_FLASH_OTP_DUMP)	+= flash_otp_dump
 MTD_TARGETS_$(BR2_PACKAGE_MTD_FLASH_OTP_INFO)	+= flash_otp_info
+MTD_TARGETS_$(BR2_PACKAGE_MTD_FLASH_OTP_INFO)	+= flash_otp_lock
+MTD_TARGETS_$(BR2_PACKAGE_MTD_FLASH_OTP_INFO)	+= flash_otp_write
 MTD_TARGETS_$(BR2_PACKAGE_MTD_FLASH_UNLOCK)	+= flash_unlock
 MTD_TARGETS_$(BR2_PACKAGE_MTD_FTL_CHECK)	+= ftl_check
 MTD_TARGETS_$(BR2_PACKAGE_MTD_FTL_FORMAT)	+= ftl_format