Issue in kernel-2.6.32 under Ubuntu 16.04.2 x64

Condition:

Linux version: Linux tvm 4.10.0-27-generic #30~16.04.2-Ubuntu SMP Thu Jun 29 16:07:46 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Issue:

TIMEC kernel/timeconst.h
/home/test/Documents/xxx/kernel/kernel-2.6.32-xxx/kernel/Makefile:129: recipe for target ‘kernel/timeconst.h’ failed
/home/test/Documents/xxx/kernel/kernel-2.6.32-xxx/Makefile:878: recipe for target ‘kernel’ failed
Makefile:120: recipe for target ‘sub-make’ failed
make[1]: Leaving directory ‘/home/test/Documents/xxx/kernel/kernel-2.6.32-xxx’
/home/test/Documents/xxx/public/makefiles/kernel.mk:172: recipe for target ‘kernel’ failed

Solution:

Remove “defined()” and leave “@val” in the line of 373.

Example:

if (!@val) { if (!@val) { // Line:373 “!defined(@val)” –>> “!@val”

@val = compute_values($hz);

}

output($hz, @val);