source: scripts/target-scripts/target-module-init-tools.sh@ 1a625f6

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 1a625f6 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.4 KB
RevLine 
[617118d]1#!/bin/bash
2
3# cross-lfs target module-init-tools build
4# ----------------------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11# NOTE: this installs into the target root, NOT into ${TGT_TOOLS}
12cd ${SRC}
13LOG=module-init-tools-target.log
14
15set_libdirname
16setup_multiarch
17
18unpack_tarball module-init-tools-${MODINITTOOLS_VER} &&
19cd ${PKGDIR}
20
21# Patch so we can run 'make moveold' under our target root.
22# TODO: wrap this with some logic
23apply_patch module-init-tools-3.0-cross-moveold
24
25max_log_init Module-init-tools ${MODINITTOOLS_VER} "Target (shared)" ${CONFLOGS} ${LOG}
26CC="${TARGET}-gcc ${ARCH_CFLAGS}" \
27CFLAGS="-O2 -pipe" \
28./configure --prefix=/ --host="${TARGET}" \
29 >> ${LOGFILE} 2>&1 &&
30echo " o Configure OK" &&
31
32# H A C K
33sed -i 's@^MAN.*@@g' Makefile
34
35min_log_init ${BUILDLOGS} &&
36
37# Check if modprobe.old exists, if so don't run
38# make moveold
39
40if [ ! -f ${LFS}/sbin/modprobe.old -a -f ${LFS}/sbin/modprobe ]; then
41 make DESTDIR="${LFS}" moveold \
42 >> ${LOGFILE} 2>&1 &&
43 echo "===============================================" \
44 >> ${LOGFILE} || barf
45fi
46
47make LDFLAGS="-s" \
48 >> ${LOGFILE} 2>&1 &&
49echo " o Build OK" &&
50
51min_log_init ${INSTLOGS} &&
52make DESTDIR="${LFS}" install \
53 >> ${LOGFILE} 2>&1 &&
54echo " o ALL OK" || barf
55
56#test -f ${LFS}/etc/modules.conf &&
57# ./generate-modprobe.conf /etc/modprobe.conf
58
Note: See TracBrowser for help on using the repository browser.