mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Building compat-drivers 3.9-rc4-2 into older Kernel 3.2
@ 2013-05-16  8:18 Pascal K
  0 siblings, 0 replies; only message in thread
From: Pascal K @ 2013-05-16  8:18 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 3381 bytes --]

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/<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

[-- Attachment #1.2: Type: text/html, Size: 6345 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-05-16  8:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-16  8:18 [ptxdist] Building compat-drivers 3.9-rc4-2 into older Kernel 3.2 Pascal K

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox