From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Juergen Borleis Date: Thu, 21 Aug 2014 09:00:47 +0200 References: <53F45B32.6050009@pengutronix.de> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201408210900.47319.jbe@pengutronix.de> Subject: Re: [ptxdist] Using PTXDist to build out-of-tree drivers Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Cindy Gold Hi Cindy, On Wednesday 20 August 2014 18:30:57 Cindy Gold wrote: > Sorry, I guess I am not being clear. I have PTXdist installed here: > > /usr/local/lib/ptxdist-2013.12.0 > > Under that directory, there is indeed a "rules" sub-directory. > > The Application Note from this link: > > http://pengutronix.com/software/ptxdist/appnotes/AppNote_kernel_driver.pdf > > under the "Preparations" section says this: > > project$ cp /rules/templates/kernel/Makefile > local_src/module-template > > project$ cp /rules/templates/kernel/*.c > local_src/module-template Oh, yes indeed, it is outdated. > There is no sub-directory called "kernel" under the rules directory in my > directory /usr/local/lib/ptxdist-2013.12.0/rules. There are a variety of > other sub-directories but not one called "kernel". So, it would seem that > the documentation may perhaps be out of date. My questions are: > > --If the App Note is out of date, is there a newer version available? Seems I have to re-write it ;) Alternatively you can read the PTXdist Guru documentation [1], section 4.2. > -- If there is not a newer version available, then can you tell me what > should be updated? Here we go. Use this way instead: [jbe@host]> /usr/local/lib/ptxdist-2013.12.0/bin/ptxdist newpackage usage: 'ptxdist newpackage ', where type is: host create package for development host target create package for embedded target cross create cross development package klibc create package for initramfs built against klibc src-autoconf-lib create autotoolized library src-autoconf-prog create autotoolized binary src-autoconf-proglib create autotoolized binary+library src-cmake-prog create cmake binary src-qmake-prog create qmake binary src-linux-driver create a linux kernel driver src-make-prog create a plain makefile binary src-stellaris create stellaris firmware font create a font package file create package to install existing files kernel create package for an extra kernel barebox create package for an extra barebox image-tgz create package for a tgz image image-genimage create package for a genimage image [jbe@host]> /usr/local/lib/ptxdist-2013.12.0/bin/ptxdist newpackage src-lin= ux-driver ptxdist: creating a new 'src-linux-driver' package: ptxdist: enter package name...........: mydriver ptxdist: enter version number.........: 1 ptxdist: enter package author.........: Juergen Borleis ptxdist: enter package section........: project_specific generating rules/mydriver.make generating rules/mydriver.in local_src/mydriver-1 does not exist, create? [Y/n] Y ./ ./@name@.c ./wizard.sh ./Makefile Then enable this new package in your menuconfig, modify the file in "local_src/mydriver-1/mydriver.c", build your rootfs with "ptxdist go". Happy hacking, Juergen [1] http://www.pengutronix.de/oselas/bsp/pengutronix/download/OSELAS.BSP-Pe= ngutronix-Generic-arm-Quickstart.pdf -- = Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0| Juergen Borleis =A0 =A0 =A0 =A0 =A0 =A0 | Industrial Linux Solutions =A0 =A0 =A0| http://www.pengutroni= x.de/ | -- = ptxdist mailing list ptxdist@pengutronix.de