970-remove-unsane-filenames-from-deps_initramfs-list.patch 1.2 KB

12345678910111213141516171819202122232425262728
  1. --- a/usr/Makefile
  2. +++ b/usr/Makefile
  3. @@ -50,20 +50,22 @@ ifneq ($(wildcard $(obj)/.initramfs_data
  4. include $(obj)/.initramfs_data.cpio.d
  5. endif
  6. +deps_initramfs_sane := $(foreach v,$(deps_initramfs),$(if $(findstring :,$(v)),,$(v)))
  7. +
  8. quiet_cmd_initfs = GEN $@
  9. cmd_initfs = $(initramfs) -o $@ $(ramfs-args) $(ramfs-input)
  10. targets := initramfs_data.cpio.gz initramfs_data.cpio.bz2 initramfs_data.cpio.lzma initramfs_data.cpio.xz initramfs_data.cpio.lzo initramfs_data.cpio
  11. # do not try to update files included in initramfs
  12. -$(deps_initramfs): ;
  13. +$(deps_initramfs_sane): ;
  14. -$(deps_initramfs): klibcdirs
  15. +$(deps_initramfs_sane): klibcdirs
  16. # We rebuild initramfs_data.cpio if:
  17. # 1) Any included file is newer then initramfs_data.cpio
  18. # 2) There are changes in which files are included (added or deleted)
  19. # 3) If gen_init_cpio are newer than initramfs_data.cpio
  20. # 4) arguments to gen_initramfs.sh changes
  21. -$(obj)/initramfs_data.cpio$(suffix_y): $(obj)/gen_init_cpio $(deps_initramfs) klibcdirs
  22. +$(obj)/initramfs_data.cpio$(suffix_y): $(obj)/gen_init_cpio $(deps_initramfs_sane) klibcdirs
  23. $(Q)$(initramfs) -l $(ramfs-input) > $(obj)/.initramfs_data.cpio.d
  24. $(call if_changed,initfs)