Skip to contentSkip to conversation

Adding package that builds Kernel Module (*.ko) to Buildroot environment

Buildroot Aleksandar Zivkovic 3 participants 3 messages Aug 3, 2011 – Aug 4, 2011

lore
Share & tools
lore
#1 lore raw
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">

#2 lore raw
In reply to Aleksandar Zivkovic

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.mk to 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