2004-10-21 12:47:02

by Matthias Urlichs

[permalink] [raw]
Subject: [PATCH] [2.6 current] 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 =====
--- 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)