Skip to content

Commit

Permalink
webos: webos.inc: Enable ccache for allowed components
Browse files Browse the repository at this point in the history
:Release Notes:
Disable ccache by default except allowed components.

:Detailed Notes:
1. The ccache.bbclass is inherited by default, but CCACHE_DISABLE ?= "1"
is set by default, the overall recipes do not use ccache by default.

The ccache.bbclass is inherited in INHERIT_DISTRO.
However, due to CCACHE_DISABLE ?= "1", the overall recipes do not use
ccache by default.

For more details, refer to ccache.bbclass.

2. ccache allowed component list.
Recipes that use ccache should set CCACHE_DISABLE:pn-<recipe> = "0"

:Testing Performed:
Build Test Done.

:QA Notes:
N/A

:Issues Addressed:
[WRR-2027] CCC: webos.inc: Enable ccache for allowed components
[WRQ-33741] Change in ccache environment in webOS

Cherry-picked-from-commit: e29f215b6bacfbcf3b003573a144bae4303c6734
Cherry-picked-from-branch:
  • Loading branch information
mark.yang authored and ywbyun0815 committed Oct 26, 2024
1 parent bf0df60 commit cb3b13f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion meta-webos/conf/distro/include/webos.inc
Original file line number Diff line number Diff line change
Expand Up @@ -500,9 +500,18 @@ RPMBUILD_EXTRA_PARAMS = " --define '_Author Author' --define '_RP-Maintainer RP-
export CCACHE_CONFIGPATH = "${@bb.utils.which('${BBPATH}', 'conf/ccache.conf')}"
export CCACHE_COMPILERCHECK = "content"
export CCACHE_READONLY ?= "1"
# Do not use ccache by default.
CCACHE_DISABLE ?= "1"

# Enable ccache read-only or read-write, Add the following variable to prevent sstate cache miss.
BB_HASHEXCLUDE_COMMON:append = " CCACHE_READONLY CCACHE_NOREADONLY"
BB_HASHEXCLUDE_COMMON:append = " CCACHE_READONLY CCACHE_NOREADONLY CCACHE_DISABLE"

# ccache allowed component list
CCACHE_DISABLE:pn-webruntime = "0"
CCACHE_DISABLE:pn-webruntime-clang = "0"
CCACHE_DISABLE:pn-nodejs = "0"
CCACHE_DISABLE:pn-opencv = "0"
CCACHE_DISABLE:pn-arm-compute-library = "0"

# Disable showing warning logs when unpatched CVEs are found using INHERIT += "cve_check"
CVE_CHECK_SHOW_WARNINGS = "0"
Expand Down

0 comments on commit cb3b13f

Please sign in to comment.