diff options
| -rw-r--r-- | recipes-kernel/linux/linux-raspberrypi.inc | 8 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-raspberrypi/defconfig | 1 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux.inc | 9 |
3 files changed, 11 insertions, 7 deletions
diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc index e756b57..4145b1a 100644 --- a/recipes-kernel/linux/linux-raspberrypi.inc +++ b/recipes-kernel/linux/linux-raspberrypi.inc | |||
| @@ -5,12 +5,14 @@ SECTION = "kernel" | |||
| 5 | LICENSE = "GPLv2" | 5 | LICENSE = "GPLv2" |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" |
| 7 | 7 | ||
| 8 | SRC_URI += " \ | ||
| 9 | file://defconfig \ | ||
| 10 | " | ||
| 11 | |||
| 8 | COMPATIBLE_MACHINE = "raspberrypi" | 12 | COMPATIBLE_MACHINE = "raspberrypi" |
| 9 | 13 | ||
| 10 | PV_append = "+git${SRCREV}" | 14 | PV_append = "+git${SRCREV}" |
| 11 | 15 | ||
| 12 | S = "${WORKDIR}/git" | ||
| 13 | |||
| 14 | # NOTE: For now we pull in the default config from the RPi kernel GIT tree. | 16 | # NOTE: For now we pull in the default config from the RPi kernel GIT tree. |
| 15 | KERNEL_DEFCONFIG = "bcmrpi_defconfig" | 17 | KERNEL_DEFCONFIG = "bcmrpi_defconfig" |
| 16 | 18 | ||
| @@ -19,7 +21,7 @@ CMDLINE_raspberrypi = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA | |||
| 19 | 21 | ||
| 20 | UDEV_GE_141 ?= "1" | 22 | UDEV_GE_141 ?= "1" |
| 21 | 23 | ||
| 22 | do_configure_prepend() { | 24 | do_kernel_configme_prepend() { |
| 23 | install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available." | 25 | install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available." |
| 24 | } | 26 | } |
| 25 | 27 | ||
diff --git a/recipes-kernel/linux/linux-raspberrypi/defconfig b/recipes-kernel/linux/linux-raspberrypi/defconfig new file mode 100644 index 0000000..ecbf32c --- /dev/null +++ b/recipes-kernel/linux/linux-raspberrypi/defconfig | |||
| @@ -0,0 +1 @@ | |||
| # Dummy file to get through do_kernel_configme. | |||
diff --git a/recipes-kernel/linux/linux.inc b/recipes-kernel/linux/linux.inc index 7a8f984..fae78b7 100644 --- a/recipes-kernel/linux/linux.inc +++ b/recipes-kernel/linux/linux.inc | |||
| @@ -5,6 +5,7 @@ LICENSE = "GPLv2" | |||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" |
| 6 | 6 | ||
| 7 | inherit kernel siteinfo | 7 | inherit kernel siteinfo |
| 8 | require recipes-kernel/linux/linux-yocto.inc | ||
| 8 | 9 | ||
| 9 | # Enable OABI compat for people stuck with obsolete userspace | 10 | # Enable OABI compat for people stuck with obsolete userspace |
| 10 | ARM_KEEP_OABI ?= "1" | 11 | ARM_KEEP_OABI ?= "1" |
| @@ -25,15 +26,15 @@ kernel_configure_variable() { | |||
| 25 | CONF_SED_SCRIPT="$CONF_SED_SCRIPT /CONFIG_$1[ =]/d;" | 26 | CONF_SED_SCRIPT="$CONF_SED_SCRIPT /CONFIG_$1[ =]/d;" |
| 26 | if test "$2" = "n" | 27 | if test "$2" = "n" |
| 27 | then | 28 | then |
| 28 | echo "# CONFIG_$1 is not set" >> ${S}/.config | 29 | echo "# CONFIG_$1 is not set" >> ${B}/.config |
| 29 | else | 30 | else |
| 30 | echo "CONFIG_$1=$2" >> ${S}/.config | 31 | echo "CONFIG_$1=$2" >> ${B}/.config |
| 31 | fi | 32 | fi |
| 32 | } | 33 | } |
| 33 | 34 | ||
| 34 | do_configure_prepend() { | 35 | do_configure_prepend() { |
| 35 | # Clean .config | 36 | # Clean .config |
| 36 | echo "" > ${S}/.config | 37 | echo "" > ${B}/.config |
| 37 | CONF_SED_SCRIPT="" | 38 | CONF_SED_SCRIPT="" |
| 38 | 39 | ||
| 39 | # oabi / eabi support | 40 | # oabi / eabi support |
| @@ -108,7 +109,7 @@ do_configure_prepend() { | |||
| 108 | 109 | ||
| 109 | # Keep this the last line | 110 | # Keep this the last line |
| 110 | # Remove all modified configs and add the rest to .config | 111 | # Remove all modified configs and add the rest to .config |
| 111 | sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${S}/.config' | 112 | sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${B}/.config' |
| 112 | 113 | ||
| 113 | yes '' | oe_runmake oldconfig | 114 | yes '' | oe_runmake oldconfig |
| 114 | } | 115 | } |
