diff options
| -rw-r--r-- | recipes-kernel/linux/linux-raspberrypi.inc | 17 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-raspberrypi/defconfig | 1 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-rpi.inc | 6 |
3 files changed, 8 insertions, 16 deletions
diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc index 4f5999d..f79aacb 100644 --- a/recipes-kernel/linux/linux-raspberrypi.inc +++ b/recipes-kernel/linux/linux-raspberrypi.inc | |||
| @@ -6,19 +6,16 @@ SECTION = "kernel" | |||
| 6 | LICENSE = "GPLv2" | 6 | LICENSE = "GPLv2" |
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" |
| 8 | 8 | ||
| 9 | SRC_URI += " \ | ||
| 10 | file://defconfig \ | ||
| 11 | " | ||
| 12 | |||
| 13 | COMPATIBLE_MACHINE = "^rpi$" | 9 | COMPATIBLE_MACHINE = "^rpi$" |
| 14 | 10 | ||
| 15 | PE = "1" | 11 | PE = "1" |
| 16 | PV = "${LINUX_VERSION}+git${SRCPV}" | 12 | PV = "${LINUX_VERSION}+git${SRCPV}" |
| 17 | 13 | ||
| 18 | # NOTE: For now we pull in the default config from the RPi kernel GIT tree. | 14 | KCONFIG_MODE = "--alldefconfig" |
| 19 | KERNEL_DEFCONFIG_raspberrypi ?= "bcmrpi_defconfig" | 15 | KBUILD_DEFCONFIG_raspberrypi ?= "bcmrpi_defconfig" |
| 20 | KERNEL_DEFCONFIG_raspberrypi2 ?= "bcm2709_defconfig" | 16 | KBUILD_DEFCONFIG_raspberrypi2 ?= "bcm2709_defconfig" |
| 21 | KERNEL_DEFCONFIG_raspberrypi3-64 ?= "bcmrpi3_defconfig" | 17 | KBUILD_DEFCONFIG_raspberrypi3 ?= "bcm2709_defconfig" |
| 18 | KBUILD_DEFCONFIG_raspberrypi3-64 ?= "bcmrpi3_defconfig" | ||
| 22 | 19 | ||
| 23 | # CMDLINE for raspberrypi | 20 | # CMDLINE for raspberrypi |
| 24 | CMDLINE ?= "dwc_otg.lpm_enable=0 console=serial0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait" | 21 | CMDLINE ?= "dwc_otg.lpm_enable=0 console=serial0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait" |
| @@ -38,10 +35,6 @@ python __anonymous () { | |||
| 38 | d.setVar("KERNEL_DEVICETREE", kerneldt) | 35 | d.setVar("KERNEL_DEVICETREE", kerneldt) |
| 39 | } | 36 | } |
| 40 | 37 | ||
| 41 | do_kernel_configme_prepend() { | ||
| 42 | install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available." | ||
| 43 | } | ||
| 44 | |||
| 45 | do_install_prepend() { | 38 | do_install_prepend() { |
| 46 | install -d ${D}/lib/firmware | 39 | install -d ${D}/lib/firmware |
| 47 | } | 40 | } |
diff --git a/recipes-kernel/linux/linux-raspberrypi/defconfig b/recipes-kernel/linux/linux-raspberrypi/defconfig deleted file mode 100644 index ecbf32c..0000000 --- a/recipes-kernel/linux/linux-raspberrypi/defconfig +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | # Dummy file to get through do_kernel_configme. | ||
diff --git a/recipes-kernel/linux/linux-rpi.inc b/recipes-kernel/linux/linux-rpi.inc index 53383b0..ba47e31 100644 --- a/recipes-kernel/linux/linux-rpi.inc +++ b/recipes-kernel/linux/linux-rpi.inc | |||
| @@ -35,8 +35,7 @@ kernel_configure_variable() { | |||
| 35 | } | 35 | } |
| 36 | 36 | ||
| 37 | do_configure_prepend() { | 37 | do_configure_prepend() { |
| 38 | # Clean .config | 38 | mv -f ${B}/.config ${B}/.config.patched |
| 39 | echo "" > ${B}/.config | ||
| 40 | CONF_SED_SCRIPT="" | 39 | CONF_SED_SCRIPT="" |
| 41 | 40 | ||
| 42 | # oabi / eabi support | 41 | # oabi / eabi support |
| @@ -123,7 +122,8 @@ do_configure_prepend() { | |||
| 123 | 122 | ||
| 124 | # Keep this the last line | 123 | # Keep this the last line |
| 125 | # Remove all modified configs and add the rest to .config | 124 | # Remove all modified configs and add the rest to .config |
| 126 | sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${B}/.config' | 125 | sed -e "${CONF_SED_SCRIPT}" < '${B}/.config.patched' >> '${B}/.config' |
| 126 | rm -f ${B}/.config.patched | ||
| 127 | 127 | ||
| 128 | yes '' | oe_runmake oldconfig | 128 | yes '' | oe_runmake oldconfig |
| 129 | } | 129 | } |
