From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v5 34/34] package/kodi: add Kconfig options to remove default skins
Date: Sun, 23 Apr 2017 12:35:55 +0200 [thread overview]
Message-ID: <20170423103555.GP7228@scaer> (raw)
In-Reply-To: <20170417195433.26672-35-bernd.kuhls@t-online.de>
Bernd, All,
On 2017-04-17 21:54 +0200, Bernd Kuhls spake thusly:
> The skins estuary and estouchy are new in Kodi 17-Krypton and replace
> the skin confluence, used until Kodi 16-Jarvis.
>
> This patch allows to disable one or both of the new skins, it also takes
> care that at least one skin needs to be enabled. With this patch Kodi
> can be used only with skin confluence.
I was not able to confirm this patch, because even with confluence set
as the default skin, Kodi still boots with estuary.
Regards,
Yann E. MORIN.
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> package/kodi-skin-confluence/Config.in | 1 +
> package/kodi/Config.in | 35 ++++++++++++++++++++
> package/kodi/kodi.mk | 58 ++++++++++++++++++++++++++++++++++
> 3 files changed, 94 insertions(+)
>
> diff --git a/package/kodi-skin-confluence/Config.in b/package/kodi-skin-confluence/Config.in
> index 08b656808..a623b03da 100644
> --- a/package/kodi-skin-confluence/Config.in
> +++ b/package/kodi-skin-confluence/Config.in
> @@ -1,5 +1,6 @@
> config BR2_PACKAGE_KODI_SKIN_CONFLUENCE
> bool "kodi-skin-confluence"
> + select BR2_PACKAGE_KODI_SKIN_ENABLED
> help
> Kodi confluence skin
>
> diff --git a/package/kodi/Config.in b/package/kodi/Config.in
> index 90e432754..632cd51ef 100644
> --- a/package/kodi/Config.in
> +++ b/package/kodi/Config.in
> @@ -62,6 +62,7 @@ menuconfig BR2_PACKAGE_KODI
> select BR2_PACKAGE_FONTCONFIG
> select BR2_PACKAGE_FREETYPE
> select BR2_PACKAGE_GMP
> + select BR2_PACKAGE_KODI_SKIN_ESTUARY if !BR2_PACKAGE_KODI_SKIN_ENABLED
> select BR2_PACKAGE_LIBASS
> select BR2_PACKAGE_LIBCDIO
> select BR2_PACKAGE_LIBCROSSGUID
> @@ -333,6 +334,40 @@ menu "Screensavers"
> endmenu
>
> menu "Skins"
> +
> +config BR2_PACKAGE_KODI_SKIN_ENABLED
> + bool
> +
> +choice
> + prompt "Default skin"
> +
> +config BR2_PACKAGE_KODI_SKIN_DEFAULT_ESTUARY
> + bool "kodi-skin-estuary"
> + depends on BR2_PACKAGE_KODI_SKIN_ESTUARY
> +
> +config BR2_PACKAGE_KODI_SKIN_DEFAULT_ESTOUCHY
> + bool "kodi-skin-estouchy"
> + depends on BR2_PACKAGE_KODI_SKIN_ESTOUCHY
> +
> +config BR2_PACKAGE_KODI_SKIN_DEFAULT_CONFLUENCE
> + bool "kodi-skin-confluence"
> + depends on BR2_PACKAGE_KODI_SKIN_CONFLUENCE
> +
> +endchoice
> +
> +config BR2_PACKAGE_KODI_SKIN_ESTUARY
> + bool "kodi-skin-estuary"
> + default y
> + help
> + Default skin Estuary
> +
> +config BR2_PACKAGE_KODI_SKIN_ESTOUCHY
> + bool "kodi-skin-estouchy"
> + default y
> + select BR2_PACKAGE_KODI_SKIN_ENABLED
> + help
> + Default skin Estouchy
> +
> source "package/kodi-skin-confluence/Config.in"
> endmenu
>
> diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk
> index 2e8e047be..882c80f26 100644
> --- a/package/kodi/kodi.mk
> +++ b/package/kodi/kodi.mk
> @@ -360,6 +360,64 @@ define KODI_CLEAN_UNUSED_ADDONS
> endef
> KODI_POST_INSTALL_TARGET_HOOKS += KODI_CLEAN_UNUSED_ADDONS
>
> +# Skins estuary and estouchy are installed by default and need to be
> +# removed if they are disabled in buildroot
> +ifeq ($(BR2_PACKAGE_KODI_SKIN_ESTUARY),y)
> +define KODI_CLEAN_SKIN_ESTUARY
> + find $(TARGET_DIR)/usr/share/kodi/addons/skin.estuary/media -name *.gif -delete
> + find $(TARGET_DIR)/usr/share/kodi/addons/skin.estuary/media -name *.jpg -delete
> + find $(TARGET_DIR)/usr/share/kodi/addons/skin.estuary/media -name *.png -delete
> +endef
> +KODI_POST_INSTALL_TARGET_HOOKS += KODI_CLEAN_SKIN_ESTUARY
> +else
> +define KODI_REMOVE_SKIN_ESTUARY
> + rm -Rf $(TARGET_DIR)/usr/share/kodi/addons/skin.estuary
> + $(HOST_DIR)/usr/bin/xml ed -L \
> + -d "/addons/addon[text()='skin.estuary']" \
> + $(KODI_ADDON_MANIFEST)
> +endef
> +KODI_POST_INSTALL_TARGET_HOOKS += KODI_REMOVE_SKIN_ESTUARY
> +endif
> +
> +ifeq ($(BR2_PACKAGE_KODI_SKIN_ESTOUCHY),y)
> +define KODI_CLEAN_SKIN_ESTOUCHY
> + find $(TARGET_DIR)/usr/share/kodi/addons/skin.estouchy/media -name *.gif -delete
> + find $(TARGET_DIR)/usr/share/kodi/addons/skin.estouchy/media -name *.jpg -delete
> + find $(TARGET_DIR)/usr/share/kodi/addons/skin.estouchy/media -name *.png -delete
> +endef
> +KODI_POST_INSTALL_TARGET_HOOKS += KODI_CLEAN_SKIN_ESTOUCHY
> +else
> +define KODI_REMOVE_SKIN_ESTOUCHY
> + rm -Rf $(TARGET_DIR)/usr/share/kodi/addons/skin.estouchy
> + $(HOST_DIR)/usr/bin/xml ed -L \
> + -d "/addons/addon[text()='skin.estouchy']" \
> + $(KODI_ADDON_MANIFEST)
> +endef
> +KODI_POST_INSTALL_TARGET_HOOKS += KODI_REMOVE_SKIN_ESTOUCHY
> +endif
> +
> +# The default value 'skin.estuary' is stored in
> +# xbmc/system/settings/settings.xml.
> +# If skin estuary is disabled this value needs to be changed to avoid
> +# https://github.com/xbmc/xbmc/blob/32a6916059a0b14ab5fc65cedb17b2615c039918/xbmc/Application.cpp#L1124
> +
> +define KODI_SET_DEFAULT_SKIN_ESTOUCHY
> + $(SED) 's/skin.estuary/skin.estouchy/#g' $(TARGET_DIR)/usr/share/kodi/system/settings/settings.xml
> +endef
> +
> +define KODI_SET_DEFAULT_SKIN_CONFLUENCE
> + $(SED) 's/skin.estuary/skin.confluence/#g' $(TARGET_DIR)/usr/share/kodi/system/settings/settings.xml
> + $(HOST_DIR)/usr/bin/xml ed -L -O --subnode "/addons" \
> + -t elem -n "addon" -v "skin.confluence" \
> + $(KODI_ADDON_MANIFEST)
> +endef
> +
> +ifeq ($(BR2_PACKAGE_KODI_SKIN_DEFAULT_ESTOUCHY),y)
> +KODI_POST_INSTALL_TARGET_HOOKS += KODI_SET_DEFAULT_SKIN_ESTOUCHY
> +else ifeq ($(BR2_PACKAGE_KODI_SKIN_DEFAULT_CONFLUENCE),y)
> +KODI_POST_INSTALL_TARGET_HOOKS += KODI_SET_DEFAULT_SKIN_CONFLUENCE
> +endif
> +
> define KODI_INSTALL_BR_WRAPPER
> $(INSTALL) -D -m 0755 package/kodi/br-kodi \
> $(TARGET_DIR)/usr/bin/br-kodi
> --
> 2.11.0
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2017-04-23 10:35 UTC|newest]
Thread overview: 85+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-17 19:53 [Buildroot] [PATCH v5 00/34] kodi: bump to version 17.1-Krypton Bernd Kuhls
2017-04-17 19:54 ` [Buildroot] [PATCH v5 01/34] package/kodi-visualisation-fountain: remove package Bernd Kuhls
2017-04-22 7:13 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 02/34] package/libplatform: bump version to 2.1.0 Bernd Kuhls
2017-04-22 7:26 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 03/34] package/kodi-platform: bump version Bernd Kuhls
2017-04-22 7:31 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 04/34] package/libcec: bump version to 4.0.2 Bernd Kuhls
2017-04-22 7:35 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 05/34] package/xmlstarlet: add host variant Bernd Kuhls
2017-04-22 9:14 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 06/34] package/kodi-jsonschemabuilder: new host package Bernd Kuhls
2017-04-22 7:44 ` Yann E. MORIN
2017-04-22 9:16 ` Yann E. MORIN
2017-04-22 17:18 ` Bernd Kuhls
2017-04-22 19:04 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 07/34] package/kodi-texturepacker: " Bernd Kuhls
2017-04-22 9:26 ` Yann E. MORIN
2017-04-22 22:19 ` Arnout Vandecappelle
2017-04-23 6:40 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 08/34] package/kodi: bump to version 17.1-Krypton Bernd Kuhls
2017-04-22 20:24 ` Yann E. MORIN
2017-04-22 20:36 ` Bernd Kuhls
2017-04-22 20:41 ` Yann E. MORIN
2017-04-22 20:40 ` Bernd Kuhls
2017-04-22 20:54 ` Yann E. MORIN
2017-04-22 20:50 ` Bernd Kuhls
2017-04-22 20:55 ` Yann E. MORIN
2017-04-23 15:26 ` Bernd Kuhls
2017-04-17 19:54 ` [Buildroot] [PATCH v5 09/34] package/kodi: add patch to disable online check Bernd Kuhls
2017-04-22 20:45 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 10/34] package/kodi-inputstream-rtmp: new package Bernd Kuhls
2017-04-17 19:54 ` [Buildroot] [PATCH v5 11/34] package/kodi: move rtmp support to new addon kodi-inputstream-rtmp Bernd Kuhls
2017-04-23 8:00 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 12/34] package/kodi: add optional support for bluez5 Bernd Kuhls
2017-04-23 8:27 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 13/34] package/kodi: libxslt is an optional package Bernd Kuhls
2017-04-23 8:33 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 14/34] package/kodi: add optional support for pulseaudio Bernd Kuhls
2017-04-23 8:40 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 15/34] package/kodi: add optional support for event clients Bernd Kuhls
2017-04-23 8:43 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 16/34] package/kodi: add optional support for lcms2 Bernd Kuhls
2017-04-23 8:46 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 17/34] package/libsquish: remove deprecated package Bernd Kuhls
2017-04-23 8:50 ` Yann E. MORIN
2017-04-23 9:25 ` Bernd Kuhls
2017-04-23 9:50 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 18/34] package/kodi-pvr-*: mass version bump Bernd Kuhls
2017-04-23 9:03 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 19/34] package/kodi-pvr-mythtv: bump version to 4.15.0 Bernd Kuhls
2017-04-23 9:05 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 20/34] package/kodi-pvr-nextpvr: bump version to 2.4.11 Bernd Kuhls
2017-04-23 9:09 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 21/34] package/kodi-pvr-mediaportal-tvserver: needs locale support Bernd Kuhls
2017-04-23 9:26 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 22/34] package/kodi-adsp-basic: bump version Bernd Kuhls
2017-04-23 10:02 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 23/34] package/kodi-adsp-freesurround: " Bernd Kuhls
2017-04-23 10:03 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 24/34] package/kodi-audioencoder-*: mass version bump Bernd Kuhls
2017-04-23 10:04 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 25/34] package/kodi-audiodecoder-*: " Bernd Kuhls
2017-04-23 10:05 ` Yann E. MORIN
2017-04-23 10:40 ` Bernd Kuhls
2017-04-17 19:54 ` [Buildroot] [PATCH v5 26/34] package/kodi-audiodecoder-timidity: bump version Bernd Kuhls
2017-04-23 10:07 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 27/34] package/kodi-screensaver-*: mass version bump Bernd Kuhls
2017-04-23 10:09 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 28/34] package/kodi-screensaver-rsxs: bump version Bernd Kuhls
2017-04-23 10:15 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 29/34] package/kodi-visualisation-*: mass version bump Bernd Kuhls
2017-04-23 10:17 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 30/34] package/kodi-visualisation-waveforhue: bump version Bernd Kuhls
2017-04-23 10:19 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 31/34] package/kodi-visualisation-shadertoy: " Bernd Kuhls
2017-04-23 10:23 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 32/34] package/kodi-inputstream-adaptive: new package Bernd Kuhls
2017-04-23 10:29 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 33/34] package/kodi-skin-confluence: " Bernd Kuhls
2017-04-23 10:32 ` Yann E. MORIN
2017-04-29 20:24 ` Bernd Kuhls
2017-04-17 19:54 ` [Buildroot] [PATCH v5 34/34] package/kodi: add Kconfig options to remove default skins Bernd Kuhls
2017-04-23 10:35 ` Yann E. MORIN [this message]
2017-04-17 19:59 ` [Buildroot] [PATCH v5 00/34] kodi: bump to version 17.1-Krypton Bernd Kuhls
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170423103555.GP7228@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox