ashray K

Cross Compilation in MPC8313RDB

Discussion created by ashray K on Nov 17, 2007
Latest reply on Nov 20, 2007 by ashray K
Hi,

 I am trying to build an Kernel module for MPC8313RDB on a suse machine. When I ran the make it did not generate .ko file (kernel module) and this does not give any kind of error or warning messages. I am not able to find where the error is or where I am going wrong. can some one please help me resolve this issue.

MY computer OS: Suse 10.3 with 2.6.18 kernel
My Board OS: Linux with 2.6.20 kernel

The makefile has:

    KERNELDIR := /Board/ltib-mpc8313erdb-20070824/rootfs/lib/modules/2.6.20/build
    PWD := $(shell pwd)

default:
    $(MAKE) -C $(KERNELDIR) M=$(PWD) modules

On running make command I see this:

(none):/Board/ltib-mpc8313erdb-20070824/rpm/BUILD/linux-2.6.20/driver # make
make -C /Board/ltib-mpc8313erdb-20070824/rootfs/lib/modules/2.6.20/build M=/Board/ltib-mpc8313erdb-20070824/rpm/BUILD/linux-2.6.20/driver modules
make[1]: Entering directory `/Board/ltib-mpc8313erdb-20070824/rpm/BUILD/linux-2.6.20'
  Building modules, stage 2.
  MODPOST 0 modules
make[1]: Leaving directory `/Board/ltib-mpc8313erdb-20070824/rpm/BUILD/linux-2.6.20'
(none):/Board/ltib-mpc8313erdb-20070824/rpm/BUILD/linux-2.6.20/driver #

Thanks,
Ak

Outcomes