Commit ae30ab4cd711a147cafaf5674c333c5a84fe53fb
Committed by
Linus Torvalds
1 parent
e02003b515
Exists in
smarc_imx_lf-5.15.y
and in
20 other branches
kbuild: initramfs fix dependency checking for compressed target
When using initramfs compression, the data file compression suffix gets quotes pulled in from Kconfig, e.g., initramfs_data.cpio".gz" which make does not match a target and causes rebuild. Fix this by filtering out quotes from the Kconfig string. Fixes: 35e669e1a254 ("initramfs: select builtin initram compression algorithm on KConfig instead of Makefile") Reviewed-by: Francisco Blas Izquierdo Riera (klondike) <klondike@klondike.es> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
usr/Makefile
... | ... | @@ -5,7 +5,7 @@ |
5 | 5 | klibcdirs:; |
6 | 6 | PHONY += klibcdirs |
7 | 7 | |
8 | -suffix_y = $(CONFIG_INITRAMFS_COMPRESSION) | |
8 | +suffix_y = $(subst $\",,$(CONFIG_INITRAMFS_COMPRESSION)) | |
9 | 9 | AFLAGS_initramfs_data.o += -DINITRAMFS_IMAGE="usr/initramfs_data.cpio$(suffix_y)" |
10 | 10 | |
11 | 11 | # Generate builtin.o based on initramfs_data.o |