diff options
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | 2020-07-09 22:19:53 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-10 19:07:40 +0100 |
commit | b118808d5cd7d60c302ad00d22984934f5e810c1 (patch) | |
tree | 64de47da646ba2e03a3da509ed49a87a5fe1fa44 /meta/recipes-bsp/u-boot/u-boot.inc | |
parent | bda47d47dfffeac2549de749aa09758bb0be8ff8 (diff) | |
download | poky-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/recipes-bsp/u-boot/u-boot.inc')
-rw-r--r-- | meta/recipes-bsp/u-boot/u-boot.inc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc index 23cc795cab..a88a7a1120 100644 --- a/meta/recipes-bsp/u-boot/u-boot.inc +++ b/meta/recipes-bsp/u-boot/u-boot.inc | |||
@@ -70,16 +70,6 @@ UBOOT_EXTLINUX_INSTALL_DIR ?= "/boot/extlinux" | |||
70 | UBOOT_EXTLINUX_CONF_NAME ?= "extlinux.conf" | 70 | UBOOT_EXTLINUX_CONF_NAME ?= "extlinux.conf" |
71 | UBOOT_EXTLINUX_SYMLINK ?= "${UBOOT_EXTLINUX_CONF_NAME}-${MACHINE}-${PR}" | 71 | UBOOT_EXTLINUX_SYMLINK ?= "${UBOOT_EXTLINUX_CONF_NAME}-${MACHINE}-${PR}" |
72 | 72 | ||
73 | # returns all the elements from the src uri that are .cfg files | ||
74 | def find_cfgs(d): | ||
75 | sources=src_patches(d, True) | ||
76 | sources_list=[] | ||
77 | for s in sources: | ||
78 | if s.endswith('.cfg'): | ||
79 | sources_list.append(s) | ||
80 | |||
81 | return sources_list | ||
82 | |||
83 | do_configure () { | 73 | do_configure () { |
84 | if [ -n "${UBOOT_CONFIG}" ]; then | 74 | if [ -n "${UBOOT_CONFIG}" ]; then |
85 | unset i j | 75 | unset i j |