initrd: bring back to life. Easy! :-)

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-01-22 00:00:00 +00:00
parent 52df5e6518
commit cf662c4ab0
3 changed files with 20 additions and 7 deletions

View File

@@ -133,6 +133,8 @@ usually extra Buildroot targets.
config_fragments = [
os.path.join(self.env['root_dir'], 'buildroot_config', 'default')
] + self.env['config_fragment']
if self.env['initrd']:
configs.append('BR2_TARGET_ROOTFS_CPIO=y')
# TODO Can't get rid of these for now with nice fragments on Buildroot:
# http://stackoverflow.com/questions/44078245/is-it-possible-to-use-config-fragments-with-buildroots-config
self.sh.write_configs(self.env['buildroot_config_file'], configs, config_fragments)