Wind River Support Network

HomeDefectsLIN1018-5714
Fixed

LIN1018-5714 : incorrect Makefile.build in LTS18 SDK

Created: Feb 11, 2020    Updated: Apr 17, 2020
Resolved Date: Apr 9, 2020
Previous ID: LINCCM-5792
Found In Version: 10.18.44.10
Fix Version: 10.18.44.16
Severity: Standard
Applicable for: Wind River Linux LTS 18
Component/s: BSP, Toolchain

Description

The problem occurs while building modules with the SDK or eSDK. 
 The Makefile.build file located under the kernel scripts directory looks incorrect (Under sysroots/armv7at2hf-neon-wrs-linux-gnueabi/usr/src/kernel/scripts).

Using "shipped" objects in order to build kernel modules (see [https://stackoverflow.com/questions/18396428/how-to-use-shipped-in-kernel-module-makefile] for a few infos).

Workaround

As a workaround the Makefile.build file from WRL9 is used.

Steps to Reproduce

Make a WRL LTS18 xilinx-zynq based project and build the SDK. Please see the "Steps to reproduce" from LINCCM-5791.

Please follow this test case based on the attached files:
 modules_test.zip = a small module, change KBUILD in the Makefile and then use "make" to see the problem
 log_failed.txt = log with error
 log_ok.txt = log if the Makefile.build from WRL9 is used
 Makefile = one file you can use to generate the obj_my_timer.o_shipped if you want (not needed for the test, you can use the one provided)

Note : obj_my_timer.o_shipped is a "shipped" object
 If you want to generate it you can use the Makeifle provided separately (change the KBUILD line also) then you can copy my_timer.o to obj_my_timer.o_shipped.

The problem is with the line "echo "suppress warning" > .$(PRE_COMPILED_OBJ).cmd" in module_test/Makefile

The error is "missing separator" in log_failed.txt file
 /home/dlesmann/module_test/.obj_my_timer.o.cmd:1: *** missing separator. Stop.

 
Live chat
Online