summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Barker <pbarker@toganlabs.com>2017-09-08 09:45:24 +0000
committerAndrei Gherzan <andrei@gherzan.com>2017-09-24 20:39:35 +0100
commit46f78e37e30b5686631b71c551402f5087274610 (patch)
tree429bea1604df6922d58977754219314a3626033f
parentcbd2412fb4fd38febdd2e71c6e8e9d7f35e94419 (diff)
downloadmeta-raspberrypi-46f78e37e30b5686631b71c551402f5087274610.tar.gz
linux-raspberrypi: Drop ineffective code
The code to determine if we need to depend on lzop-native will fail as the local defconfig file no longer exists. Signed-off-by: Paul Barker <pbarker@toganlabs.com>
-rw-r--r--recipes-kernel/linux/linux-rpi.inc19
1 files changed, 0 insertions, 19 deletions
diff --git a/recipes-kernel/linux/linux-rpi.inc b/recipes-kernel/linux/linux-rpi.inc
index 00c97f6..715cd06 100644
--- a/recipes-kernel/linux/linux-rpi.inc
+++ b/recipes-kernel/linux/linux-rpi.inc
@@ -129,22 +129,3 @@ do_configure_prepend() {
129 129
130 yes '' | oe_runmake oldconfig 130 yes '' | oe_runmake oldconfig
131} 131}
132
133# Automatically depend on lzop-native if CONFIG_KERNEL_LZO is enabled
134python () {
135 try:
136 defconfig = bb.fetch2.localpath('file://defconfig', d)
137 except bb.fetch2.FetchError:
138 return
139
140 try:
141 configfile = open(defconfig)
142 except IOError:
143 return
144
145 if 'CONFIG_KERNEL_LZO=y\n' in configfile.readlines():
146 depends = d.getVar('DEPENDS', False)
147 d.setVar('DEPENDS', depends + ' lzop-native')
148
149 configfile.close()
150}