summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Mabäcker <petter@technux.se>2015-01-15 23:32:52 +0100
committerAndrei Gherzan <andrei@gherzan.ro>2015-01-25 21:47:27 +0200
commit1eda7e8b742bff698456facf4e8e79c3457cffc0 (patch)
tree5cbe6dd52c191c6507c75b465dc0bc69379cdce0
parent1ed383d466534c81fadea5d359e013587c734867 (diff)
downloadmeta-raspberrypi-1eda7e8b742bff698456facf4e8e79c3457cffc0.tar.gz
linux-raspberrypi: fix do_configure failure
When building against newer yocto project releases below failure occurs. | DEBUG: Executing shell function do_configure | NOTE: make oldconfig | make: *** No rule to make target `oldconfig'. Stop. | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_configure Fix this by trying to adapt more of the standard mechanism that exists in yocto, in order to build "custom kernels". Change-Id: I0598c0c16d84295a454976f60b56f9d35c36a4ba Signed-off-by: Petter Mabäcker <petter@technux.se> Acked-by: Andrei Gherzan <andrei@gherzan.ro>
-rw-r--r--recipes-kernel/linux/linux-raspberrypi.inc8
-rw-r--r--recipes-kernel/linux/linux-raspberrypi/defconfig1
-rw-r--r--recipes-kernel/linux/linux.inc9
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"
5LICENSE = "GPLv2" 5LICENSE = "GPLv2"
6LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" 6LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
7 7
8SRC_URI += " \
9 file://defconfig \
10 "
11
8COMPATIBLE_MACHINE = "raspberrypi" 12COMPATIBLE_MACHINE = "raspberrypi"
9 13
10PV_append = "+git${SRCREV}" 14PV_append = "+git${SRCREV}"
11 15
12S = "${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.
15KERNEL_DEFCONFIG = "bcmrpi_defconfig" 17KERNEL_DEFCONFIG = "bcmrpi_defconfig"
16 18
@@ -19,7 +21,7 @@ CMDLINE_raspberrypi = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA
19 21
20UDEV_GE_141 ?= "1" 22UDEV_GE_141 ?= "1"
21 23
22do_configure_prepend() { 24do_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"
5LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" 5LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
6 6
7inherit kernel siteinfo 7inherit kernel siteinfo
8require 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
10ARM_KEEP_OABI ?= "1" 11ARM_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
34do_configure_prepend() { 35do_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}