targets/toolchain_gcc.py
changeset 4012 6337c9c2c379
parent 3982 69d161fc2e08
equal deleted inserted replaced
4011:fdbb3c4ebbf6 4012:6337c9c2c379
   147     def check_and_update_hash_and_deps(self, bn):
   147     def check_and_update_hash_and_deps(self, bn):
   148         # Get latest computed hash and deps
   148         # Get latest computed hash and deps
   149         oldhash, deps = self.srcmd5.get(bn, (None, []))
   149         oldhash, deps = self.srcmd5.get(bn, (None, []))
   150         # read source
   150         # read source
   151         src = os.path.join(self.buildpath, bn)
   151         src = os.path.join(self.buildpath, bn)
       
   152         if not os.path.exists(src):
       
   153             return False
   152         # compute new hash
   154         # compute new hash
   153         newhash = compute_file_md5(src)
   155         newhash = compute_file_md5(src)
   154         # compare
   156         # compare
   155         match = (oldhash == newhash)
   157         match = (oldhash == newhash)
   156         if not match:
   158         if not match: