diff options
Diffstat (limited to 'recipes-kernel/linux/linux.inc')
-rw-r--r-- | recipes-kernel/linux/linux.inc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux.inc b/recipes-kernel/linux/linux.inc index 9650e686..e8a754f5 100644 --- a/recipes-kernel/linux/linux.inc +++ b/recipes-kernel/linux/linux.inc | |||
@@ -264,3 +264,14 @@ pkg_postrm_kernel-devicetree () { | |||
264 | cd /${KERNEL_IMAGEDEST}; update-alternatives --remove devicetree devicetree-${KERNEL_VERSION} || true | 264 | cd /${KERNEL_IMAGEDEST}; update-alternatives --remove devicetree devicetree-${KERNEL_VERSION} || true |
265 | } | 265 | } |
266 | 266 | ||
267 | # Automatically depend on lzop-native if CONFIG_KERNEL_LZO is enabled | ||
268 | python () { | ||
269 | try: | ||
270 | defconfig = bb.fetch2.localpath('file://defconfig', d) | ||
271 | except bb.fetch2.FetchError: | ||
272 | pass | ||
273 | else: | ||
274 | if 'CONFIG_KERNEL_LZO=y\n' in open(defconfig).readlines(): | ||
275 | depends = d.getVar('DEPENDS', False) | ||
276 | d.setVar('DEPENDS', depends + ' lzop-native') | ||
277 | } | ||