linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] media_build: various kernel version fixes
@ 2018-04-26 17:19 Brad Love
  2018-04-26 17:19 ` [PATCH 1/7] Disable VIDEO_ADV748X for kernels older than 4.8 Brad Love
                   ` (6 more replies)
  0 siblings, 7 replies; 24+ messages in thread
From: Brad Love @ 2018-04-26 17:19 UTC (permalink / raw)
  To: linux-media; +Cc: Brad Love

This first four patches in this set disables drivers which cannot
be compiled before a specific kernel revision.

To fix of_find_i2c_device_by_node|of_find_i2c_adapter_by_node in
kernels 3.5 to 3.11.x the correct header is included.

The frame_vector.c wildcard check also appears to be broken for me.
The check is changed from using relative patch to absolute path,
and verifying frame_vector.c is in the build dir (v4l/) instead
of in the linux/ directory.

Lastly, I have one new addition to contemplate. I maintain driver
packages for a lot of different kernel revisions on a lot of different
architectures and some times make_config_compat.pl incorrectly
enables backport options which cause build failure. Instead of
making the config check more complicated I propose creation and
inclusion of an empty config-mycompat.h, after config-compat.h is included
in compat.h, which would allow for overriding any options necessary
due to symbols/macros/etc already existing in the target kernel.
config-mycompat.h would be touched before make_config_compat.h is
called and deleted during distclean, allowing a builder to copy any
overrides into the header before starting the compilation process.
This would allow usage of the media_build system without having to
supply out of tree patches to correct the 'bad' options. If I
somehow missed this functionality a pointer to it would be lovely.


Brad Love (7):
  Disable VIDEO_ADV748X for kernels older than 4.8
  Disable additional drivers requiring gpio/consumer.h
  Disable DVBC8SECTPFE for kernels older than 3.5
  Disable SOC_CAMERA for kernels older than 3.5
  Header location fix for 3.5.0 to 3.11.x
  Fix frame vector wildcard file check
  Add config-compat.h override config-mycompat.h

 v4l/Makefile     |  5 +++--
 v4l/compat.h     | 14 ++++++++++++++
 v4l/versions.txt | 18 ++++++++++++++++--
 3 files changed, 33 insertions(+), 4 deletions(-)

-- 
2.7.4

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

end of thread, other threads:[~2018-05-13  7:49 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-26 17:19 [PATCH 0/7] media_build: various kernel version fixes Brad Love
2018-04-26 17:19 ` [PATCH 1/7] Disable VIDEO_ADV748X for kernels older than 4.8 Brad Love
2018-04-26 17:19 ` [PATCH 2/7] Disable additional drivers requiring gpio/consumer.h Brad Love
2018-05-12  9:31   ` Jasmin J.
2018-05-12 13:20     ` Brad Love
2018-05-12 15:36       ` Brad Love
2018-05-12 19:31         ` Jasmin J.
2018-04-26 17:19 ` [PATCH 3/7] Disable DVBC8SECTPFE for kernels older than 3.5 Brad Love
2018-04-26 17:19 ` [PATCH 4/7] Disable SOC_CAMERA " Brad Love
2018-04-26 17:19 ` [PATCH 5/7] Header location fix for 3.5.0 to 3.11.x Brad Love
2018-05-12 19:42   ` Jasmin J.
2018-05-12 22:46     ` Brad Love
2018-05-13  7:49       ` Jasmin J.
2018-04-26 17:19 ` [PATCH 6/7] Fix frame vector wildcard file check Brad Love
2018-05-11 14:35   ` Hans Verkuil
2018-04-26 17:19 ` [PATCH 7/7] Add config-compat.h override config-mycompat.h Brad Love
2018-05-11 14:41   ` Hans Verkuil
2018-05-11 15:08     ` Brad Love
2018-05-11 15:11       ` Hans Verkuil
2018-05-11 15:23         ` Brad Love
2018-05-11 20:02       ` Jasmin J.
2018-05-11 20:38         ` Brad Love
2018-05-11 21:43           ` Jasmin J.
2018-05-11 21:48             ` Brad Love

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).