Wind River Support Network


LIN5-18351 : Commit c3335092 removed files from include/drm, headers_install fail

Created: Mar 19, 2014    Updated: Dec 19, 2017
Resolved Date: May 6, 2014
Found In Version:
Fix Version:
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: BSP - Async, Kernel


Commit ID c3335092 removed files from the include/drm/ directory and moved them to include/uapi/drm This action does not seem to be appropriate for this kernel version. 
Wind River Linux 5 does not use the uapi separation, so the commit needs to be fixed to leave the header files in include/drm.

The side effect is that this change seems to break 'make headers_install' build rule.

commit c3335092c31a5eb2f489eda2acabd89aedf447c0
    add DRM/I915 support for Haswell

    those patches are picked from
    git:// linux-3.8.y
    the snapshot commit is:

    commit dbf932a9b316d5b29b3e220e5a30e7a165ad2992
    Author: Greg Kroah-Hartman <>
    Date:   Sat May 11 13:57:46 2013 -0700

        Linux 3.8.13

    Signed-off-by: fupan li <>


Creating the Kbuild file in the affected directory allows the make to continue:
$ touch include/drm/Kbuild

Steps to Reproduce

Try to export the kernel's header files in a form suitable for use by userspace programs. There are two ways to reproduce.
1. The way customer reproduced it their intel_xeon_core project:

$ cd build/linux-windriver-3.4-r0/linux
$ make O=../linux-intel-xeon-core-standard-build  INSTALL_HDR_PATH=/tmp/kernel_export headers_install
  CHK     include/linux/version.h
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `relocs'.
/opt/images/wrl5-projects/xeon-rcpl11/bitbake_build/tmp/work/intel_xeon_core-wrs-linux/linux-windriver-3.4-r0/linux/scripts/Makefile.headersinst:18: /opt/images/wrl5-projects/xeon-rcpl11/bitbake_build/tmp/work/intel_xeon_core-wrs-linux/linux-windriver-3.4-r0/linux/include/drm/Kbuild: No such file or directory
make[3]: *** No rule to make target `/opt/images/wrl5-projects/xeon-rcpl11/bitbake_build/tmp/work/intel_xeon_core-wrs-linux/linux-windriver-3.4-r0/linux/include/drm/Kbuild'.  Stop.
make[2]: *** [drm] Error 2
make[1]: *** [headers_install] Error 2
make: *** [sub-make] Error 2

2. The way we reproduced it here at WindRiver:

$configure --enable-kernel=standard --enable-board=intel_xeon_core --enable-rootfs=glibc_std  --with-layer=wr-kernel/kernel-dev  --with-template=feature/kernfeatures-clear
| xeon_core_std/bitbake_build/tmp/work/intel_xeon_core-wrs-linux/linux-windriver-3.4-r0/linux/scripts/Makefile.headersinst:18: xeon_core_std/bitbake_build/tmp/work/intel_xeon_core-wrs-linux/linux-windriver-3.4-r0/linux/include/drm/Kbuild: No such file or directory
| ERROR: Function failed: do_install (see xeon_core_std/bitbake_build/tmp/work/intel_xeon_core-wrs-linux/linux-windriver-3.4-r0/temp/do_install/log.do_install.14741 for further information)
ERROR: Task 260 (xeon_core_std/layers/wr-kernel/recipes-kernel/linux/, do_install) failed with exit code '1'

+++ Expected Result:  make command succeeds

+++ Actual Result: make command fails

Other Downloads

Live chat