linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RFC: cross-building crda
@ 2009-06-11 15:21 Jon Loeliger
  2009-06-11 22:51 ` Pavel Roskin
  0 siblings, 1 reply; 3+ messages in thread
From: Jon Loeliger @ 2009-06-11 15:21 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-wireless@vger.kernel.org

John,

I'd like to propose a few changes to the CRDA Makefile
to allow better cross compilation support, and would
like to get your suggestion/approval/recommendation on
an overall approach before I get to far into it.

First, the easy change would be to allow some local
customization by adding "-include .config" as the first
line of the Makefile in the same style as the iw Makefile.

Second, in CRDA's Makefile, the "verify" step that builds
and uses regdbdump is really a host build and operation.
The regdbdump tool might then also be (re-)built as a target
tool and installed on the target as well.

So I'm proposing to introduce a two-layer build where the
top-level Makefile will introduce a "host/" and a "target/"
sub-directory build for each environment.  If the build
is not a cross-build, no "target/" build happens and it
all gets built in "host/" only.  The C files and sources
all stay in the current top-level directory, and will be
referenced and built into the host/ and target/ through
Makefile fidgery sub-directories.

Things like the CFLAGS and LDLIBS will have dual host
and target specific variants built-up and used in their
respective sub-driectories, all driven by the top-level
Makefile still.

Stylistically, would folks prefer
    1) three separate Makefiles in the top-, host/ and
       target/ directories, non-inclusively doing sub-make
       requests (ie, "make -C host/ all"),
    2) three Makefile components that all get "included"
       into the top-level Makefile without doing sub-make
       build requests,
or
    3) Just one top-level Makefile that hard-codes and
       builds targets directly into the sub-dirs?

Thoughts?

Thanks,
jdl



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-12 21:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-11 15:21 RFC: cross-building crda Jon Loeliger
2009-06-11 22:51 ` Pavel Roskin
2009-06-12 21:37   ` Jon Loeliger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).