summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r--meta/classes/package.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 247bdc7bbf..a77d532b66 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -807,10 +807,16 @@ python package_do_split_locales() {
807 807
808python perform_packagecopy () { 808python perform_packagecopy () {
809 import subprocess 809 import subprocess
810 import shutil
810 811
811 dest = d.getVar('D') 812 dest = d.getVar('D')
812 dvar = d.getVar('PKGD') 813 dvar = d.getVar('PKGD')
813 814
815 # Remove ${D}/sysroot-only if present
816 sysroot_only = os.path.join(dest, 'sysroot-only')
817 if cpath.exists(sysroot_only) and cpath.isdir(sysroot_only):
818 shutil.rmtree(sysroot_only)
819
814 # Start by package population by taking a copy of the installed 820 # Start by package population by taking a copy of the installed
815 # files to operate on 821 # files to operate on
816 # Preserve sparse files and hard links 822 # Preserve sparse files and hard links