meson.build 643 B

12345678910111213141516
  1. initramfs_tools = find_program('update-initramfs', required: false)
  2. if initramfs_tools.found()
  3. initramfstools_dir = '/usr/share/initramfs-tools'
  4. initramfs_hooks_dir = '/usr/share/initramfs-tools/hooks'
  5. initramfs_scripts_dir = '/usr/share/initramfs-tools/scripts'
  6. initramfs_data = configuration_data()
  7. initramfs_data.merge_from(data)
  8. initramfs_data.set('initramfstoolsdir', initramfstools_dir)
  9. libdir = join_paths(get_option('prefix'), get_option('libdir'))
  10. initramfs_data.set('libdir', libdir)
  11. subdir('hooks')
  12. subdir('scripts')
  13. else
  14. warning('Will not install initramfs-tools module due to missing dependencies!')
  15. endif