source: scripts/target-scripts/host-lilo.sh@ 0ee931e

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 0ee931e was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100755
File size: 1.5 KB
Line 
1#!/bin/bash
2
3# cross-lfs build-host lilo build
4# -------------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11cd ${SRC}
12LOG="lilo-host.log"
13unpack_tarball lilo-${LILO_VER} &&
14cd ${SRC}/${PKGDIR}
15
16case ${KERNEL_VER} in
17 2.[56].* )
18 case ${LILO_VER} in
19 22.5.1 )
20 #apply_patch lilo-22.5.1-2.6.0hdr-fix
21 #avoid LVM for the moment
22 if [ ! -f Makefile-ORIG ]; then cp -p Makefile Makefile-ORIG ; fi
23 sed '/^CONFIG=/s@ -DLVM@@g' Makefile-ORIG > Makefile
24
25 # need PAGE_SIZE from <asm/page.h>
26 if [ ! -f boot.c-ORIG ]; then cp -p boot.c boot.c-ORIG ; fi
27 sed '/^#include <sys\/stat.h>/a \
28#include <asm/page.h>' boot.c-ORIG > boot.c
29
30 if [ ! -f partition.c-ORIG ]; then
31 cp -p partition.c partition.c-ORIG
32 fi
33 sed '/^#include <asm\/unistd.h>/a \
34#include <asm/page.h>' partition.c-ORIG > partition.c
35 ;;
36 esac
37 ;;
38esac
39
40# TODO: THIS IS WRONG.
41case ${TGT_ARCH} in
42 x86_64 ) ARCH_CFLAGS="-m32" ;;
43esac
44
45max_log_init Lilo ${LILO_VER} host ${BUILDLOGS} ${LOG}
46make CC="gcc ${ARCH_CFLAGS}" \
47 SBIN_DIR=${HST_TOOLS}/sbin \
48 USRSBIN_DIR=${HST_TOOLS}/sbin \
49 MAN_DIR=${HST_TOOLS}/share/man \
50 >> ${LOGFILE} 2>&1 &&
51echo " o Build OK" &&
52
53min_log_init ${INSTLOGS} &&
54make install \
55 SBIN_DIR=${HST_TOOLS}/sbin \
56 USRSBIN_DIR=${HST_TOOLS}/sbin \
57 MAN_DIR=${HST_TOOLS}/share/man \
58 >> ${LOGFILE} &&
59echo " o ALL OK" || barf
60
Note: See TracBrowser for help on using the repository browser.