iproute2: Make it easier to manipulate SUBDIRS list from bbappend

Submitted by Anatol Belski on Dec. 14, 2020, 12:51 p.m. | Patch ID: 179018

Details

Message ID 20201214125115.32422-1-anbelski@linux.microsoft.com
State Accepted
Commit 1ca2b21cb7d638f36860bd16a90c1fb8238d4552
Headers show

Commit Message

Anatol Belski Dec. 14, 2020, 12:51 p.m.
Currently there's no easy way to override this part as it's hardcoded
into the EXTRA_OEMAKE var. This change makes it possible to manipulate
the list of subdirs in a more fine graned and future oriented manner.

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>

---
 meta/recipes-connectivity/iproute2/iproute2.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

-- 
2.17.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#145557): https://lists.openembedded.org/g/openembedded-core/message/145557
Mute This Topic: https://lists.openembedded.org/mt/78949268/3616849
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [michael@yoctoproject.org]
-=-=-=-=-=-=-=-=-=-=-=-

Patch hide | download patch | download mbox

diff --git a/meta/recipes-connectivity/iproute2/iproute2.inc b/meta/recipes-connectivity/iproute2/iproute2.inc
index 403d264308..7a22fe9252 100644
--- a/meta/recipes-connectivity/iproute2/iproute2.inc
+++ b/meta/recipes-connectivity/iproute2/iproute2.inc
@@ -20,11 +20,13 @@  PACKAGECONFIG[tipc] = ",,libmnl,"
 PACKAGECONFIG[elf] = ",,elfutils,"
 PACKAGECONFIG[devlink] = ",,libmnl,"
 
+IPROUTE2_MAKE_SUBDIRS = "lib tc ip bridge misc genl ${@bb.utils.filter('PACKAGECONFIG', 'devlink tipc', d)}"
+
 EXTRA_OEMAKE = "\
     CC='${CC}' \
     KERNEL_INCLUDE=${STAGING_INCDIR} \
     DOCDIR=${docdir}/iproute2 \
-    SUBDIRS='lib tc ip bridge misc genl ${@bb.utils.filter('PACKAGECONFIG', 'devlink tipc', d)}' \
+    SUBDIRS='${IPROUTE2_MAKE_SUBDIRS}' \
     SBINDIR='${base_sbindir}' \
     LIBDIR='${libdir}' \
 "