[parisc-linux] kernel build: make palo
Bjoern A. Zeeb
bzeeb-lists@lists.zabbadoz.net
Sat, 9 Nov 2002 16:31:46 +0000 (UTC)
On Sat, 9 Nov 2002, Matthew Wilcox wrote:
> > > Then one could do
> > > make dep && make bzImage && make modules
> > > as user, the switch to su and do a
> > > make modules_install && make palo
> > > or even run palo by hand...
>
> Nothing stops you from doing:
>
> make vmlinux
> sudo make palo
>
> as two separate steps.
yeah, but that's not the default (==documented) way of building a
linux kernel ;-)
linux/README:
" - Do a "make bzImage" to create a compressed kernel image."
it does not say "and update the config etc of your bootloader"
Also one does not need to run palo if one only substitutes a kernel
image in an ext2 fs I think. So this run does not seem to be
neccessary by default.
I suggest s.th. like the following (untested):
--- linux/arch/parisc/Makefile.orig 2002-11-09 14:43:40.000000000 +0000
+++ linux/arch/parisc/Makefile 2002-11-09 16:19:46.000000000 +0000
@@ -82,7 +82,7 @@
libs-y += arch/parisc/lib/ \
`$(CC) -print-libgcc-file-name`
-palo: vmlinux
+palo:
@if [ $$(palo -f /dev/null >/dev/null 2>&1 ; echo $$?) != 2 ]; then \
echo 'ERROR: Please install palo first (apt-get install palo)';\
echo 'or build it from source and install it somewhere in your $$PATH';\
@@ -101,19 +101,19 @@
export TOPDIR=`pwd`; \
unset STRIP LDFLAGS CPP CPPFLAGS AFLAGS CFLAGS CC LD; cd ../palo && make lifimage
-Image: palo
+Image: vmlinux
Image-clean:
ramdisk.o:
-zImage: palo
+zImage: vmlinux
-bzImage: palo
+bzImage: vmlinux
compressed: zImage
-install:
+install: palo
archmrproper:
--
Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT
56 69 73 69 74 http://www.zabbadoz.net/