mk/image.mk: fix initramfs-piggyback for recent kernels
commit801552c5a998dfd5859acdbab6db93d4e66eb550
authorPhil Sutter <phil@nwl.cc>
Wed, 19 Jan 2011 01:06:33 +0000 (19 02:06 +0100)
committerWaldemar Brodkorb <wbx@openadk.org>
Thu, 20 Jan 2011 13:00:28 +0000 (20 14:00 +0100)
tree7fa341cbdc76da6d9b4d12d4c45250f816566dab
parentd3c4a628fbee8ccda9c3500a01c7d817adbb9e4d
mk/image.mk: fix initramfs-piggyback for recent kernels

Newer kernels hide CONFIG_INITRAMFS_SOURCE behind the boolean
CONFIG_BLK_DEV_INITRD symbol. So replacing the further using sed may
fail since no match is found. This patch strips the config from both
symbols if existing, and appends them afterwards. I hope this does for
older kernels, too.

Signed-off-by: Phil Sutter <phil@nwl.cc>
mk/image.mk