From 6939a51e49b110539f33b95c339b987f0f8f1825 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Fri, 15 Feb 2019 09:58:42 +0100 Subject: optee: only build if selected in the platformconfig Limiting the packages to ARM is not quite correct. Instead skip them if no OP-TEE platform is defined. This happens when optee is disabled in the platformconfig. This way the packages can be enabled in the ptxconfig but are only built if optee is also enabled in the platformconfig. Signed-off-by: Michael Olbrich --- rules/optee-examples.make | 4 +++- rules/optee-test.make | 4 +++- rules/optee.make | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/rules/optee-examples.make b/rules/optee-examples.make index 63882ffd6..af9edacbb 100644 --- a/rules/optee-examples.make +++ b/rules/optee-examples.make @@ -11,7 +11,9 @@ # # We provide this package # -PACKAGES-$(PTXCONF_ARCH_ARM)-$(PTXCONF_OPTEE_EXAMPLES) += optee-examples +ifdef PTXCONF_OPTEE_PLATFORM +PACKAGES-$(PTXCONF_OPTEE_EXAMPLES) += optee-examples +endif # # Paths and names diff --git a/rules/optee-test.make b/rules/optee-test.make index 8fc1836c6..f349e5edf 100644 --- a/rules/optee-test.make +++ b/rules/optee-test.make @@ -11,7 +11,9 @@ # # We provide this package # -PACKAGES-$(PTXCONF_ARCH_ARM)-$(PTXCONF_OPTEE_TEST) += optee-test +ifdef PTXCONF_OPTEE_PLATFORM +PACKAGES-$(PTXCONF_OPTEE_TEST) += optee-test +endif # # Paths and names diff --git a/rules/optee.make b/rules/optee.make index 2e10fad45..f308689a7 100644 --- a/rules/optee.make +++ b/rules/optee.make @@ -11,7 +11,9 @@ # # We provide this package # -PACKAGES-$(PTXCONF_ARCH_ARM)-$(PTXCONF_OPTEE) += optee +ifdef PTXCONF_OPTEE_PLATFORM +PACKAGES-$(PTXCONF_OPTEE) += optee +endif # # Paths and names -- cgit v1.2.3