From: Deepak R Varma <mh12gx2825@gmail.com>
To: Matthew Wilcox <willy@infradead.org>
Cc: Julia Lawall <julia.lawall@inria.fr>, outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] Need help building a driver: mt7621-pci
Date: Tue, 20 Oct 2020 17:22:29 +0530 [thread overview]
Message-ID: <20201020115229.GA137232@ubuntu204> (raw)
In-Reply-To: <20201020113222.GA20115@casper.infradead.org>
On Tue, Oct 20, 2020 at 12:32:22PM +0100, Matthew Wilcox wrote:
> On Tue, Oct 20, 2020 at 09:08:36AM +0530, Deepak R Varma wrote:
> > On Mon, Oct 19, 2020 at 08:18:03PM +0100, Matthew Wilcox wrote:
> > > It's useful for drivers to build on all architectures by depending
> > > on COMPILE_TEST. You will probably have to provide a lot of dummy
> > > interfaces; the only requirement is that the code build, not work,
> > > since it almost certainly needs to access hardware that only exists on
> > > the Mediatek platform.
> >
> > Thank you. Tried a couple of times with different selections however,
> > not able to get across this error:
> >
> > make[4]: *** No rule to make target
> > 'drivers/staging/mt7621-pci/pci-mt7621.o'. Stop.
> > make[3]: *** [scripts/Makefile.build:475: __build] Error 2
> > make[2]: *** [scripts/Makefile.build:500: drivers/staging] Error 2
> > make[1]: *** [Makefile:1777: drivers] Error 2
> > make: *** [Makefile:335: __build_one_by_one] Error 2
> >
> > It looks like a generic error message and lot of possibilities while I
> > try to explore it myself. Any quick suggestion on what is wrong will
> > be time saving.
>
> You need to go to the Kconfig file and change:
>
> - depends on RALINK
> + depends on RALINK || COMPILE_TEST
>
> Then you'll need to add dummy definitions of various things to make it
> build. Commit 171a9bae68c72f2d1260c3825203760856e6793b shows me doing
> horrible things to the Octeon driver to make it build on any platform.
> It's a mixture of adding structs that I copied from elsewhere and
> making random #defines. There's no hard-and-fast rule about how to make
> things build for COMPILE_TEST, you're just trying to make things build
> so that changes across the tree (eg to common APIs) get picked up by
> the build bots.
This is really very useful information. I will definitely attempt this
once I am done with the current patch work on a different driver.
Thank you very much Matthew.
Deepak.
prev parent reply other threads:[~2020-10-20 11:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-19 16:20 Need help building a driver: mt7621-pci Deepak R Varma
2020-10-19 17:01 ` [Outreachy kernel] " Julia Lawall
2020-10-19 17:17 ` Deepak R Varma
2020-10-19 19:18 ` Matthew Wilcox
2020-10-20 3:38 ` Deepak R Varma
2020-10-20 11:32 ` Matthew Wilcox
2020-10-20 11:52 ` Deepak R Varma [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201020115229.GA137232@ubuntu204 \
--to=mh12gx2825@gmail.com \
--cc=julia.lawall@inria.fr \
--cc=outreachy-kernel@googlegroups.com \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.