Commit 6e92c50c authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

added support for new folders

parent 19dbe7df
...@@ -32,6 +32,10 @@ do_unpack_append() { ...@@ -32,6 +32,10 @@ do_unpack_append() {
devdir_abspath = os.path.abspath("${DEV_DIR}") devdir_abspath = os.path.abspath("${DEV_DIR}")
for path, folders, files in os.walk("${DEV_DIR}"): for path, folders, files in os.walk("${DEV_DIR}"):
folders[:]=[fd for fd in folders if fd != ".git"] folders[:]=[fd for fd in folders if fd != ".git"]
for folder in folders:
folder_abspath = os.path.abspath(os.path.join(path, folder))
folder_relpath = folder_abspath.replace(devdir_abspath+"/", '')
os.system("cd ${S};mkdir "+folder_relpath)
for filename in files: for filename in files:
file_abspath = os.path.abspath(os.path.join(path, filename)) file_abspath = os.path.abspath(os.path.join(path, filename))
file_relpath = file_abspath.replace(devdir_abspath+"/", '') file_relpath = file_abspath.replace(devdir_abspath+"/", '')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment