Skip to contentSkip to conversation

Fix building with separate object directories

PATCH New Matthias Urlichs 1 participant 1 message Oct 21, 2004 Kbuild

lore
Share & tools
lore
#0 lore raw

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.

===== 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)