summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-02-15 09:58:42 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-02-15 09:58:46 +0100
commit6939a51e49b110539f33b95c339b987f0f8f1825 (patch)
tree1ebe32b9aa90171da9ef31eea060b600f4793829
parent1f5111b3422bc7ac119eb7f606208768dd2fe2de (diff)
downloadptxdist-2019.02.0.tar.gz
ptxdist-2019.02.0.tar.xz
optee: only build if selected in the platformconfigptxdist-2019.02.0
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 <m.olbrich@pengutronix.de>
-rw-r--r--rules/optee-examples.make4
-rw-r--r--rules/optee-test.make4
-rw-r--r--rules/optee.make4
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