From b118808d5cd7d60c302ad00d22984934f5e810c1 Mon Sep 17 00:00:00 2001 From: Rasmus Villemoes Date: Thu, 9 Jul 2020 22:19:53 +0200 Subject: cml1: Move find_cfgs() helper to cml1.bbclass u-boot.inc and busybox.inc contain identical copies of this little helper. They both inherit the cml1 class and use cml1_do_configure right after having used this helper, and other recipes that want to write similar logic for doing Kconfig via fragments will also need it or something equivalent. (From OE-Core rev: b0fb7f18f9091db50204ef1ebd5248739ddcd6c2) Signed-off-by: Rasmus Villemoes Signed-off-by: Richard Purdie (cherry picked from commit af687c9137a3e8efe48afa6fd12866cf656ae913) Signed-off-by: Steve Sakoman Signed-off-by: Richard Purdie --- meta/classes/cml1.bbclass | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'meta/classes') diff --git a/meta/classes/cml1.bbclass b/meta/classes/cml1.bbclass index c7f6723cb3..8ab240589a 100644 --- a/meta/classes/cml1.bbclass +++ b/meta/classes/cml1.bbclass @@ -1,3 +1,13 @@ +# returns all the elements from the src uri that are .cfg files +def find_cfgs(d): + sources=src_patches(d, True) + sources_list=[] + for s in sources: + if s.endswith('.cfg'): + sources_list.append(s) + + return sources_list + cml1_do_configure() { set -e unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS -- cgit v1.2.3-54-g00ecf