rtl driver compille

I'm trying to build a module for beagleboard xm for WiFi rtl8192cu on
ubuntu machine, but compile fails with the following
error.

CC [M] /opt/rtl/os_dep/linux/os_intfs.o
  CC [M] /opt/rtl/os_dep/linux/usb_intf.o
  CC [M] /opt/rtl/os_dep/linux/ioctl_linux.o
  CC [M] /opt/rtl/os_dep/linux/xmit_linux.o
  CC [M] /opt/rtl/os_dep/linux/mlme_linux.o
  CC [M] /opt/rtl/os_dep/linux/recv_linux.o
  LD [M] /opt/rtl/8192cu.o
  Building modules, stage 2.
  MODPOST 1 modules
/bin/sh: scripts/mod/modpost: Нет такого файла или каталога
make[2]: *** [__modpost] Ошибка 127
make[1]: *** [modules] Ошибка 2
make[1]: Выход из каталога `/home/park/setup-scripts/build/tmp-
angstrom_2011_x-eglibc/sysroots/beagleboard/kernel'
make: *** [modules] Ошибка 2

According to the manual http://www.angstrom-distribution.org/building-angstrom
I received virtual / kernel and systemd-gnome-image.
This directory does not have a file modpost. There modpost.h,
modpost.c and others. Does anyone know how to get it?

I'm trying to build a module for beagleboard xm for WiFi rtl8192cu on
ubuntu machine, but compile fails with the following
error.

CC [M] /opt/rtl/os_dep/linux/os_intfs.o
  CC [M] /opt/rtl/os_dep/linux/usb_intf.o
  CC [M] /opt/rtl/os_dep/linux/ioctl_linux.o
  CC [M] /opt/rtl/os_dep/linux/xmit_linux.o
  CC [M] /opt/rtl/os_dep/linux/mlme_linux.o
  CC [M] /opt/rtl/os_dep/linux/recv_linux.o
  LD [M] /opt/rtl/8192cu.o
  Building modules, stage 2.
  MODPOST 1 modules
/bin/sh: scripts/mod/modpost: No such file or directory
make[2]: *** [__modpost] Error 127
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/park/setup-scripts/build/tmp-
angstrom_2011_x-eglibc/sysroots/beagleboard/kernel'
make: *** [modules] Error 2

does this help ?

http://embeddedgeeks.wordpress.com/2012/01/03/belkin-micro-wifi-usb-dongle-on-the-beagleboard/

Ayoub Zaki

Thanks for help.
I tried to do as it says but my directory
'/home/park/setup-scripts/build/tmp-angstrom_2011_x-eglibc/work/
beagleboard-angstrom-linux-gnueabi/linux-3.0.17-r115b/git' is empty

Thanks for help.
I tried to do as it says but my directory
'/home/park/setup-scripts/build/tmp-angstrom_2011_x-eglibc/work/
beagleboard-angstrom-linux-gnueabi/linux-3.0.17-r115b/git' is empty

Try removing this line from conf/local.conf
   INHERIT += "rm_work"

Then rebuild your kernel
   % bitbake virtual/kernel -c cleansstate
   % bitbake virtual/kernel

Then you should be able to build the module/package you are having trouble with