mirror of
https://git.yoctoproject.org/meta-raspberrypi
synced 2026-05-30 00:20:09 +00:00
linux-rpi: ensure config file is closed
Avoids warnings like this with python3:
WARNING: .../meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_3.18.bb:
<string>:16: ResourceWarning: unclosed file <_io.TextIOWrapper
name='.../meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi/defconfig'
mode='r' encoding='UTF-8'>
Signed-off-by: Jonathan Liu <net147@gmail.com>
This commit is contained in:
committed by
Andrei Gherzan
parent
69840c0bbe
commit
ffddbad97c
@@ -133,4 +133,6 @@ python () {
|
|||||||
if 'CONFIG_KERNEL_LZO=y\n' in configfile.readlines():
|
if 'CONFIG_KERNEL_LZO=y\n' in configfile.readlines():
|
||||||
depends = d.getVar('DEPENDS', False)
|
depends = d.getVar('DEPENDS', False)
|
||||||
d.setVar('DEPENDS', depends + ' lzop-native')
|
d.setVar('DEPENDS', depends + ' lzop-native')
|
||||||
|
|
||||||
|
configfile.close()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user