diff options
| -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 | } | ||
