clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 873009c 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
|
Rev | Line | |
---|
[617118d] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | # cross-lfs build-host lilo build
|
---|
| 4 | # -------------------------------
|
---|
| 5 | # $LastChangedBy$
|
---|
| 6 | # $LastChangedDate$
|
---|
| 7 | # $LastChangedRevision$
|
---|
| 8 | # $HeadURL$
|
---|
| 9 | #
|
---|
| 10 |
|
---|
| 11 | cd ${SRC}
|
---|
| 12 | LOG="lilo-host.log"
|
---|
| 13 | unpack_tarball lilo-${LILO_VER} &&
|
---|
| 14 | cd ${SRC}/${PKGDIR}
|
---|
| 15 |
|
---|
| 16 | case ${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 | ;;
|
---|
| 38 | esac
|
---|
| 39 |
|
---|
| 40 | # TODO: THIS IS WRONG.
|
---|
| 41 | case ${TGT_ARCH} in
|
---|
| 42 | x86_64 ) ARCH_CFLAGS="-m32" ;;
|
---|
| 43 | esac
|
---|
| 44 |
|
---|
| 45 | max_log_init Lilo ${LILO_VER} host ${BUILDLOGS} ${LOG}
|
---|
| 46 | make 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 &&
|
---|
| 51 | echo " o Build OK" &&
|
---|
| 52 |
|
---|
| 53 | min_log_init ${INSTLOGS} &&
|
---|
| 54 | make install \
|
---|
| 55 | SBIN_DIR=${HST_TOOLS}/sbin \
|
---|
| 56 | USRSBIN_DIR=${HST_TOOLS}/sbin \
|
---|
| 57 | MAN_DIR=${HST_TOOLS}/share/man \
|
---|
| 58 | >> ${LOGFILE} &&
|
---|
| 59 | echo " o ALL OK" || barf
|
---|
| 60 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.