Hello everybody, 

I am trying to build the compat-drivers 3.9-rc4-2 to get a Marvell mwifiex driver from the later Linux Kernels into my old 3.2 Kernel. I'm running into some questions, which the PTXdist guru guide and the AppNote_kernel-driver (seems outdated) documentation doesn't resolve.

I downloaded the compat-drivers (http:drvbp1.linux-foundation.org/~mcgrof/rel-html/compat-drivers/) to my local_src folder and unzipped it there. 

started creating a *.in and make file through 

-> ptxdist newpackage linux-src-driver

added the information in the new files created in /rules/  as you can see in the lines at the bottom of this email. Then I called 

-> ptxdist menuconfig 

and activated the new menu entry. But now I don't know what else I have to configure to get the drivers to get compiled into my kernel. 

1) Which files do I have to touch next?  
2) Why is there a suggestion to add an entry to the menuconfig if I try to add a newer driver for my kernel?

Thanks in advance, 
Pascal 





-> compatdriver.in

## SECTION=project_specific

config COMPATDRIVER
tristate
select KERNEL
prompt "compatdriver"
help
 FIXME
-> compatdriver.make
# -*-makefile-*-
#
# Copyright (C) 2013 by <>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_COMPATDRIVER) += compatdriver

#
# Paths and names and versions
#
COMPATDRIVER_VERSION := 3.9-rc4-2
COMPATDRIVER := compatdriver-$(COMPATDRIVER_VERSION)
COMPATDRIVER_URL := lndir://$(PTXDIST_WORKSPACE)/local_src/$(COMPATDRIVER)
COMPATDRIVER_DIR := $(BUILDDIR)/$(COMPATDRIVER)
COMPATDRIVER_LICENSE := unknown

ifdef PTXCONF_COMPATDRIVER
$(STATEDIR)/kernel.targetinstall.post: $(STATEDIR)/compatdriver.targetinstall
endif

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

$(STATEDIR)/compatdriver.prepare:
@$(call targetinfo)
@$(call touch)

# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------

$(STATEDIR)/compatdriver.compile:
@$(call targetinfo)
$(KERNEL_PATH) $(KERNEL_ENV) $(MAKE) $(KERNEL_MAKEVARS) \
-C $(KERNEL_DIR) \
M=$(COMPATDRIVER_DIR) \
modules
@$(call touch)

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------

$(STATEDIR)/compatdriver.install:
@$(call targetinfo)
@$(call touch)

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/compatdriver.targetinstall:
@$(call targetinfo)
$(KERNEL_PATH) $(KERNEL_ENV) $(MAKE) $(KERNEL_MAKEVARS) \
-C $(KERNEL_DIR) \
M=$(COMPATDRIVER_DIR) \
modules_install
@$(call touch)

# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------

#$(STATEDIR)/compatdriver.clean:
# @$(call targetinfo)
# @$(call clean_pkg, COMPATDRIVER)

# vim: syntax=make