From 6602392db3d391d926dead49fcc54326015cfe35 Mon Sep 17 00:00:00 2001 From: Kristian Amlie Date: Mon, 6 Feb 2017 17:16:46 +0100 Subject: wic: Add --exclude-path option to rootfs source plugin. It will omit the given path from the resulting partition, and if the given path ends in a slash, it will only delete the content, and keep the directory. Since mkfs only accepts whole directories as input, we need to copy the rootfs directory to the workdir so that we can selectively delete files from it. Since we want to use the copyhardlinktree() function, we need to put the generic oe lib in the module search path. Signed-off-by: Kristian Amlie Signed-off-by: Ross Burton --- scripts/wic | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/wic') diff --git a/scripts/wic b/scripts/wic index 1b7d7dfa4e..10a03eeea6 100755 --- a/scripts/wic +++ b/scripts/wic @@ -41,6 +41,8 @@ from distutils import spawn scripts_path = os.path.abspath(os.path.dirname(__file__)) lib_path = scripts_path + '/lib' sys.path.insert(0, lib_path) +oe_lib_path = os.path.join(os.path.dirname(scripts_path), 'meta', 'lib') +sys.path.insert(0, oe_lib_path) bitbake_exe = spawn.find_executable('bitbake') if bitbake_exe: -- cgit 1.2.3-korg