Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • linux-rt linux-rt
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Arch LinuxArch Linux
  • Packaging
  • Upstream
  • linux-rtlinux-rt
  • Repository
Switch branch/tag
  • linux-rt
  • drivers
  • media
  • video
  • Kconfig
Find file BlameHistoryPermalink
  • Trent Piepho's avatar
    Fix Kconfig dependency problems wrt boolean menuconfigs · 59faba1b
    Trent Piepho authored Jun 27, 2007
    
    
    If one has a dependency chain (tristate)FOO depends on (bool)BAR depends on
    (tristate)BAZ, build problems will result.  If BAZ=m, then BAR can be set
    y, which allows FOO=y.  It's possible to have FOO=y && BAZ=m, which
    wouldn't be allowed if FOO depended directly on BAZ.  In effect, the bool
    promotes the tristate from m to y.
    
    This ends up causing a problem with several menuconfigs that look like:
    
    menuconfig BAR
    	bool
    	depends on BAZ [tristate]
    if BAR
    config FOO
    	tristate
    endif
    
    The solution used here is to add the dependencies of BAR to the if
    statement, so that items in the if block will gain a direct
    non-bool-promoted dependency on BAZ.  This is how it would work if a menu
    was used instead of an if block.
    
    Signed-off-by: default avatarTrent Piepho <xyzzy@speakeasy.org>
    Acked-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
    Cc: "David S. Miller" <davem@davemloft.net>
    Acked-by: default avatarJeff Garzik <jeff@garzik.org>
    Cc: Dominik Brodowski <linux@dominikbrodowski.net>
    Cc: Chas Williams <chas@cmf.nrl.navy.mil>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    59faba1b