Adding package that builds Kernel Module (*.ko) to Buildroot environment
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110803/734bc49f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 1577 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110803/734bc49f/attachment-0001.jpg>
Quoted 1 line · Aleksandar Zivkovic
Could you please re-send as plain text without the image attachments?
Mike
Quoted 1 line
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Hi Aleksandar,
Quoted 8 lines · Aleksandar Zivkovic
Hi all,
I would like to add additional package to Buildroot that will build Linux kernel driver. For that I need:
- dependency: build of this package mustn't be started before kernel source is available
- kernel source directory: currently, the best I know is: $(BASE_DIR)/build/linux-$(BR2_LINUX_KERNEL_VERSION)
Quoted 4 lines
I started with package approach but bumped to stated dependency problem. Next what I tried is to edit
linux/linux.mkto include my driver source download, extract. build and install but not so familiar with Buildroot scripting...Did somebody already done something similar? What is best approach? Examples are welcomed...
The following mail shows the approach I am using.
http://lists.busybox.net/pipermail/buildroot/2011-July/044690.html
In my case, the kernel sources come from a Mercurial repository, but these settings are easily changeable as the Makefile uses the generic package infrastructure.
Best regards,
Thomas