240-remove-unsane-filenames-from-deps_initramfs-list.patch 917 B

123456789101112131415161718192021222324252627282930
  1. From: Gabor Juhos <[email protected]>
  2. Subject: usr: sanitize deps_initramfs list
  3. If any filename in the intramfs dependency
  4. list contains a colon, that causes a kernel
  5. build error like this:
  6. /devel/openwrt/build_dir/linux-ar71xx_generic/linux-3.6.6/usr/Makefile:58: *** multiple target patterns. Stop.
  7. make[5]: *** [usr] Error 2
  8. Fix it by removing such filenames from the
  9. deps_initramfs list.
  10. Signed-off-by: Gabor Juhos <[email protected]>
  11. Signed-off-by: Felix Fietkau <[email protected]>
  12. ---
  13. usr/Makefile | 8 +++++---
  14. 1 file changed, 5 insertions(+), 3 deletions(-)
  15. --- a/usr/Makefile
  16. +++ b/usr/Makefile
  17. @@ -56,6 +56,8 @@ hostprogs := gen_init_cpio
  18. # The dependency list is generated by gen_initramfs.sh -l
  19. -include $(obj)/.initramfs_data.cpio.d
  20. +deps_initramfs := $(foreach v,$(deps_initramfs),$(if $(findstring :,$(v)),,$(v)))
  21. +
  22. # do not try to update files included in initramfs
  23. $(deps_initramfs): ;