ソースを参照

package/optee-client: add option to use same version as optee-os

We can select a custom official version for the optee-os package; add an
option to select the same version for optee-client, to easily keep them
synchronized.

Signed-off-by: Vincent Stehlé <vincent.stehle@arm.com>
Cc: Étienne Carrière <etienne.carriere@foss.st.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
Vincent Stehlé 6 ヶ月 前
コミット
30066345aa
1 ファイル変更8 行追加0 行削除
  1. 8 0
      package/optee-client/Config.in

+ 8 - 0
package/optee-client/Config.in

@@ -19,10 +19,16 @@ if BR2_PACKAGE_OPTEE_CLIENT
 
 
 choice
 choice
 	prompt "optee-client version"
 	prompt "optee-client version"
+	default BR2_PACKAGE_OPTEE_CLIENT_AS_OS \
+				if BR2_TARGET_OPTEE_OS_CUSTOM_VERSION
 	default BR2_PACKAGE_OPTEE_CLIENT_LATEST
 	default BR2_PACKAGE_OPTEE_CLIENT_LATEST
 	help
 	help
 	  Select the version of optee-client you want to use
 	  Select the version of optee-client you want to use
 
 
+config BR2_PACKAGE_OPTEE_CLIENT_AS_OS
+	bool "Same as optee-os being built"
+	depends on BR2_TARGET_OPTEE_OS_CUSTOM_VERSION
+
 config BR2_PACKAGE_OPTEE_CLIENT_LATEST
 config BR2_PACKAGE_OPTEE_CLIENT_LATEST
 	bool "4.3.0"
 	bool "4.3.0"
 	help
 	help
@@ -52,6 +58,8 @@ endif
 
 
 config BR2_PACKAGE_OPTEE_CLIENT_VERSION
 config BR2_PACKAGE_OPTEE_CLIENT_VERSION
 	string
 	string
+	default BR2_TARGET_OPTEE_OS_CUSTOM_VERSION_VALUE \
+				if BR2_PACKAGE_OPTEE_CLIENT_AS_OS
 	default "4.3.0"		if BR2_PACKAGE_OPTEE_CLIENT_LATEST
 	default "4.3.0"		if BR2_PACKAGE_OPTEE_CLIENT_LATEST
 	default "custom"	if BR2_PACKAGE_OPTEE_CLIENT_CUSTOM_TARBALL
 	default "custom"	if BR2_PACKAGE_OPTEE_CLIENT_CUSTOM_TARBALL