]> code.ossystems Code Review - openembedded-core.git/commitdiff
cml1: Move find_cfgs() helper to cml1.bbclass
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Thu, 9 Jul 2020 20:19:53 +0000 (22:19 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 12 Jul 2020 11:20:38 +0000 (12:20 +0100)
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.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cml1.bbclass
meta/recipes-bsp/u-boot/u-boot.inc
meta/recipes-core/busybox/busybox.inc

index c7f6723cb3de3e4f6ce7552a2ab45c079979a902..8ab240589a23d9a282ee6a176b0dffe8209e5ea3 100644 (file)
@@ -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
index 2666de647cb8e899c07d001bc4ba8ae9d8ff4cb0..251178db33769f24bd1ab0d4b7e2dcb9fdcdcd1b 100644 (file)
@@ -70,16 +70,6 @@ UBOOT_EXTLINUX_INSTALL_DIR ?= "/boot/extlinux"
 UBOOT_EXTLINUX_CONF_NAME ?= "extlinux.conf"
 UBOOT_EXTLINUX_SYMLINK ?= "${UBOOT_EXTLINUX_CONF_NAME}-${MACHINE}-${PR}"
 
-# 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
-
 do_configure () {
     if [ -n "${UBOOT_CONFIG}" ]; then
         unset i j
index 6cfdcd7344c4de43be0a6afad74ee6808ffc4999..45aaa2b41c15fbc34e70fd21bd36b51736baa672 100644 (file)
@@ -133,16 +133,6 @@ do_prepare_config () {
        fi
 }
 
-# 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
-
 do_configure () {
        set -x
        do_prepare_config