mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 06:36:34 +00:00
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>
This commit is contained in:
parent
fa037acee0
commit
3b67e8e664
@ -38,6 +38,9 @@ config BR2_PACKAGE_JPEG_TURBO
|
|||||||
|
|
||||||
http://www.libjpeg-turbo.org
|
http://www.libjpeg-turbo.org
|
||||||
|
|
||||||
|
# libjpeg from br2-external trees, if any
|
||||||
|
source "$BR2_BASE_DIR/.br2-external.in.jpeg"
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config BR2_PACKAGE_HAS_JPEG
|
config BR2_PACKAGE_HAS_JPEG
|
||||||
|
@ -158,6 +158,7 @@ do_kconfig() {
|
|||||||
paths
|
paths
|
||||||
menus
|
menus
|
||||||
toolchains
|
toolchains
|
||||||
|
jpeg
|
||||||
)
|
)
|
||||||
|
|
||||||
for br2 in "${items[@]}"; do
|
for br2 in "${items[@]}"; do
|
||||||
@ -205,6 +206,14 @@ do_kconfig() {
|
|||||||
else
|
else
|
||||||
printf '# No toolchain from: %s\n\n' "${br2_desc}"
|
printf '# No toolchain from: %s\n\n' "${br2_desc}"
|
||||||
fi >>"${outputdir}/.br2-external.in.toolchains"
|
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
|
done
|
||||||
|
|
||||||
printf 'endmenu\n' >>"${outputdir}/.br2-external.in.menus"
|
printf 'endmenu\n' >>"${outputdir}/.br2-external.in.menus"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user