From dc792c97b4ece08b55f42fe2be27939e612597fa Mon Sep 17 00:00:00 2001 From: Kyle McMartin Date: Thu, 18 Oct 2007 15:09:59 -0700 Subject: [PATCH] --- yaml --- r: 71923 b: refs/heads/master c: 5feb4f39aa2c50a9fe72925c2489c4c7fedb8dfa h: refs/heads/master i: 71921: 2d8f5a68574947802d4ac66d9704b67bce132cd5 71919: d76324c6a816e8ef5960f7f7fa5d1c22a0c46ed8 v: v3 --- [refs] | 2 +- trunk/arch/parisc/Makefile | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 2541ef4e69d5..aa394e39c7f6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 991b7d6e6ffe9373dca7269a5d0213c1545dee1f +refs/heads/master: 5feb4f39aa2c50a9fe72925c2489c4c7fedb8dfa diff --git a/trunk/arch/parisc/Makefile b/trunk/arch/parisc/Makefile index 3ea7ce3a8c57..3f1faca724ab 100644 --- a/trunk/arch/parisc/Makefile +++ b/trunk/arch/parisc/Makefile @@ -74,6 +74,25 @@ libs-y += arch/parisc/lib/ drivers-$(CONFIG_OPROFILE) += arch/parisc/oprofile/ +PALO := $(shell if which palo; then : ; \ + elif [ -x /sbin/palo ]; then echo /sbin/palo; \ + fi) + +palo: vmlinux + @if [ -x $PALO ]; then \ + echo 'ERROR: Please install palo first (apt-get install palo)';\ + echo 'or build it from source and install it somewhere in your $$PATH';\ + 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.'; \ + echo 'You should check it and re-run "make palo".'; \ + echo 'WARNING: the "lifimage" file is now placed in this directory by default!'; \ + false; \ + fi + $(PALO) -f ./palo.conf + # Shorthands for known targets not supported by parisc, use vmlinux as default Image zImage bzImage: vmlinux @@ -88,6 +107,7 @@ MRPROPER_FILES += palo.conf define archhelp @echo '* vmlinux - Uncompressed kernel image (./vmlinux)' + @echo ' palo - Bootable image (./lifimage)' @echo ' install - Install kernel using' @echo ' (your) ~/bin/installkernel or' @echo ' (distribution) /sbin/installkernel or'