root@vmware:~# make -C $KERNELDIR M=/root/moduledebug_3 modules make: Entering directory '/usr/src/kernel' CC [M] /root/moduledebug_3/moduledebug.o /bin/sh: /usr/src/kernel/scripts/recordmcount: No such file or directory scripts/Makefile.build:308: recipe for target '/root/moduledebug_3/moduledebug.o' failed make[1]: *** [/root/moduledebug_3/moduledebug.o] Error 1 Makefile:1280: recipe for target '_module_/root/moduledebug_3' failed make: *** [_module_/root/moduledebug_3] Error 2 make: Leaving directory '/usr/src/kernel' root@vmware:~#
/net/pek-lpgtest9.wrs.com/buildarea1/xxxxx/WRL7/product_install/wrlinux-7/wrlinux/configure --enable-board=intel-x86-64 --enable-kernel=standard --enable-rootfs=glibc-std --enable-jobs=24 --enable-parallel-pkgbuilds=24 --enable-reconfig=yes --with-template=feature/target-toolchain --with-package=kernel-devsrc --with-rcpl-version=0 Make Install OS on target. Copy kernel module srouce code $WRLinux7_Install_Path/samples/moduledebug_3 to target /root/moduledebug_3. Target: >>> KERNELDIR=/usr/src/kernel/ >>>make -C $KERNELDIR M=/root/moduledebug_3 modules