source: scripts/target-scripts/target-bin86.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: 813 bytes
Line 
1#!/bin/bash
2
3# cross-lfs target bin86 build
4# ----------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11cd ${SRC}
12LOG="bin86-target.log"
13
14unpack_tarball bin86-${BIN86_VER} &&
15
16if [ "${USE_SYSROOT}" = "Y" ]; then
17 BUILD_PREFIX=/usr
18 INSTALL_PREFIX="${LFS}${BUILD_PREFIX}"
19 INSTALL_OPTIONS="DESTDIR=${LFS}"
20else
21 BUILD_PREFIX=${TGT_TOOLS}
22 INSTALL_PREFIX="${TGT_TOOLS}"
23 INSTALL_OPTIONS=""
24fi
25
26cd ${SRC}/${PKGDIR}
27
28# only build 32bit
29case ${TGT_ARCH} in
30 x86_64 ) ARCH_CFLAGS="-m32" ;;
31esac
32
33max_log_init Bin86 ${BIN86_VER} target ${BUILDLOGS} ${LOG}
34make CC="${TARGET}-gcc ${ARCH_CFLAGS}" \
35 >> ${LOGFILE} 2>&1 &&
36echo " o Build OK" &&
37
38min_log_init ${INSTLOGS} &&
39make PREFIX=${INSTALL_PREFIX} install \
40 >> ${LOGFILE} &&
41echo " o ALL OK" || barf
Note: See TracBrowser for help on using the repository browser.