Wind River Support Network

HomeDefectsLIN1021-85
Acknowledged

LIN1021-85 : Makefile build warnings on target 'modules.order' of kernel module building

Created: May 17, 2021    Updated: Jun 8, 2021
Found In Version: 10.21.20.1
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: Build & Config, Kernel

Description

1. Create project

setup.sh --machines=qemux86-64 --layers=wrlinux-kernel-dev --templates=feature/kernel-dev --dl-layers --accept-eula=yes && source environment-setup-x86_64-wrlinuxsdk-linux && source oe-init-build-env buil
 # update ../layers/wrlinux-kernel-dev/recipes-kernel/linux-libc-headers/linux-libc-headers-custom.bb, uncomment lines
 # LINUX_VERSION = "4.19-rc7"
 #KSRC_linux_libc_headers_custom = "${THISDIR}/../../../git/linux-yocto-dev.git"

 # update ../layers/wrlinux-kernel-dev/recipes-kernel/linux/linux-yocto-custom.bb, uncomment lines
 #SRC_URI = "git://${LAYER_PATH_wrlinux}/git/linux-yocto-dev.git;protocol=file;branch=standard/base;name=machine"
 #LINUX_VERSION ?= "4.19-rc8"

 # add kernel-devsrc
 $ echo 'IMAGE_INSTALL_append += "kernel-devsrc"' >>conf/local.conf

2. Build project
 $ bitake -c populate_sdk wrlinux-image-std

3. Extract sdk and build kernel module 
 make scripts_prepare

 

make -C $KSRC $KOPT modules
 make -C /.../prebuiltsdks/wrlinux-qemuarm64-small-10.21-sdk/sysroots/cortexa57-wrs-linux/usr/src/kernel modules_prepare
 make[2]: Entering directory '/..../prebuiltsdks/wrlinux-qemuarm64-small-10.21-sdk/sysroots/cortexa57-wrs-linux/lib/modules/5.10.25-yocto-standard/build'
 scripts/Makefile.build:414: warning: overriding recipe for target 'modules.order'
 Makefile:1418: warning: ignoring old recipe for target 'modules.order'

This will also be reported on workbench example building.

Steps to Reproduce

1. Create project 
$ setup.sh --machines=qemux86-64 --layers=wrlinux-kernel-dev --templates=feature/kernel-dev --dl-layers --accept-eula=yes && source environment-setup-x86_64-wrlinuxsdk-linux && source oe-init-build-env build

# refer to LINCD-4607
# update ../layers/wrlinux-kernel-dev/recipes-kernel/linux-libc-headers/linux-libc-headers-custom.bb, uncomment lines
# LINUX_VERSION = "4.19-rc7"
#KSRC_linux_libc_headers_custom = "${THISDIR}/../../../git/linux-yocto-dev.git"

# update ../layers/wrlinux-kernel-dev/recipes-kernel/linux/linux-yocto-custom.bb, uncomment lines
#SRC_URI = "git://${LAYER_PATH_wrlinux}/git/linux-yocto-dev.git;protocol=file;branch=standard/base;name=machine"
#LINUX_VERSION ?= "4.19-rc8"

# add kernel-devsrc
$ echo 'IMAGE_INSTALL_append += "kernel-devsrc"' >>conf/local.conf

2. Build project
 $ bitake -c populate_sdk wrlinux-image-std

3. Extract sdk and build kernel module 
  make scripts_prepare
Live chat
Online