Skip to contentSkip to conversation

meta: Add --cache-file for 3 core recipes

PATCH In review Robert Yang 2 participants 6 messages Jan 24, 2019 – Jan 25, 2019

lore
Share & tools
lore
#0 lore raw

cover meta: Add --cache-file for 3 core recipes

The following changes since commit a4edfa4cf451bf412525887b5b24b9db6486ae97:

remove unused distutils-tools.bbclass (2019-01-23 07:57:02 +0000)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib rbt/cf
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=rbt/cf

Robert Yang (3):
gettext: Add --cache-file to EXTRA_OECONF
ncurses: Add --cache-file to EXTRA_OECONF
gcc-runtime: Add --cache-file to EXTRA_OECONF

 meta/recipes-core/gettext/gettext_0.19.8.1.bb     | 1 +
 meta/recipes-core/ncurses/ncurses_6.1+20181013.bb | 2 +-
 meta/recipes-devtools/gcc/gcc-runtime.inc         | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)
Signature · 1 line
2.10.2
#1 lore raw

PATCH 1/3 gettext: Add --cache-file to EXTRA_OECONF

This can save configure time since it runs configure multiple times:

$ time bitbake gettext-native -cconfigure
  2m22s -> 2m2s

Saved 20s

---
 meta/recipes-core/gettext/gettext_0.19.8.1.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/gettext/gettext_0.19.8.1.bb +1 -0
index 933bacc..4049724 100644
@@ -39,6 +39,7 @@ EXTRA_OECONF += "--without-lispdir \
                  --without-emacs \
                  --without-cvs \
                  --without-git \
+                 --cache-file=${B}/config.cache \
                 "
 EXTRA_OECONF_append_class-target = " \
                  --with-bisonlocaledir=${datadir}/locale \
Signature · 1 line
2.10.2
#2 lore raw

PATCH 2/3 ncurses: Add --cache-file to EXTRA_OECONF

In reply to Robert Yang

This can save configure time since it runs configure multiple times:

$ time bitbake ncurses-native -cconfigure
  35s -> 25s

Saved 10s

---
 meta/recipes-core/ncurses/ncurses_6.1+20181013.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/ncurses/ncurses_6.1+20181013.bb +1 -1
index b462b14..ef6ca98 100644
@@ -7,5 +7,5 @@ SRC_URI += "file://0001-tic-hang.patch \
 # commit id corresponds to the revision in package version
 SRCREV = "7a97a7f937762ba342d5b2fd7cd090885a809835"
 S = "${WORKDIR}/git"
-EXTRA_OECONF += "--with-abi-version=5"
+EXTRA_OECONF += "--with-abi-version=5 --cache-file=${B}/config.cache"
 UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+(\+\d+)*)"
Signature · 1 line
2.10.2
#3 lore raw

PATCH 3/3 gcc-runtime: Add --cache-file to EXTRA_OECONF

In reply to Robert Yang

This can save configure time since it runs configure multiple times:

$ time bitbake gcc-runtime -cconfigure
  60s -> 54s

Saved 6s

---
 meta/recipes-devtools/gcc/gcc-runtime.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/gcc/gcc-runtime.inc +1 -0
index 50ecc81..3d03d8e 100644
@@ -15,6 +15,7 @@ EXTRA_OECONF_PATHS = "\
 "
 
 EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu"
+EXTRA_OECONF_append = " --cache-file=${B}/config.cache"
 
 RUNTIMELIBITM = "libitm"
 RUNTIMELIBITM_arc = ""
Signature · 1 line
2.10.2
#4 lore raw

Re: [PATCH 3/3] gcc-runtime: Add --cache-file to EXTRA_OECONF

Quoted 6 lines · Robert Yang

This can save configure time since it runs configure multiple times:

$ time bitbake gcc-runtime -cconfigure
  60s -> 54s

Saved 6s

looks ok. Are we sure this file is preserved across builds

Quoted 26 lines
---
 meta/recipes-devtools/gcc/gcc-runtime.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/gcc/gcc-runtime.inc +1 -1
index 50ecc81..3d03d8e 100644
@@ -15,6 +15,7 @@ EXTRA_OECONF_PATHS = "\
 "
 
 EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu"
+EXTRA_OECONF_append = " --cache-file=${B}/config.cache"
 
 RUNTIMELIBITM = "libitm"
 RUNTIMELIBITM_arc = ""
--

2.10.2

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#5 lore raw

Re: [PATCH 3/3] gcc-runtime: Add --cache-file to EXTRA_OECONF

Quoted 9 lines · Khem Raj
Quoted 6 lines · Robert Yang

This can save configure time since it runs configure multiple times:

$ time bitbake gcc-runtime -cconfigure
   60s -> 54s

Saved 6s

looks ok. Are we sure this file is preserved across builds

Sorry, what did you mean about preserved across builds, please ?

// Robert

Quoted 27 lines
Quoted 26 lines
---
  meta/recipes-devtools/gcc/gcc-runtime.inc | 1 +
  1 file changed, 1 insertion(+)
meta/recipes-devtools/gcc/gcc-runtime.inc +1 -1
index 50ecc81..3d03d8e 100644
@@ -15,6 +15,7 @@ EXTRA_OECONF_PATHS = "\
  "
 
  EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu"
+EXTRA_OECONF_append = " --cache-file=${B}/config.cache"
 
  RUNTIMELIBITM = "libitm"
  RUNTIMELIBITM_arc = ""
--

2.10.2

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core