| # Native PARISC/Linux Project Bootstrap Code |
| # |
| # Copyright (C) 2000 Hewlett Packard (Paul Bame, bame@puffin.external.hp.com) |
| # Copyright (C) 1999 Jason Eckhardt <jle@cygnus.com> |
| # Helge Deller <deller@gmx.de> |
| # Christopher Beard <cjbeard@thepuffingroup.com> |
| # Alex deVries <adevries@thepuffingroup.com> |
| # |
| |
| # This is here temporarily for folks who still have the old linux makefile |
| ifneq ($(strip ${TOPDIR}),) |
| PA=${TOPDIR} |
| endif |
| |
| # here is one which should work for nearly everyone, unless they |
| # have a different name for their linux tree: |
| ifeq ($(strip ${PA}),) |
| PA := $(shell pwd)/../linux |
| endif |
| |
| export PA |
| |
| # Choose at most one of RAMDISK or NFSROOT below |
| # |
| # Set RAMDISK to a ramdisk image to in order to load the ramdisk on the |
| # boot medium and make the default kernel command line to use it |
| # |
| # RAMDISK = ${PA}/ramdisk.bin |
| |
| # |
| # Set NFSROOT to the IP address of your NFS root server to make |
| # a kernel command line to use NFS root. This is incompatible with |
| # RAMDISK above. Though you can have both a ramdisk and an NFS root, |
| # as far as palo is concerned anyway, this Makefile doesn't help you |
| # do that and I'm not sure the kernel's very good at it right now either. |
| # |
| NFSROOT = 10.10.10.2 |
| |
| ROOT=root=/dev/sda1 |
| |
| ifneq ($(strip ${RAMDISK}),) |
| PALOSTUFF=-r ${RAMDISK} |
| ROOT=root=/dev/ram initrd=0/ramdisk |
| endif |
| |
| ifneq ($(strip ${NFSROOT}),) |
| PALOSTUFF= |
| ROOT=root=/dev/nfs nfsroot=${NFSROOT} ip=bootp |
| endif |
| |
| CMDLINE = 0/vmlinux HOME=/ TERM=linux $(ROOT) $(CONSOLE) |
| |
| all: makepalo README palo.conf |
| |
| README: README.html |
| lynx -dump README.html > README |
| |
| makepalo: |
| cd palo && make |
| |
| makeipl: |
| cd ipl && make |
| |
| lifimage: all Makefile lifimage-only |
| |
| lifimage-only: ${PA}/vmlinux iplboot |
| ./palo/palo -f /dev/null \ |
| -b iplboot \ |
| -k ${PA}/vmlinux \ |
| ${PALOSTUFF} \ |
| -c "${CMDLINE}" \ |
| -s lifimage |
| |
| iplboot: makeipl makepalo |
| ./palo/mkbootable ipl/iplelf iplboot |
| |
| clean: |
| rm -f lifimage |
| cd ipl && make clean |
| cd palo && make clean |
| |
| realclean: |
| rm -f iplboot lifimage |
| cd ipl && make clean |
| cd palo && make clean |
| |
| distclean: |
| rm -f lifimage |
| cd ipl && make distclean |
| cd palo && make distclean |
| |
| INSTALL = install |
| IFLAGS = -o root -g root |
| INSTALL += ${IFLAGS} |
| DESTDIR = ./root |
| |
| install: all README.html palo.conf palo/palo |
| ${INSTALL} -d ${DESTDIR}/usr/share/doc/palo \ |
| ${DESTDIR}/etc ${DESTDIR}/sbin ${DESTDIR}/usr/share/palo |
| ${INSTALL} -m644 palo.conf ${DESTDIR}/usr/share/doc/palo |
| ${INSTALL} palo/palo ${DESTDIR}/sbin |
| @# iplboot isn't natively executable -- don't set mode=x |
| ${INSTALL} -m444 iplboot ${DESTDIR}/usr/share/palo |
| ${INSTALL} -m444 README.html README ${DESTDIR}/usr/share/doc/palo |