diff options
author | Paul Barker <pbarker@toganlabs.com> | 2017-09-08 09:45:24 +0000 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.com> | 2017-09-24 20:39:35 +0100 |
commit | 46f78e37e30b5686631b71c551402f5087274610 (patch) | |
tree | 429bea1604df6922d58977754219314a3626033f | |
parent | cbd2412fb4fd38febdd2e71c6e8e9d7f35e94419 (diff) | |
download | meta-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.inc | 19 |
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 | ||
134 | python () { | ||
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 | } | ||