From 46f78e37e30b5686631b71c551402f5087274610 Mon Sep 17 00:00:00 2001 From: Paul Barker Date: Fri, 8 Sep 2017 09:45:24 +0000 Subject: 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 --- recipes-kernel/linux/linux-rpi.inc | 19 ------------------- 1 file changed, 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() { yes '' | oe_runmake oldconfig } - -# Automatically depend on lzop-native if CONFIG_KERNEL_LZO is enabled -python () { - try: - defconfig = bb.fetch2.localpath('file://defconfig', d) - except bb.fetch2.FetchError: - return - - try: - configfile = open(defconfig) - except IOError: - return - - if 'CONFIG_KERNEL_LZO=y\n' in configfile.readlines(): - depends = d.getVar('DEPENDS', False) - d.setVar('DEPENDS', depends + ' lzop-native') - - configfile.close() -} -- cgit v1.2.3-54-g00ecf