Thank for your answer. This are the steps I have followed:
1. I have reinstall sdk 1.8 freescale in my PC.
2. I typed ./poky/scripts/host-prepare.sh
3. I typed source ./poky/fsl-setup-poky -m t2080rdb
4. I typed . /home/user/QorIQ-SDK-V1.8-20150619-yocto/build_t2080rdb_release/SOURCE_THIS
5. I typed bitbake -c menuconfig virtual/kernel and safe ".conf"
6. I typed bitbake -c compile -f virtual/kernel
7. I typed bitbake virtual/kernel
With those steps I haved the compiled kernel (no headers) in ../build_t2080rdb_release/tmp/deploy/images/t2080rdb/
Afterward, I came back to /home/user/build_t2080rdb_release.
8. I typed bitbake fsl-image-full
After a while, I get in the next directory : /home/user/QorIQ-SDK-V1.8-20150619-yocto/build_t2080rdb_release/tmp/deploy/images/t2080rdb/. I can find a root file system called "fsl-image-full-t2080rdb-20150907191330.rootfs.tar.gz". This is the root file system which is going to be in the t2080rdb.
After follow this steps, I cannot find the following directories: /usr/src/header<version>/ or /lib/modules/$(shell uname -r)/build
Without this directory(usr/src/header<version> in ubuntu) or the soft link (/lib/modules/$(shell uname -r)/build) is not possible to compile a module in the target ( in the T2080rdb). What am I doing wrong? I want to compile in the target. If it is not possible, I would like to compile in the host, but I don't know how to do it.
I am using the next Makefile which works in ubuntu for example:
ifneq ($(KERNELRELEASE),)
# kbuild part of makefile
obj-m :=new14.o
else
# normal makefile
KDIR ?= /lib/modules/`uname -r`/build
default:
$(MAKE) -C $(KDIR) M=$$PWD
endif
Thanks.