summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorPaul Barker <pbarker@toganlabs.com>2017-09-08 09:29:31 +0000
committerAndrei Gherzan <andrei@gherzan.com>2017-09-24 20:39:35 +0100
commit8311d16e5999566d01e6931003f858d979a6e46c (patch)
treeaf7e4c0bf486bb790e75d9afdd7232a1e2f3221c /recipes-kernel
parentb00d914e78c8f4abfaff29deda5a72689230fa5f (diff)
downloadmeta-raspberrypi-8311d16e5999566d01e6931003f858d979a6e46c.tar.gz
linux-raspberrypi: Drop unnecessary code
* The kerneltype variable is not used anywhere after being set. * The manipulation of KERNEL_DEVICETREE is effectively a no-op, we read the current value in get_dts() and store this back into the same variable. Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux/linux-raspberrypi.inc8
1 files changed, 0 insertions, 8 deletions
diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc
index b348a9d..8aa9577 100644
--- a/recipes-kernel/linux/linux-raspberrypi.inc
+++ b/recipes-kernel/linux/linux-raspberrypi.inc
@@ -30,14 +30,6 @@ UDEV_GE_141 ?= "1"
30 30
31KERNEL_MODULE_AUTOLOAD += "${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "stmpe-ts", "", d)}" 31KERNEL_MODULE_AUTOLOAD += "${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "stmpe-ts", "", d)}"
32 32
33# Set programmatically some variables during recipe parsing
34# See http://www.yoctoproject.org/docs/current/bitbake-user-manual/bitbake-user-manual.html#anonymous-python-functions
35python __anonymous () {
36 kerneltype = d.getVar('KERNEL_IMAGETYPE')
37 kerneldt = get_dts(d, d.getVar('LINUX_VERSION'))
38 d.setVar("KERNEL_DEVICETREE", kerneldt)
39}
40
41do_compile_append_raspberrypi3-64() { 33do_compile_append_raspberrypi3-64() {
42 cc_extra=$(get_cc_option) 34 cc_extra=$(get_cc_option)
43 oe_runmake dtbs CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS} 35 oe_runmake dtbs CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS}