Fix building with separate object directories
PATCH 1/1 Fix building with separate object directories
The kernel-supplied initramfs list needs to be copied to the build directory. Otherwise the generator won't find it.
Signed-off-by Matthias Urlichs <[email protected]>
===== usr/Makefile 1.12 vs edited =====
usr/Makefile +4 -2
@@ -29,12 +29,14 @@ if [ $(CONFIG_INITRAMFS_SOURCE) != $@ ]; then \ echo 'cp -f $(CONFIG_INITRAMFS_SOURCE) $@'; \ else \ - echo 'echo Using shipped $@'; \ + echo 'echo Using shipped $@; \ + cp -f $(srctree)/$@ $@'; \ fi; \ elif test -d $(CONFIG_INITRAMFS_SOURCE); then \ echo 'scripts/gen_initramfs_list.sh $(CONFIG_INITRAMFS_SOURCE) > $@'; \ else \ - echo 'echo Using shipped $@'; \ + echo 'echo Using shipped $@; \ + cp -f $(srctree)/$@ $@'; \ fi)