kconfig/build question..

From: Dave Airlie (airlied_at_linux.ie)
Date: 11/10/04

  • Next message: Adrian Bunk: "[2.6 patch] drivers/acpi: #ifdef unused functions away"
    Date:	Wed, 10 Nov 2004 01:16:10 +0000 (GMT)
    To: linux-kernel@vger.kernel.org
    
    

    I've come across something that I'm not sure Kconfig can do but I'll
    explain what I need and see what others can come up with...

    The DRM has a weak dependency on AGP, it does not require AGP for all
    situations but can use it in most...

    So what I want to do and what I think Kbuild can't do is:

    if CONFIG_AGP=n then CONFIG_DRM can be n,m,y
    if CONFIG_AGP=m then CONFIG_DRM can be m but not y
    if CONFIG_AGP=y then CONFIG_DRM can be m,y

    This also needs to work for oldconfigs if it can be enforced, so someone
    who has a valid config now of CONFIG_AGP=m, CONFIG_DRM=y will be
    questioned...

    I'm thinking I could change the name of CONFIG_DRM to CONFIG_DRM_CORE and
    just use the default rules, if the worst comes to the worst...

    Dave.

    -- 
    David Airlie, Software Engineer
    http://www.skynet.ie/~airlied / airlied at skynet.ie
    pam_smb / Linux DECstation / Linux VAX / ILUG person
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Adrian Bunk: "[2.6 patch] drivers/acpi: #ifdef unused functions away"

    Relevant Pages

    • Re: [RFC/patch] macro_removal_agp_mtrr.diff
      ... > case you don't have AGP? ... David Airlie, Software Engineer ... pam_smb / Linux DECstation / Linux VAX / ILUG person ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • kernel image reproducibility...
      ... kernel image months or years from now on a different system, ... David Airlie, Software Engineer ... pam_smb / Linux DECstation / Linux VAX / ILUG person ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: linux-2.6.9-rc1-bk11/driver/char/drm/gamma_drm.c does not compile
      ... broken, in more ways than makes it easy to fix, no DRI developer has any ... David Airlie, Software Engineer ... pam_smb / Linux DECstation / Linux VAX / ILUG person ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] 2.6.7-rc2: fix agpgart
      ... >> the AGP aperture can't be directly accessed by the CPU. ... David Airlie, Software Engineer ... pam_smb / Linux DECstation / Linux VAX / ILUG person ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: your mail
      ... I think Alan would classify that as luck rathar than design... ... David Airlie, Software Engineer ... pam_smb / Linux DECstation / Linux VAX / ILUG person ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)