clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since e5345f18 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
|
Rev | Line | |
---|
[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}
|
---|
| 12 | cd ${SRC}
|
---|
| 13 | LOG=module-init-tools-target.log
|
---|
| 14 |
|
---|
| 15 | set_libdirname
|
---|
| 16 | setup_multiarch
|
---|
| 17 |
|
---|
| 18 | unpack_tarball module-init-tools-${MODINITTOOLS_VER} &&
|
---|
| 19 | cd ${PKGDIR}
|
---|
| 20 |
|
---|
| 21 | # Patch so we can run 'make moveold' under our target root.
|
---|
| 22 | # TODO: wrap this with some logic
|
---|
| 23 | apply_patch module-init-tools-3.0-cross-moveold
|
---|
| 24 |
|
---|
| 25 | max_log_init Module-init-tools ${MODINITTOOLS_VER} "Target (shared)" ${CONFLOGS} ${LOG}
|
---|
| 26 | CC="${TARGET}-gcc ${ARCH_CFLAGS}" \
|
---|
| 27 | CFLAGS="-O2 -pipe" \
|
---|
| 28 | ./configure --prefix=/ --host="${TARGET}" \
|
---|
| 29 | >> ${LOGFILE} 2>&1 &&
|
---|
| 30 | echo " o Configure OK" &&
|
---|
| 31 |
|
---|
| 32 | # H A C K
|
---|
| 33 | sed -i 's@^MAN.*@@g' Makefile
|
---|
| 34 |
|
---|
| 35 | min_log_init ${BUILDLOGS} &&
|
---|
| 36 |
|
---|
| 37 | # Check if modprobe.old exists, if so don't run
|
---|
| 38 | # make moveold
|
---|
| 39 |
|
---|
| 40 | if [ ! -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
|
---|
| 45 | fi
|
---|
| 46 |
|
---|
| 47 | make LDFLAGS="-s" \
|
---|
| 48 | >> ${LOGFILE} 2>&1 &&
|
---|
| 49 | echo " o Build OK" &&
|
---|
| 50 |
|
---|
| 51 | min_log_init ${INSTLOGS} &&
|
---|
| 52 | make DESTDIR="${LFS}" install \
|
---|
| 53 | >> ${LOGFILE} 2>&1 &&
|
---|
| 54 | echo " 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.