diff mbox

uboot: BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR -> legacy

Message ID 1429903115-29129-1-git-send-email-fhunleth@troodon-software.com
State Rejected
Headers show

Commit Message

Frank Hunleth April 24, 2015, 7:18 p.m. UTC
This changes BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR from deprecated to
legacy. The added legacy handling will automatically copy the
BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR setting to BR2_TARGET_UBOOT_PATCH,
which should make upgrading configurations easier.

Thanks to Arnout for suggesting the switch to legacy.

Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
---
 Config.in.legacy     | 15 +++++++++++++++
 boot/uboot/Config.in | 12 ------------
 2 files changed, 15 insertions(+), 12 deletions(-)

Comments

Arnout Vandecappelle July 19, 2015, 8:42 p.m. UTC | #1
On 04/24/15 21:18, Frank Hunleth wrote:
> This changes BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR from deprecated to
> legacy. The added legacy handling will automatically copy the
> BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR setting to BR2_TARGET_UBOOT_PATCH,
> which should make upgrading configurations easier.
> 
> Thanks to Arnout for suggesting the switch to legacy.
> 
> Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>

 Hi Frank,

 Thanks for this patch, but since we didn't include it in 2015.05, it's too late
to change it now. So I've marked it as rejected in patchwork.


 Regards,
 Arnout
diff mbox

Patch

diff --git a/Config.in.legacy b/Config.in.legacy
index 70a9043..341d006 100644
--- a/Config.in.legacy
+++ b/Config.in.legacy
@@ -107,6 +107,21 @@  endif
 ###############################################################################
 comment "Legacy options removed in 2015.05"
 
+config BR2_TARGET_UBOOT_PATCH
+	default BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR if BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR != ""
+
+config BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR
+	string "uboot: the custom patch dir option has been renamed"
+	help
+	  The option BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR has been renamed to
+	  BR2_TARGET_UBOOT_PATCH. Check that your configuration has been updated
+	  correctly and delete this string.
+
+config BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR_WRAP
+	bool
+	default y if BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR != ""
+	select BR2_LEGACY
+
 config BR2_LINUX_KERNEL_EXT_RTAI_PATCH
 	bool "RTAI patch file path has been removed"
 	help
diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
index 4f01499..acfbf5a 100644
--- a/boot/uboot/Config.in
+++ b/boot/uboot/Config.in
@@ -70,18 +70,6 @@  config BR2_TARGET_UBOOT_VERSION
 	default BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION \
 		if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG
 
-config BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR
-	string "custom patch dir"
-	depends on BR2_DEPRECATED_SINCE_2015_05
-	help
-	  If your board requires custom patches, add the path to the
-	  directory containing the patches here. The patches must be
-	  named uboot-<something>.patch.
-
-	  Most users may leave this empty
-
-	  NOTE: Use BR2_TARGET_UBOOT_PATCH instead.
-
 config BR2_TARGET_UBOOT_PATCH
 	string "Custom U-Boot patches"
 	help