From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-lb0-f176.google.com ([209.85.217.176]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1UctOW-0004xP-NC for ptxdist@pengutronix.de; Thu, 16 May 2013 10:18:38 +0200 Received: by mail-lb0-f176.google.com with SMTP id x10so2797411lbi.21 for ; Thu, 16 May 2013 01:18:30 -0700 (PDT) MIME-Version: 1.0 Date: Thu, 16 May 2013 10:18:30 +0200 Message-ID: From: Pascal K Subject: [ptxdist] Building compat-drivers 3.9-rc4-2 into older Kernel 3.2 Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1364930651==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============1364930651== Content-Type: multipart/alternative; boundary=089e01228d68f40b6804dcd182ad --089e01228d68f40b6804dcd182ad Content-Type: text/plain; charset=ISO-8859-1 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 --089e01228d68f40b6804dcd182ad Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello everybody,=A0

I am trying t= o build the compat-drivers 3.9-rc4-2 to get a Marvell mwifiex driver from t= he later Linux Kernels into my old 3.2 Kernel. I'm running into some qu= estions, 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 loc= al_src folder and unzipped it there.=A0

started creating a *.in and make file throu= gh=A0

-> ptxdist newpackage linux-s= rc-driver

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

-> ptxdist menuconfig=A0

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.=A0

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

Thanks in advance,=A0
Pascal=A0
=





## SECTION=3Dproject_specific

config COMPATDRIVER
tristate
select KERNEL
prompt "compat= driver"
h= elp
=A0FIXME<= /div>
-> compatdriver.make
# -*-makefile-*-
#
# Copyright (C) 2013 by <>
#
# See CREDI= TS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license condit= ions
# see the README file.
#

= #
# We provide this package
#
PACKAGES-$(PTXC= ONF_COMPATDRIVER) +=3D compatdriver

#
# Paths and names and versions
#<= /div>
COMPATDRIVER_VERSION <= /span>:=3D 3.9-rc4-2
COMPATDRIVER :=3D compatdriver-$(COMPATDRIVER_VERSION)
COMPATDRIVER_URL := =3D lndir://$(PTXDIST_WORKSPACE)/local_src/$(COMPATDRIVER)
COMPAT= DRIVER_DIR :=3D $(BUILDD= IR)/$(COMPATDRIVER)
COMPATDRIVER_LICENSE :=3D unknown

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

# -------------------------------------= ---------------------------------------
# Prepare
# ---= -------------------------------------------------------------------------

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

=
# --------------------------------------------------------------------= --------
# Compile
# ----------------------------------= ------------------------------------------

$(STATE= DIR)/compatdriver.compile:
@$(call targetinfo)=
$(KERNEL_PATH= ) $(KERNEL_ENV) $(MAKE) $(KERNEL_MAKEVARS) \
-C $(KERNEL_DIR) \
M=3D$(COMPATDRIVER= _DIR) \
modul= es
@$(call tou= ch)

# ----------------------------------------------------------= ------------------
# Install
# ------------------------= ----------------------------------------------------

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

# --= --------------------------------------------------------------------------<= /div>
# Target-Install
# -----------------------------------------= -----------------------------------

$(STATEDIR)/co= mpatdriver.targetinstall:
@$(call targetinfo)
$(KERNEL_PATH) $(KE= RNEL_ENV) $(MAKE) $(KERNEL_MAKEVARS) \
-C $(KERNEL_DIR) \
M=3D$(COMPATDRIVER_DIR) \
modules_install
@$(call touch)

# -------------------------------------------------= ---------------------------
# Clean
# --------------------------------------------------= --------------------------

#$(STATEDIR)/compatdriv= er.clean:
# @$(= call targetinfo)
# @$(call clean_pkg,= COMPATDRIVER)

# vim: syntax=3Dmake


--089e01228d68f40b6804dcd182ad-- --===============1364930651== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1364930651==--