Hi all, I'm building a xenomai-based project with Yocto and I want to compile kernel modules on the target system for development and testing purposes. It's easier then running bitbake all the time.
Now in order to build kernel modules on the target, I included kernel-dev in my packages and the kernel headers and build scripts are copied as expected into /usr/src/kernel. The problem is, that xenomai adds kernel code with a script called "prepare-kernel.sh" before building the kernel. It does that by creating a bunch of symlinks in the kernel tree pointing to the actual code. I run this script in my own kernel recipe before configuration. When yocto now creates the kernel-dev pakcage, it doesn't follow the symlinks but copies the symlinks instead of the files itself which of course break in the target rootfs. Any idea how I could approach to fix this? Thanks, - Andy Here is an example of how it looks: > root@copter-microzed-xenomai:~# ls -l /usr/src/kernel/arch/arm/xenomai > total 16 > lrwxrwxrwx 1 root root 217 Jan 13 14:03 Kconfig -> > /home/andy/Desktop/Autocopter/work/yocto/build/tmp-eglibc/work/copter_microzed_xenomai-oe-linux-gnueabi/linux-xenomai-xlnx/3.14-xilinx+gitc0292a5c3919cf777f9d21202e022c99ce255b8f-r0/xenomai-2.6.4/ksrc/arch/arm/Kconfig > lrwxrwxrwx 1 root root 218 Jan 13 14:03 Makefile -> > /home/andy/Desktop/Autocopter/work/yocto/build/tmp-eglibc/work/copter_microzed_xenomai-oe-linux-gnueabi/linux-xenomai-xlnx/3.14-xilinx+gitc0292a5c3919cf777f9d21202e022c99ce255b8f-r0/xenomai-2.6.4/ksrc/arch/arm/Makefile > lrwxrwxrwx 1 root root 215 Jan 13 14:03 hal.c -> > /home/andy/Desktop/Autocopter/work/yocto/build/tmp-eglibc/work/copter_microzed_xenomai-oe-linux-gnueabi/linux-xenomai-xlnx/3.14-xilinx+gitc0292a5c3919cf777f9d21202e022c99ce255b8f-r0/xenomai-2.6.4/ksrc/arch/arm/hal.c > lrwxrwxrwx 1 root root 218 Jan 13 14:03 switch.S -> > /home/andy/Desktop/Autocopter/work/yocto/build/tmp-eglibc/work/copter_microzed_xenomai-oe-linux-gnueabi/linux-xenomai-xlnx/3.14-xilinx+gitc0292a5c3919cf777f9d21202e022c99ce255b8f-r0/xenomai-2.6.4/ksrc/arch/arm/switch.S -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto