[parisc-linux] [PATCH] Fix building palo in a separate directory

Matthew Wilcox matthew at wil.cx
Thu Jul 5 14:30:40 MDT 2007


When using an objdir that's different from the srcdir, the initial step
of creating the palo.conf goes awry.

Signed-off-by: Matthew Wilcox <matthew at wil.cx>

diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile
index 760567a..c09be26 100644
--- a/arch/parisc/Makefile
+++ b/arch/parisc/Makefile
@@ -84,10 +84,10 @@ palo: vmlinux
 		false; \
 	fi
 	@if [ ! -f ./palo.conf ]; then \
-		cp arch/parisc/defpalo.conf palo.conf; \
-		echo 'A generic palo config file (./palo.conf) has been created for you.'; \
+		cp $(srctree)/arch/parisc/defpalo.conf ./palo.conf; \
+		echo 'A generic palo config file ($(objtree)/palo.conf) has been created for you.'; \
 		echo 'You should check it and re-run "make palo".'; \
-		echo 'WARNING: the "lifimage" file is now placed in this directory by default!'; \
+		echo WARNING: the lifimage file is placed in $(objtree) by default\!; \
 		false; \
 	fi
 	$(PALO) -f ./palo.conf

-- 
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."



More information about the parisc-linux mailing list