M7350/oe-core/meta-msm/classes/buildname.bbclass
2024-09-09 08:52:07 +00:00

12 lines
314 B
Plaintext

#
# Query the system for CRM/AU identity information
#
# Use crm_id if defined, otherwise
# Run 'git describe' for the latest tag
#
def get_git_latest_tag(path, d):
if os.path.exists(path) :
return oe_run(d, ["git", "describe"], cwd=path).rstrip()
else :
return time.strftime('%Y%m%d%H%M')