]> code.ossystems Code Review - openembedded-core.git/commitdiff
syslinux.bbclass: Update to use more modern and efficient functions
authorRichard Purdie <richard@openedhand.com>
Wed, 3 Sep 2008 14:07:49 +0000 (14:07 +0000)
committerRichard Purdie <richard@openedhand.com>
Wed, 3 Sep 2008 14:07:49 +0000 (14:07 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5127 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/syslinux.bbclass

index 2f5b6c43d7a6dc53cd8704db43caffea51f06de9..ea07e238284458d92b37ec16d3683e0e37534782 100644 (file)
@@ -126,13 +126,11 @@ python build_syslinux_cfg () {
                cfgfile.write('DISPLAY %s\n' % (mfile.split('/')[-1]) )
        
        for label in labels.split():
-               from copy import deepcopy
-               localdata = deepcopy(d)
+               localdata = bb.data.createCopy(d)
 
-               overrides = bb.data.getVar('OVERRIDES', localdata)
+               overrides = bb.data.getVar('OVERRIDES', localdata, True)
                if not overrides:
                        raise bb.build.FuncFailed('OVERRIDES not defined')
-               overrides = bb.data.expand(overrides, localdata)
        
                bb.data.setVar('OVERRIDES', label + ':' + overrides, localdata)
                bb.data.update_data(localdata)
@@ -149,8 +147,6 @@ python build_syslinux_cfg () {
                                cfgfile.write('initrd=initrd ')
 
                        cfgfile.write('%s\n' % (append))
-       
-               del localdata
-       
+
        cfgfile.close()
 }