Skip to content

Commit 5feb4f3

Browse files
author
Kyle McMartin
committed
[PARISC] Restore palo target
Turns out, people were still using it, and it accidently works. Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
1 parent 991b7d6 commit 5feb4f3

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

‎arch/parisc/Makefile‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,25 @@ libs-y += arch/parisc/lib/
7474

7575
drivers-$(CONFIG_OPROFILE) += arch/parisc/oprofile/
7676

77+
PALO := $(shell if which palo; then : ; \
78+
elif [ -x /sbin/palo ]; then echo /sbin/palo; \
79+
fi)
80+
81+
palo: vmlinux
82+
@if [ -x $PALO ]; then \
83+
echo 'ERROR: Please install palo first (apt-get install palo)';\
84+
echo 'or build it from source and install it somewhere in your $$PATH';\
85+
false; \
86+
fi
87+
@if [ ! -f ./palo.conf ]; then \
88+
cp arch/parisc/defpalo.conf palo.conf; \
89+
echo 'A generic palo config file (./palo.conf) has been created for you.'; \
90+
echo 'You should check it and re-run "make palo".'; \
91+
echo 'WARNING: the "lifimage" file is now placed in this directory by default!'; \
92+
false; \
93+
fi
94+
$(PALO) -f ./palo.conf
95+
7796
# Shorthands for known targets not supported by parisc, use vmlinux as default
7897
Image zImage bzImage: vmlinux
7998

@@ -88,6 +107,7 @@ MRPROPER_FILES += palo.conf
88107

89108
define archhelp
90109
@echo '* vmlinux - Uncompressed kernel image (./vmlinux)'
110+
@echo ' palo - Bootable image (./lifimage)'
91111
@echo ' install - Install kernel using'
92112
@echo ' (your) ~/bin/installkernel or'
93113
@echo ' (distribution) /sbin/installkernel or'

0 commit comments

Comments
 (0)