public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] bitbake: clean up stamp-base related codes
@ 2016-01-06  8:20 Chen Qi
  2016-01-06  8:34 ` ChenQi
  0 siblings, 1 reply; 2+ messages in thread
From: Chen Qi @ 2016-01-06  8:20 UTC (permalink / raw)
  To: openembedded-core

The 'stamp-base' related codes are no longer useful, clean them up.

[YOCTO #8468]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 bitbake/lib/bb/build.py | 4 ++--
 bitbake/lib/bb/cache.py | 3 ---
 meta/conf/bitbake.conf  | 2 +-
 3 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index 22428a6..b84338b 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -582,10 +582,10 @@ def stamp_internal(taskname, d, file_name, baseonly=False):
         taskflagname = taskname.replace("_setscene", "")
 
     if file_name:
-        stamp = d.stamp_base[file_name].get(taskflagname) or d.stamp[file_name]
+        stamp = d.stamp[file_name]
         extrainfo = d.stamp_extrainfo[file_name].get(taskflagname) or ""
     else:
-        stamp = d.getVarFlag(taskflagname, 'stamp-base', True) or d.getVar('STAMP', True)
+        stamp = d.getVar('STAMP', True)
         file_name = d.getVar('BB_FILENAME', True)
         extrainfo = d.getVarFlag(taskflagname, 'stamp-extra-info', True) or ""
 
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py
index 521f758..0ec4057 100644
--- a/bitbake/lib/bb/cache.py
+++ b/bitbake/lib/bb/cache.py
@@ -129,7 +129,6 @@ class CoreRecipeInfo(RecipeInfoCommon):
         self.not_world = self.getvar('EXCLUDE_FROM_WORLD', metadata)
         self.stamp = self.getvar('STAMP', metadata)
         self.stampclean = self.getvar('STAMPCLEAN', metadata)        
-        self.stamp_base = self.flaglist('stamp-base', self.tasks, metadata)
         self.stamp_base_clean = self.flaglist('stamp-base-clean', self.tasks, metadata)
         self.stamp_extrainfo = self.flaglist('stamp-extra-info', self.tasks, metadata)
         self.file_checksums = self.flaglist('file-checksums', self.tasks, metadata, True)
@@ -158,7 +157,6 @@ class CoreRecipeInfo(RecipeInfoCommon):
 
         cachedata.stamp = {}
         cachedata.stampclean = {}
-        cachedata.stamp_base = {}
         cachedata.stamp_base_clean = {}
         cachedata.stamp_extrainfo = {}
         cachedata.file_checksums = {}
@@ -192,7 +190,6 @@ class CoreRecipeInfo(RecipeInfoCommon):
         cachedata.pkg_dp[fn] = self.defaultpref
         cachedata.stamp[fn] = self.stamp
         cachedata.stampclean[fn] = self.stampclean
-        cachedata.stamp_base[fn] = self.stamp_base
         cachedata.stamp_base_clean[fn] = self.stamp_base_clean
         cachedata.stamp_extrainfo[fn] = self.stamp_extrainfo
         cachedata.file_checksums[fn] = self.file_checksums
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 371af31..51885af 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -801,7 +801,7 @@ BB_SIGNATURE_EXCLUDE_FLAGS ?= "doc deps depends \
     lockfiles type vardepsexclude vardeps vardepvalue vardepvalueexclude \
     file-checksums python func task export unexport noexec nostamp dirs cleandirs \
     sstate-lockfile-shared prefuncs postfuncs export_func deptask rdeptask \
-    recrdeptask nodeprrecs stamp-base stamp-extra-info sstate-outputdirs filename lineno"
+    recrdeptask nodeprrecs stamp-extra-info sstate-outputdirs filename lineno"
 
 MLPREFIX ??= ""
 MULTILIB_VARIANTS ??= ""
-- 
1.9.1



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

* Re: [PATCH] bitbake: clean up stamp-base related codes
  2016-01-06  8:20 [PATCH] bitbake: clean up stamp-base related codes Chen Qi
@ 2016-01-06  8:34 ` ChenQi
  0 siblings, 0 replies; 2+ messages in thread
