Being able to target a single platform to reduce the driver size has been voiced a few times. These patches provide a Kconfig option to provide the opportunity. Let's start small, and, along side the generic "Multi-platform" option, only present Haswell and Broadwell in the list of platforms to choose from. When selecting any of those those two platforms, (S)DVO and MIPI DSI code is not compiled. The driver .text size is reduced by 67Kb (8.8%) when selecting HSW/BDW. If the approach convinces, I'll do more. -- Damien Damien Lespiau (2): drm/i915: Provide a config option to select a target platform drm/i915: Don't compile the MIPI DSI code on HSW/BDW drivers/gpu/drm/i915/Kconfig | 29 +++++++++++++++++++++++++++++ drivers/gpu/drm/i915/Makefile | 26 +++++++++++++------------- drivers/gpu/drm/i915/intel_drv.h | 16 ++++++++++++++++ 3 files changed, 58 insertions(+), 13 deletions(-) -- 1.8.3.1 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx