All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] rootfs post processing cleanup
@ 2016-04-12 22:10 Bill Randle
  2016-04-12 22:10 ` [PATCH 1/2] rootfs.py: apply ROOTFS_POSTINSTALL_COMMAND to all package formats Bill Randle
  2016-04-12 22:10 ` [PATCH 2/2] image.bbclass: add DEB_{PRE, POST}PROCESS_COMMANDS to rootfs_command_variables list Bill Randle
  0 siblings, 2 replies; 3+ messages in thread
From: Bill Randle @ 2016-04-12 22:10 UTC (permalink / raw)
  To: openembedded-core

Bill Randle (2):
  rootfs.py: apply ROOTFS_POSTINSTALL_COMMAND to all package formats
  image.bbclass: add DEB_{PRE,POST}_PROCESS_COMMANDS to rootfs_command_variables list

 meta/classes/image.bbclass | 2 +-
 meta/lib/oe/rootfs.py      | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

-- 
2.5.0



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

* [PATCH 1/2] rootfs.py: apply ROOTFS_POSTINSTALL_COMMAND to all package formats
  2016-04-12 22:10 [PATCH 0/2] rootfs post processing cleanup Bill Randle
@ 2016-04-12 22:10 ` Bill Randle
  2016-04-12 22:10 ` [PATCH 2/2] image.bbclass: add DEB_{PRE, POST}PROCESS_COMMANDS to rootfs_command_variables list Bill Randle
  1 sibling, 0 replies; 3+ messages in thread
From: Bill Randle @ 2016-04-12 22:10 UTC (permalink / raw)
  To: openembedded-core

Previously, ROOTFS_POSTINSTALL_COMMAND was run only after the opkg rootfs
install post processing phase. This patch makes it generic so it is run fter
any package manager specific rootfs post processing, but before _run_intercepts().

[YOCTO #9248]

Signed-off-by: Bill Randle <william.c.randle@intel.com>
---
 meta/lib/oe/rootfs.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index bfae1d8..a95e1b7 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -173,6 +173,7 @@ class Rootfs(object):
         bb.note("###### Generate rootfs #######")
         pre_process_cmds = self.d.getVar("ROOTFS_PREPROCESS_COMMAND", True)
         post_process_cmds = self.d.getVar("ROOTFS_POSTPROCESS_COMMAND", True)
+        rootfs_post_install_cmds = self.d.getVar('ROOTFS_POSTINSTALL_COMMAND', True)
 
         postinst_intercepts_dir = self.d.getVar("POSTINST_INTERCEPTS_DIR", True)
         if not postinst_intercepts_dir:
@@ -202,6 +203,8 @@ class Rootfs(object):
         with open(sysconfdir + "/version", "w+") as ver:
             ver.write(self.d.getVar('BUILDNAME', True) + "\n")
 
+        execute_pre_post_process(self.d, rootfs_post_install_cmds)
+
         self._run_intercepts()
 
         execute_pre_post_process(self.d, post_process_cmds)
@@ -877,7 +880,6 @@ class OpkgRootfs(DpkgOpkgRootfs):
         pkgs_to_install = self.manifest.parse_initial_manifest()
         opkg_pre_process_cmds = self.d.getVar('OPKG_PREPROCESS_COMMANDS', True)
         opkg_post_process_cmds = self.d.getVar('OPKG_POSTPROCESS_COMMANDS', True)
-        rootfs_post_install_cmds = self.d.getVar('ROOTFS_POSTINSTALL_COMMAND', True)
 
         # update PM index files, unless users provide their own feeds
         if (self.d.getVar('BUILD_IMAGES_FROM_FEEDS', True) or "") != "1":
@@ -908,7 +910,6 @@ class OpkgRootfs(DpkgOpkgRootfs):
         self._setup_dbg_rootfs(['/var/lib/opkg'])
 
         execute_pre_post_process(self.d, opkg_post_process_cmds)
-        execute_pre_post_process(self.d, rootfs_post_install_cmds)
 
         if self.inc_opkg_image_gen == "1":
             self.pm.backup_packaging_data()
-- 
2.5.0



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

* [PATCH 2/2] image.bbclass: add DEB_{PRE, POST}PROCESS_COMMANDS to rootfs_command_variables list
  2016-04-12 22:10 [PATCH 0/2] rootfs post processing cleanup Bill Randle
  2016-04-12 22:10 ` [PATCH 1/2] rootfs.py: apply ROOTFS_POSTINSTALL_COMMAND to all package formats Bill Randle
@ 2016-04-12 22:10 ` Bill Randle
  1 sibling, 0 replies; 3+ messages in thread
From: Bill Randle @ 2016-04-12 22:10 UTC (permalink / raw)
  To: openembedded-core

Remove duplicate ROOTFS_POSTPROCESS_COMMAND in the rootfs_command_variables list.
Add DEB_PREPROCESS_COMMANDS and DEB_POSTPROCESS_COMMANDS to rootfs_command_variables
list for consistency with the RPM_ and OPKG_ versions of those variables.
Note: the package manager specific pre and post process commands
may removed entirely in Yocto 2.2 or later.

Signed-off-by: Bill Randle <william.c.randle@intel.com>
---
 meta/classes/image.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index ea77ab8..4421acb 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -103,7 +103,7 @@ do_rootfs[recrdeptask] += "do_packagedata"
 
 def rootfs_command_variables(d):
     return ['ROOTFS_POSTPROCESS_COMMAND','ROOTFS_PREPROCESS_COMMAND','ROOTFS_POSTINSTALL_COMMAND','ROOTFS_POSTUNINSTALL_COMMAND','OPKG_PREPROCESS_COMMANDS','OPKG_POSTPROCESS_COMMANDS','IMAGE_POSTPROCESS_COMMAND',
-            'IMAGE_PREPROCESS_COMMAND','ROOTFS_POSTPROCESS_COMMAND','RPM_PREPROCESS_COMMANDS','RPM_POSTPROCESS_COMMANDS']
+            'IMAGE_PREPROCESS_COMMAND','RPM_PREPROCESS_COMMANDS','RPM_POSTPROCESS_COMMANDS','DEB_PREPROCESS_COMMANDS','DEB_POSTPROCESS_COMMANDS']
 
 python () {
     variables = rootfs_command_variables(d) + sdk_command_variables(d)
-- 
2.5.0



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

end of thread, other threads:[~2016-04-12 22:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-12 22:10 [PATCH 0/2] rootfs post processing cleanup Bill Randle
2016-04-12 22:10 ` [PATCH 1/2] rootfs.py: apply ROOTFS_POSTINSTALL_COMMAND to all package formats Bill Randle
2016-04-12 22:10 ` [PATCH 2/2] image.bbclass: add DEB_{PRE, POST}PROCESS_COMMANDS to rootfs_command_variables list Bill Randle

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.