The Linux kernel: a case study of build system variability
Authors:
- 18 April 2013
- journal article
- research article
- Published by Wiley in Journal of Software: Evolution and Process
- Vol. 26 (8) , 730-746
Abstract
SUMMARY: 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. Copyright © 2013 John Wiley & Sons, Ltd.Keywords
This publication has 12 references indexed in Scilit:
- A robust approach for variability extraction from the Linux build system2012
- Understanding linux feature distribution2012
- Mining Kbuild to Detect Variability Anomalies in Linux2012
- Variability-aware parsing in the presence of lexical macros and conditional compilation2011
- Make it or Break it: Mining Anomalies from Linux Kbuild2011
- Feature consistency in compile-time-configurable system software2011
- Efficient extraction and analysis of preprocessor-based variability2010
- Variability modeling in the real2010
- Evolution of the Linux Kernel Variability Model2010
- Design recovery and maintenance of build systems2007 IEEE International Conference on Software Maintenance, 2007