[PATCH] Fix building palo in a separate directory
Matthew Wilcox <[email protected]> Thu, 5 Jul 2007 14:30:40 -0600
| Newsgroups | gmane.linux.ports.hppa |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> 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."