Commit ae30ab4c authored by Nicholas Piggin's avatar Nicholas Piggin Committed by Linus Torvalds

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: 35e669e1 ("initramfs: select builtin initram compression algorithm on KConfig instead of Makefile")
Reviewed-by: default avatarFrancisco Blas Izquierdo Riera (klondike) <>
Signed-off-by: default avatarNicholas Piggin <>
Signed-off-by: default avatarLinus Torvalds <>
parent e02003b5
......@@ -5,7 +5,7 @@
PHONY += klibcdirs
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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment