summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>2020-07-09 20:19:53 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-10 18:07:40 (GMT)
commitb118808d5cd7d60c302ad00d22984934f5e810c1 (patch)
tree64de47da646ba2e03a3da509ed49a87a5fe1fa44 /meta/classes
parentbda47d47dfffeac2549de749aa09758bb0be8ff8 (diff)
downloadpoky-b118808d5cd7d60c302ad00d22984934f5e810c1.tar.gz
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 <rasmus.villemoes@prevas.dk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit af687c9137a3e8efe48afa6fd12866cf656ae913) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/cml1.bbclass10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/classes/cml1.bbclass b/meta/classes/cml1.bbclass
index c7f6723..8ab2405 100644
--- a/meta/classes/cml1.bbclass
+++ b/meta/classes/cml1.bbclass
@@ -1,3 +1,13 @@
1# returns all the elements from the src uri that are .cfg files
2def find_cfgs(d):
3 sources=src_patches(d, True)
4 sources_list=[]
5 for s in sources:
6 if s.endswith('.cfg'):
7 sources_list.append(s)
8
9 return sources_list
10
1cml1_do_configure() { 11cml1_do_configure() {
2 set -e 12 set -e
3 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS 13 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS