Files
meta-overc/meta-cube/classes/hosts.bbclass
Bruce Ashfield e3e9cc64c5 pod -> cube
'pods' are used in many projects and places. To clear up the namespace, we now
call the building blocks of an OverC system 'cubes'.

This switches the images, variables and READMEs to talk about 'cubes'.

We also move the distro conf to meta-overc, and ensure the distro is "overc".

And finally, the meta-cube layer priority is bumped to ensure its configs take
precence.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-10-23 15:45:37 -04:00

17 lines
428 B
Plaintext

# TARGETNAME can be overridden
ROOTFS_PREPROCESS_COMMAND += "builder_set_hostname ; "
python builder_set_hostname() {
targetname = d.getVar("TARGETNAME", True)
if targetname != None:
return
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)
}