I've added the following to ./package/kernel/modules/block.mk
define KernelPackage/ahci
TITLE:=AHCI SATA support
DESCRIPTION:=Kernel module for AHCI Serial ATA
KCONFIG:=$(CONFIG_SATA_AHCI)
SUBMENU:=$(BLMENU)
AUTOLOAD:=$(call AutoLoad,30,scsi_mod libata sd_mod ahci)
FILES:=$(MODULES_DIR)/kernel/drivers/ata/ahci.$(LINUX_KMOD_SUFFIX)
DEPENDS:=+kmod-libata +kmod-ide-core +kmod-scsi-core
endef
$(eval $(call KernelPackage,ahci))
after looking through ./build_i386/linux/drivers/ata/Kconfig and ./build_i386/linux/drivers/ata/Makefile
But this doesnt seem to do the trick. It merely breaks things as such when running make menuconfig:
Collecting target info: merging...
Collecting target info: done
Collecting package info: package/kernelmodules/block.mk:23: *** missing `endef', unterminated `define'. Stop.
ERROR: please fix package/kernel/Makefile
Collecting package info: merging...
Collecting package info: donetmp/.config-target.in:322:warning: 'select' used by config symbol 'LINUX_2_6_ADM5120_Atheros' refer to undefined symbol 'DEFAULT_kmod-ipt-nathelper'
tmp/.config-target.in:342:warning: 'select' used by config symbol 'LINUX_2_6_ADM5120_Texas' refer to undefined symbol 'DEFAULT_kmod-ipt-nathelper'
tmp/.config-target.in:361:warning: 'select' used by config symbol 'LINUX_2_6_ADM5120_None' refer to undefined symbol 'DEFAULT_kmod-ipt-nathelper'
<SNIP>
.config:1322:warning: trying to assign nonexistent symbol PACKAGE_kmod-net-prism54
.config:1323:warning: trying to assign nonexistent symbol PACKAGE_kmod-net-zd1211rw
Your configuration changes were NOT saved.
So I figure there is more to it; searching for ata_piix files I find several files under ./build_i386/linux-2.6-x86/packages/
and creates a kmod-ahci, using any files referencing ata_piix as a skelekton. But after finding ata_piix.ko in ./build_i386/linux-2.6-x86/packages/ipkg/kmod-ata-piix/lib/modules/2.6.19.2/ I kind of realised this was generated by the build process...
So, I'm basically wondering which files I need to be looking at. I've mostly been a FreeBSD guy and I'm more or less new to linux and buildroot, so please just point me in the right direction!
I've built the module (and the md/raid stuff) using make kernel_menuconfig and then make, mounted the image and copied them across and it works, but it would be nice to add it, in a, neater, way if you like - and to contribute the changes back ofcourse.
regards,
Bjørn