mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:02:20 +00:00
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: 35e669e1a2
("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>
This commit is contained in:
parent
e02003b515
commit
ae30ab4cd7
@ -5,7 +5,7 @@
|
||||
klibcdirs:;
|
||||
PHONY += klibcdirs
|
||||
|
||||
suffix_y = $(CONFIG_INITRAMFS_COMPRESSION)
|
||||
suffix_y = $(subst $\",,$(CONFIG_INITRAMFS_COMPRESSION))
|
||||
AFLAGS_initramfs_data.o += -DINITRAMFS_IMAGE="usr/initramfs_data.cpio$(suffix_y)"
|
||||
|
||||
# Generate builtin.o based on initramfs_data.o
|
||||
|
Loading…
Reference in New Issue
Block a user