aboutsummaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2019-07-29 22:20:01 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2019-08-04 00:13:37 +0200
commit3b67e8e664d4087c3cf6573bd327ae5c4a196d67 (patch)
tree4e87f3393002fadba49a009dbca0f4b2a3101dd3 /support
parentfa037acee09f8c74be2f4eb047a1ac1ea7f677f0 (diff)
downloadbuildroot-3b67e8e664d4087c3cf6573bd327ae5c4a196d67.tar.gz
buildroot-3b67e8e664d4087c3cf6573bd327ae5c4a196d67.tar.bz2
core: allow br2-external trees to provide libjpeg
Similar to toolchains, we now offer a way for br2-external trees to provide their libjpeg implementation, which gets included in the jpeg choice. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'support')
-rwxr-xr-xsupport/scripts/br2-external9
1 files changed, 9 insertions, 0 deletions
diff --git a/support/scripts/br2-external b/support/scripts/br2-external
index b08b77bd33..82c8afd64c 100755
--- a/support/scripts/br2-external
+++ b/support/scripts/br2-external
@@ -158,6 +158,7 @@ do_kconfig() {
paths
menus
toolchains
+ jpeg
)
for br2 in "${items[@]}"; do
@@ -205,6 +206,14 @@ do_kconfig() {
else
printf '# No toolchain from: %s\n\n' "${br2_desc}"
fi >>"${outputdir}/.br2-external.in.toolchains"
+
+ if [ -f "${br2_ext}/provides/jpeg.in" ]; then
+ printf 'comment "jpeg from: %s"\n' "${br2_desc}"
+ printf 'source "%s/provides/jpeg.in"\n' "${br2_ext}"
+ printf '\n'
+ else
+ printf '# No jpeg from: %s\n\n' "${br2_desc}"
+ fi >>"${outputdir}/.br2-external.in.jpeg"
done
printf 'endmenu\n' >>"${outputdir}/.br2-external.in.menus"