Browse Source

classes/reproducible_build: Create SDE destination

Creates the source data epoch file destination directory when restoring
from sstate

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Joshua Watt 4 years ago
parent
commit
f5259a62d4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      meta/classes/reproducible_build.bbclass

+ 1 - 0
meta/classes/reproducible_build.bbclass

@@ -53,6 +53,7 @@ do_deploy_source_date_epoch () {
 
 python do_deploy_source_date_epoch_setscene () {
     sstate_setscene(d)
+    bb.utils.mkdirhier(d.getVar('SDE_DIR'))
     sde_file = os.path.join(d.getVar('SDE_DEPLOYDIR'), '__source_date_epoch.txt')
     if os.path.exists(sde_file):
         os.rename(sde_file, d.getVar('SDE_FILE'))