All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/kodi: enable optional usage of ccache
@ 2022-12-28 20:08 Bernd Kuhls
  2022-12-28 20:45 ` Yann E. MORIN
  0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2022-12-28 20:08 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/kodi/kodi.mk | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk
index 812c4be6e8..0878296599 100644
--- a/package/kodi/kodi.mk
+++ b/package/kodi/kodi.mk
@@ -68,7 +68,6 @@ KODI_EXTRA_DOWNLOADS += \
 KODI_CONF_OPTS += \
 	-DCMAKE_C_FLAGS="$(TARGET_CFLAGS) $(KODI_C_FLAGS)" \
 	-DENABLE_APP_AUTONAME=OFF \
-	-DENABLE_CCACHE=OFF \
 	-DENABLE_DVDCSS=ON \
 	-DENABLE_INTERNAL_CROSSGUID=OFF \
 	-DWITH_FFMPEG=$(STAGING_DIR)/usr \
@@ -89,6 +88,12 @@ KODI_CONF_OPTS += \
 	-DLIBDVDNAV_URL=$(KODI_DL_DIR)/kodi-libdvdnav-$(KODI_LIBDVDNAV_VERSION).tar.gz \
 	-DLIBDVDREAD_URL=$(KODI_DL_DIR)/kodi-libdvdread-$(KODI_LIBDVDREAD_VERSION).tar.gz
 
+ifeq ($(BR2_CCACHE),y)
+KODI_CONF_OPTS += -DENABLE_CCACHE=ON
+else
+KODI_CONF_OPTS += -DENABLE_CCACHE=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_KODI_RENDER_SYSTEM_GL),y)
 KODI_CONF_OPTS += -DAPP_RENDER_SYSTEM=gl
 KODI_DEPENDENCIES += libgl libglu
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/kodi: enable optional usage of ccache
  2022-12-28 20:08 [Buildroot] [PATCH 1/1] package/kodi: enable optional usage of ccache Bernd Kuhls
@ 2022-12-28 20:45 ` Yann E. MORIN
  0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2022-12-28 20:45 UTC (permalink / raw)
  To: Bernd Kuhls; +Cc: buildroot

Bernd, All,

On 2022-12-28 21:08 +0100, Bernd Kuhls spake thusly:
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  package/kodi/kodi.mk | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk
> index 812c4be6e8..0878296599 100644
> --- a/package/kodi/kodi.mk
> +++ b/package/kodi/kodi.mk
> @@ -68,7 +68,6 @@ KODI_EXTRA_DOWNLOADS += \
>  KODI_CONF_OPTS += \
>  	-DCMAKE_C_FLAGS="$(TARGET_CFLAGS) $(KODI_C_FLAGS)" \
>  	-DENABLE_APP_AUTONAME=OFF \
> -	-DENABLE_CCACHE=OFF \
>  	-DENABLE_DVDCSS=ON \
>  	-DENABLE_INTERNAL_CROSSGUID=OFF \
>  	-DWITH_FFMPEG=$(STAGING_DIR)/usr \
> @@ -89,6 +88,12 @@ KODI_CONF_OPTS += \
>  	-DLIBDVDNAV_URL=$(KODI_DL_DIR)/kodi-libdvdnav-$(KODI_LIBDVDNAV_VERSION).tar.gz \
>  	-DLIBDVDREAD_URL=$(KODI_DL_DIR)/kodi-libdvdread-$(KODI_LIBDVDREAD_VERSION).tar.gz
>  
> +ifeq ($(BR2_CCACHE),y)
> +KODI_CONF_OPTS += -DENABLE_CCACHE=ON
> +else
> +KODI_CONF_OPTS += -DENABLE_CCACHE=OFF
> +endif

Use of ccache is han dled globally in a single location, iwth the
toolchain wrapper, look for 'BR_CCACHE' in
toolchain/toolchain-wrapper.c.

Why would we need something special for Kodi?

Regards,
Yann E. MORIN.

>  ifeq ($(BR2_PACKAGE_KODI_RENDER_SYSTEM_GL),y)
>  KODI_CONF_OPTS += -DAPP_RENDER_SYSTEM=gl
>  KODI_DEPENDENCIES += libgl libglu
> -- 
> 2.34.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-28 20:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-28 20:08 [Buildroot] [PATCH 1/1] package/kodi: enable optional usage of ccache Bernd Kuhls
2022-12-28 20:45 ` Yann E. MORIN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.