[OE-core] [PATCH] classes/reproducible_build: Create SDE destination

Joshua Watt jpewhacker at gmail.com
Fri Sep 27 19:59:23 UTC 2019


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

Signed-off-by: Joshua Watt <JPEWhacker at gmail.com>
---
 meta/classes/reproducible_build.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/reproducible_build.bbclass b/meta/classes/reproducible_build.bbclass
index 99b749a9ee2..39b6e40cacc 100644
--- a/meta/classes/reproducible_build.bbclass
+++ b/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'))
-- 
2.21.0



More information about the Openembedded-core mailing list