[PATCH] [2.6 current] Fix building with separate object directories

From: Matthias Urlichs
Date: Thu Oct 21 2004 - 07:56:32 EST


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 <smurf@xxxxxxxxxxxxxx>

===== usr/Makefile 1.12 vs edited =====
--- 1.12/usr/Makefile 2004-10-20 10:37:03 +02:00
+++ edited/usr/Makefile 2004-10-21 14:33:20 +02:00
@@ -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)


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/