summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorBastian Krause <bst@pengutronix.de>2021-04-07 18:01:14 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2021-04-09 15:34:22 +0200
commit11f466dc427625ad0c0aba7daf00fbfb6c722315 (patch)
tree53882c4aa4bf71ac50053ab865b277b1d0ef947d /rules
parent2c8a97198098908a5035ff41ed969b71041a087a (diff)
downloadptxdist-11f466dc427625ad0c0aba7daf00fbfb6c722315.tar.gz
ptxdist-11f466dc427625ad0c0aba7daf00fbfb6c722315.tar.xz
dtc: add package to EXTRA_PACKAGES on !PTXCONF_DTC_INSTALL_OFTREE
If the oftree is not installed into the root filesystem, we don't need to add it to PACKAGES. Add it to EXTRA_PACKAGES in this case instead. This is useful for oftrees in FIT images (KERNEL_FIT). It allows adding custom image dependencies for the dtc package for rather special use cases. Signed-off-by: Bastian Krause <bst@pengutronix.de> Message-Id: <20210407160114.29806-1-bst@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r--rules/dtc.make4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules/dtc.make b/rules/dtc.make
index 49fd4526a..8c0455af9 100644
--- a/rules/dtc.make
+++ b/rules/dtc.make
@@ -11,7 +11,11 @@
#
# We provide this package
#
+ifdef PTXCONF_DTC_INSTALL_OFTREE
PACKAGES-$(PTXCONF_DTC) += dtc
+else
+EXTRA_PACKAGES-$(PTXCONF_DTC) += dtc
+endif
DTC_VERSION := 1.0.0
DTC_LICENSE := ignore