Skip to content
Branch: master-oci
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (12 sloc) 428 Bytes
# TARGETNAME can be overridden
ROOTFS_PREPROCESS_COMMAND += "builder_set_hostname ; "
python builder_set_hostname() {
targetname = d.getVar("TARGETNAME", True)
if targetname != None:
status, date = oe.utils.getstatusoutput("date +%d-%m-%y")
if status:
bb.warn("Can't get the date string for target hostname")
targetname = "cube-%s" % date
d.setVar("TARGETNAME", targetname)
You can’t perform that action at this time.