Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH 0/5] compat / compat-wireless: merge autoconf generation
@ 2012-02-25  1:52 Luis R. Rodriguez
  2012-02-25  1:52 ` [PATCH 1/5] compat: fix few compilations by adding compat_autoconf.h support Luis R. Rodriguez
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Luis R. Rodriguez @ 2012-02-25  1:52 UTC (permalink / raw)
  To: linux-wireless; +Cc: hauke, nbd, linville, Luis R. Rodriguez

From: Luis R. Rodriguez <mcgrof@frijolero.org>

While testing ckmake cross compiling compat through different kernels I
realized that compat was failing to build on some kernels but compat-wireless
was not. The reason for this turned out to be that compat did not have an
autoconf for the CONFIG_COMPAT_KERNEL_* variables. In order to make use
of a variable properly in code on kernel we need two things: a makefile
equivalent and a header file that defines it. The compat project had
only makefile variable generation while compat-wireless had makefile
variable generation with a *few* variables propagated to actual code.

To avoid issues with this any further I've decided to try merging the
autoconf effort for both projects and taking leads on what compat does
first.

compat then does the CONFIG_COMPAT_KERNEL_* trickery and generates a
clean .config for us. This in turn generates our compat's compat_autoconf.h.
The compat-wireless project leverages this work by dropping its own
Makefile hackery in favor of the same work and later also uses the same
.config to expand its own compat_autoconf.h.

John, I could use some extra help on reviewing the RHEL stuff. I'm going
to push this stuff out now to help with testing.

compat:

Luis R. Rodriguez (2):
  compat: fix few compilations by adding compat_autoconf.h support
  compat: add some initial RHEL support

 .gitignore                      |   10 ++++
 Makefile                        |   59 ++++++++++------------
 include/linux/compat_autoconf.h |   37 --------------
 scripts/gen-compat-autoconf.sh  |  105 +++++++++++++++++++++++++++++++++++++++
 scripts/gen-compat-config.sh    |   60 ++++++++++++++++++++++
 5 files changed, 201 insertions(+), 70 deletions(-)
 delete mode 100644 include/linux/compat_autoconf.h
 create mode 100755 scripts/gen-compat-autoconf.sh
 create mode 100755 scripts/gen-compat-config.sh

compat-wireless:

Luis R. Rodriguez (3):
  compat-wireless: fix old checks on KERNEL_SUBLEVEL
  compat-wireless: start using CONFIG_COMPAT_KERNEL_ in code
  compat-wireless: use compat's CONFIG_COMPAT_KERNEL_* variables
 Makefile                       |   22 ++++++++++++++++------
 config.mk                      |   24 ++++--------------------
 scripts/check_config.sh        |    9 +++++----
 scripts/gen-compat-autoconf.sh |   13 +++++++------
 4 files changed, 32 insertions(+), 36 deletions(-)

-- 
1.7.4.15.g7811d


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

end of thread, other threads:[~2012-02-27 21:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-25  1:52 [PATCH 0/5] compat / compat-wireless: merge autoconf generation Luis R. Rodriguez
2012-02-25  1:52 ` [PATCH 1/5] compat: fix few compilations by adding compat_autoconf.h support Luis R. Rodriguez
2012-02-25  1:52 ` [PATCH 2/5] compat: add some initial RHEL support Luis R. Rodriguez
2012-02-25  1:52 ` [PATCH 3/5] compat-wireless: fix old checks on KERNEL_SUBLEVEL Luis R. Rodriguez
2012-02-25  1:52 ` [PATCH 4/5] compat-wireless: start using CONFIG_COMPAT_KERNEL_ in code Luis R. Rodriguez
2012-02-25  1:52 ` [PATCH 5/5] compat-wireless: use compat's CONFIG_COMPAT_KERNEL_* variables Luis R. Rodriguez
2012-02-25 11:05 ` [PATCH 0/5] compat / compat-wireless: merge autoconf generation Hauke Mehrtens
2012-02-27 21:18   ` Luis R. Rodriguez

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