diff options
| -rw-r--r-- | meta/recipes-kernel/linux/kernel-devsrc.bb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb index 2872f17a3f..1557c276bb 100644 --- a/meta/recipes-kernel/linux/kernel-devsrc.bb +++ b/meta/recipes-kernel/linux/kernel-devsrc.bb | |||
| @@ -46,6 +46,14 @@ do_install() { | |||
| 46 | cd ${S} | 46 | cd ${S} |
| 47 | find . -type d -name '.git*' -prune -o -type f -print0 | cpio --null -pdlu $kerneldir | 47 | find . -type d -name '.git*' -prune -o -type f -print0 | cpio --null -pdlu $kerneldir |
| 48 | oe_runmake -C $kerneldir CC="${KERNEL_CC}" LD="${KERNEL_LD}" clean _mrproper_scripts | 48 | oe_runmake -C $kerneldir CC="${KERNEL_CC}" LD="${KERNEL_LD}" clean _mrproper_scripts |
| 49 | |||
| 50 | # As of Linux kernel version 3.0.1, the clean target removes | ||
| 51 | # arch/powerpc/lib/crtsavres.o which is present in | ||
| 52 | # KBUILD_LDFLAGS_MODULE, making it required to build external modules. | ||
| 53 | if [ ${ARCH} = "powerpc" ]; then | ||
| 54 | mkdir -p $kerneldir/arch/powerpc/lib/ | ||
| 55 | cp ${S}/arch/powerpc/lib/crtsavres.o $kerneldir/arch/powerpc/lib/crtsavres.o | ||
| 56 | fi | ||
| 49 | } | 57 | } |
| 50 | 58 | ||
| 51 | PACKAGES = "kernel-devsrc" | 59 | PACKAGES = "kernel-devsrc" |
