tom_van godfather of coding
Posted: Tue Jul 05, 2011 9:30 pm
http://samygo.svn.sourceforge.net/viewv ... ision=1167 awesome, soon also 3-d for a-series?
btw:
can you pls. check that this function is ok
instead of
in case somebody like just to import parts of svn branch in a more recent oe layout think the old code produce some errors (maybe just a local problem in my settings)
thnx
arris

btw:
can you pls. check that this function is ok
Code: Select all
python __anonymous () {
import bb, re
fw_ver = re.sub('\+Samsung', '', bb.data.getVar('PREFERRED_VERSION_samsung-firmware', d, 1))
bb.data.setVar('FW_VER', fw_ver, d)
fw_part = fw_ver.split(".")
bb.data.setVar('FW_MAJ', fw_part[0], d)
bb.data.setVar('FW_MIN', fw_part[1], d)
bb.data.setVar('FW_MAJO', "00" + "%s" % fw_part[0], d)
}
Code: Select all
FW_VER = ${@re.sub('\+Samsung', '', bb.data.getVar('PREFERRED_VERSION_samsung-firmware', d, 1))}
thnx
arris