diff options
author | Richard Purdie <richard@openedhand.com> | 2008-09-03 14:07:49 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-09-03 14:07:49 +0000 |
commit | 62094355a5b71f3273c0e0704f31f05eb01c43db (patch) | |
tree | 788b949b80f78000fc92a1cbd601962ad3dcf0ba /meta/classes/syslinux.bbclass | |
parent | 91c830c205711015768c74b71188e3c52a446113 (diff) | |
download | poky-62094355a5b71f3273c0e0704f31f05eb01c43db.tar.gz |
syslinux.bbclass: Update to use more modern and efficient functions
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5127 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/syslinux.bbclass')
-rw-r--r-- | meta/classes/syslinux.bbclass | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/meta/classes/syslinux.bbclass b/meta/classes/syslinux.bbclass index 2f5b6c43d7..ea07e23828 100644 --- a/meta/classes/syslinux.bbclass +++ b/meta/classes/syslinux.bbclass | |||
@@ -126,13 +126,11 @@ python build_syslinux_cfg () { | |||
126 | cfgfile.write('DISPLAY %s\n' % (mfile.split('/')[-1]) ) | 126 | cfgfile.write('DISPLAY %s\n' % (mfile.split('/')[-1]) ) |
127 | 127 | ||
128 | for label in labels.split(): | 128 | for label in labels.split(): |
129 | from copy import deepcopy | 129 | localdata = bb.data.createCopy(d) |
130 | localdata = deepcopy(d) | ||
131 | 130 | ||
132 | overrides = bb.data.getVar('OVERRIDES', localdata) | 131 | overrides = bb.data.getVar('OVERRIDES', localdata, True) |
133 | if not overrides: | 132 | if not overrides: |
134 | raise bb.build.FuncFailed('OVERRIDES not defined') | 133 | raise bb.build.FuncFailed('OVERRIDES not defined') |
135 | overrides = bb.data.expand(overrides, localdata) | ||
136 | 134 | ||
137 | bb.data.setVar('OVERRIDES', label + ':' + overrides, localdata) | 135 | bb.data.setVar('OVERRIDES', label + ':' + overrides, localdata) |
138 | bb.data.update_data(localdata) | 136 | bb.data.update_data(localdata) |
@@ -149,8 +147,6 @@ python build_syslinux_cfg () { | |||
149 | cfgfile.write('initrd=initrd ') | 147 | cfgfile.write('initrd=initrd ') |
150 | 148 | ||
151 | cfgfile.write('%s\n' % (append)) | 149 | cfgfile.write('%s\n' % (append)) |
152 | 150 | ||
153 | del localdata | ||
154 | |||
155 | cfgfile.close() | 151 | cfgfile.close() |
156 | } | 152 | } |