The Linux kernel: A case study of build system variability

Sarah Nadi, Ric Holt

Research output: Contribution to journalArticlepeer-review

Abstract

Although build systems control what code gets compiled into the final built product, they are often overlooked when studying software variability. The Linux kernel is one of the biggest open source software systems supporting variability and contains over 10,000 configurable features described in its Kconfig files. To understand the role of the build system in variability implementation, we use Linux as a case study. We study its build system, Kbuild, and extract the variability constraints in its Makefiles. We first provide a quantitative analysis of the variability in Kbuild. We then study how the variability constraints in the build system affect variability anomalies detected in Linux. We concentrate on dead and undead artifacts, and by extending previous work, we show that considering build system variability constraints allows more anomalies to be detected. We provide examples of such anomalies on both the code block and source file level. Our work shows that Kbuild contains a large percentage of the variability information in Linux, so it should not be ignored during variability analysis. Nonetheless, the anomalies we find suggest that variability on the file level in Kbuild is consistent with Kconfig, whereas the constraints on the code level are harder to keep consistent with both Kbuild and Kconfig.

Original languageEnglish (US)
Pages (from-to)730-746
Number of pages17
JournalJournal of software: Evolution and Process
Volume26
Issue number8
DOIs
StatePublished - Aug 2014

Keywords

  • build systems
  • K build
  • Linux
  • software variability
  • variability anomalies

ASJC Scopus subject areas

  • Software

Fingerprint

Dive into the research topics of 'The Linux kernel: A case study of build system variability'. Together they form a unique fingerprint.

Cite this