package/ti-sgx-km: properly handle legacy for renamed options
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 29 May 2018 17:31:46 +0000 (19:31 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 17 Jun 2018 20:01:55 +0000 (22:01 +0200)
Commit b54c5464cc (ti-sgx-km: rename options to have proper prefix)
forgot to add defaults from legacy options, and notices in
Config.in.legacy that legacy options are still referenced in the
package itself.

Reported-by: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Config.in.legacy
package/ti-sgx-km/Config.in

index e7b0316a4f96ca29d7168f755623b244e0f4e8c2..7fc4792aed4d8f77451f47b0c55612881dcf870d 100644 (file)
@@ -169,6 +169,8 @@ config BR2_PACKAGE_MEDIAART_BACKEND_GDK_PIXBUF
          BR2_PACKAGE_MEDIAART_BACKEND_QT has been renamed to
          BR2_PACKAGE_LIBMEDIAART_BACKEND_QT
 
+# Note: BR2_PACKAGE_TI_SGX_AM335X is still referenced from
+# package/ti-sgx-km/Config.in
 config BR2_PACKAGE_TI_SGX_AM335X
        bool "ti-sgx-km AM335X option renamed"
        select BR2_LEGACY
@@ -177,6 +179,8 @@ config BR2_PACKAGE_TI_SGX_AM335X
          BR2_PACKAGE_TI_SGX_AM335X has been renamed to
          BR2_PACKAGE_TI_SGX_KM_AM335X.
 
+# Note: BR2_PACKAGE_TI_SGX_AM437X is still referenced from
+# package/ti-sgx-km/Config.in
 config BR2_PACKAGE_TI_SGX_AM437X
        bool "ti-sgx-km AM437X option renamed"
        select BR2_LEGACY
@@ -185,6 +189,8 @@ config BR2_PACKAGE_TI_SGX_AM437X
          BR2_PACKAGE_TI_SGX_AM437X has been renamed to
          BR2_PACKAGE_TI_SGX_KM_AM437X.
 
+# Note: BR2_PACKAGE_TI_SGX_AM4430 is still referenced from
+# package/ti-sgx-km/Config.in
 config BR2_PACKAGE_TI_SGX_AM4430
        bool "ti-sgx-km AM4430 option renamed"
        select BR2_LEGACY
@@ -193,6 +199,8 @@ config BR2_PACKAGE_TI_SGX_AM4430
          BR2_PACKAGE_TI_SGX_AM4430 has been renamed to
          BR2_PACKAGE_TI_SGX_KM_AM4430.
 
+# Note: BR2_PACKAGE_TI_SGX_AM5430 is still referenced from
+# package/ti-sgx-km/Config.in
 config BR2_PACKAGE_TI_SGX_AM5430
        bool "ti-sgx-km AM5430 option renamed"
        select BR2_LEGACY
index db3d3f9ddd44eb81f400e36b4a1aa19cefc9b1a1..348efdeb822f8be263724d1a83caf5cac429cfda 100644 (file)
@@ -20,6 +20,10 @@ if BR2_PACKAGE_TI_SGX_KM
 
 choice
        prompt "Target"
+       default BR2_PACKAGE_TI_SGX_KM_AM335X if BR2_PACKAGE_TI_SGX_AM335X # legacy
+       default BR2_PACKAGE_TI_SGX_KM_AM437X if BR2_PACKAGE_TI_SGX_AM437X # legacy
+       default BR2_PACKAGE_TI_SGX_KM_AM4430 if BR2_PACKAGE_TI_SGX_AM4430 # legacy
+       default BR2_PACKAGE_TI_SGX_KM_AM5430 if BR2_PACKAGE_TI_SGX_AM5430 # legacy
        default BR2_PACKAGE_TI_SGX_KM_AM335X
        help
          Select the SOC for which you would like to install drivers.