From: ChenQi @ 2016-01-06  8:34 UTC (permalink / raw)
  To: openembedded-core

Please ignore this one.
I've separated this patch into two and send them to the correct list.

// Qi


On 01/06/2016 04:20 PM, Chen Qi wrote:
> The 'stamp-base' related codes are no longer useful, clean them up.
>
> [YOCTO #8468]
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
>   bitbake/lib/bb/build.py | 4 ++--
>   bitbake/lib/bb/cache.py | 3 ---
>   meta/conf/bitbake.conf  | 2 +-
>   3 files changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
> index 22428a6..b84338b 100644
> --- a/bitbake/lib/bb/build.py
> +++ b/bitbake/lib/bb/build.py
> @@ -582,10 +582,10 @@ def stamp_internal(taskname, d, file_name, baseonly=False):
>           taskflagname = taskname.replace("_setscene", "")
>   
>       if file_name:
> -        stamp = d.stamp_base[file_name].get(taskflagname) or d.stamp[file_name]
> +        stamp = d.stamp[file_name]
>           extrainfo = d.stamp_extrainfo[file_name].get(taskflagname) or ""
>       else:
> -        stamp = d.getVarFlag(taskflagname, 'stamp-base', True) or d.getVar('STAMP', True)
> +        stamp = d.getVar('STAMP', True)
>           file_name = d.getVar('BB_FILENAME', True)
>           extrainfo = d.getVarFlag(taskflagname, 'stamp-extra-info', True) or ""
>   
> diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py
> index 521f758..0ec4057 100644
> --- a/bitbake/lib/bb/cache.py
> +++ b/bitbake/lib/bb/cache.py
> @@ -129,7 +129,6 @@ class CoreRecipeInfo(RecipeInfoCommon):
>           self.not_world = self.getvar('EXCLUDE_FROM_WORLD', metadata)
>           self.stamp = self.getvar('STAMP', metadata)
>           self.stampclean = self.getvar('STAMPCLEAN', metadata)
> -        self.stamp_base = self.flaglist('stamp-base', self.tasks, metadata)
>           self.stamp_base_clean = self.flaglist('stamp-base-clean', self.tasks, metadata)
>           self.stamp_extrainfo = self.flaglist('stamp-extra-info', self.tasks, metadata)
>           self.file_checksums = self.flaglist('file-checksums', self.tasks, metadata, True)
> @@ -158,7 +157,6 @@ class CoreRecipeInfo(RecipeInfoCommon):
>   
>           cachedata.stamp = {}
>           cachedata.stampclean = {}
> -        cachedata.stamp_base = {}
>           cachedata.stamp_base_clean = {}
>           cachedata.stamp_extrainfo = {}
>           cachedata.file_checksums = {}
> @@ -192,7 +190,6 @@ class CoreRecipeInfo(RecipeInfoCommon):
>           cachedata.pkg_dp[fn] = self.defaultpref
>           cachedata.stamp[fn] = self.stamp
>           cachedata.stampclean[fn] = self.stampclean
> -        cachedata.stamp_base[fn] = self.stamp_base
>           cachedata.stamp_base_clean[fn] = self.stamp_base_clean
>           cachedata.stamp_extrainfo[fn] = self.stamp_extrainfo
>           cachedata.file_checksums[fn] = self.file_checksums
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index 371af31..51885af 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -801,7 +801,7 @@ BB_SIGNATURE_EXCLUDE_FLAGS ?= "doc deps depends \
>       lockfiles type vardepsexclude vardeps vardepvalue vardepvalueexclude \
>       file-checksums python func task export unexport noexec nostamp dirs cleandirs \
>       sstate-lockfile-shared prefuncs postfuncs export_func deptask rdeptask \
> -    recrdeptask nodeprrecs stamp-base stamp-extra-info sstate-outputdirs filename lineno"
> +    recrdeptask nodeprrecs stamp-extra-info sstate-outputdirs filename lineno"
>   
>   MLPREFIX ??= ""
>   MULTILIB_VARIANTS ??= ""



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

end of thread, other threads:[~2016-01-06  8:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-06  8:20 [PATCH] bitbake: clean up stamp-base related codes Chen Qi
2016-01-06  8:34 ` ChenQi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox