Lines 79-84
export_utils_args()
Link Here
|
79 |
then |
79 |
then |
80 |
export AS="${UTILS_AS}" |
80 |
export AS="${UTILS_AS}" |
81 |
fi |
81 |
fi |
|
|
82 |
if [ "${UTILS_CROSS_COMPILE}" != '' ] |
83 |
then |
84 |
export CROSS_COMPILE="${UTILS_CROSS_COMPILE}" |
85 |
fi |
82 |
} |
86 |
} |
83 |
|
87 |
|
84 |
unset_utils_args() |
88 |
unset_utils_args() |
Lines 99-104
unset_utils_args()
Link Here
|
99 |
then |
103 |
then |
100 |
unset AS |
104 |
unset AS |
101 |
fi |
105 |
fi |
|
|
106 |
if [ "${UTILS_CROSS_COMPILE}" != '' ] |
107 |
then |
108 |
unset CROSS_COMPILE |
109 |
fi |
102 |
reset_args |
110 |
reset_args |
103 |
} |
111 |
} |
104 |
|
112 |
|
Lines 393-399
compile_busybox() {
Link Here
|
393 |
print_info 1 'busybox: >> Copying to cache...' |
401 |
print_info 1 'busybox: >> Copying to cache...' |
394 |
[ -f "${TEMP}/${BUSYBOX_DIR}/busybox" ] || |
402 |
[ -f "${TEMP}/${BUSYBOX_DIR}/busybox" ] || |
395 |
gen_die 'Busybox executable does not exist!' |
403 |
gen_die 'Busybox executable does not exist!' |
396 |
strip "${TEMP}/${BUSYBOX_DIR}/busybox" || |
404 |
${UTILS_CROSS_COMPILE}strip "${TEMP}/${BUSYBOX_DIR}/busybox" || |
397 |
gen_die 'Could not strip busybox binary!' |
405 |
gen_die 'Could not strip busybox binary!' |
398 |
tar -cj -C "${TEMP}/${BUSYBOX_DIR}" -f "${BUSYBOX_BINCACHE}" busybox .config .config.gk_orig || |
406 |
tar -cj -C "${TEMP}/${BUSYBOX_DIR}" -f "${BUSYBOX_BINCACHE}" busybox .config .config.gk_orig || |
399 |
gen_die 'Could not create the busybox bincache!' |
407 |
gen_die 'Could not create the busybox bincache!' |
Lines 432-438
compile_lvm() {
Link Here
|
432 |
|
440 |
|
433 |
cd "${TEMP}/lvm" |
441 |
cd "${TEMP}/lvm" |
434 |
print_info 1 ' >> Copying to bincache...' |
442 |
print_info 1 ' >> Copying to bincache...' |
435 |
strip "sbin/lvm.static" || |
443 |
${UTILS_CROSS_COMPILE}strip "sbin/lvm.static" || |
436 |
gen_die 'Could not strip lvm.static!' |
444 |
gen_die 'Could not strip lvm.static!' |
437 |
/bin/tar -cjf "${LVM_BINCACHE}" sbin/lvm.static || |
445 |
/bin/tar -cjf "${LVM_BINCACHE}" sbin/lvm.static || |
438 |
gen_die 'Could not create binary cache' |
446 |
gen_die 'Could not create binary cache' |
Lines 511-517
compile_device_mapper() {
Link Here
|
511 |
cd "${TEMP}" |
519 |
cd "${TEMP}" |
512 |
rm -rf "${TEMP}/device-mapper/man" || |
520 |
rm -rf "${TEMP}/device-mapper/man" || |
513 |
gen_die 'Could not remove manual pages!' |
521 |
gen_die 'Could not remove manual pages!' |
514 |
strip "${TEMP}/device-mapper/sbin/dmsetup" || |
522 |
${UTILS_CROSS_COMPILE}strip "${TEMP}/device-mapper/sbin/dmsetup" || |
515 |
gen_die 'Could not strip dmsetup binary!' |
523 |
gen_die 'Could not strip dmsetup binary!' |
516 |
/bin/tar -jcpf "${DEVICE_MAPPER_BINCACHE}" device-mapper || |
524 |
/bin/tar -jcpf "${DEVICE_MAPPER_BINCACHE}" device-mapper || |
517 |
gen_die 'Could not tar up the device-mapper binary!' |
525 |
gen_die 'Could not tar up the device-mapper binary!' |
Lines 542-548
compile_e2fsprogs() {
Link Here
|
542 |
print_info 1 'blkid: >> Copying to cache...' |
550 |
print_info 1 'blkid: >> Copying to cache...' |
543 |
[ -f "${TEMP}/${E2FSPROGS_DIR}/misc/blkid" ] || |
551 |
[ -f "${TEMP}/${E2FSPROGS_DIR}/misc/blkid" ] || |
544 |
gen_die 'Blkid executable does not exist!' |
552 |
gen_die 'Blkid executable does not exist!' |
545 |
strip "${TEMP}/${E2FSPROGS_DIR}/misc/blkid" || |
553 |
${UTILS_CROSS_COMPILE}strip "${TEMP}/${E2FSPROGS_DIR}/misc/blkid" || |
546 |
gen_die 'Could not strip blkid binary!' |
554 |
gen_die 'Could not strip blkid binary!' |
547 |
bzip2 "${TEMP}/${E2FSPROGS_DIR}/misc/blkid" || |
555 |
bzip2 "${TEMP}/${E2FSPROGS_DIR}/misc/blkid" || |
548 |
gen_die 'bzip2 compression of blkid failed!' |
556 |
gen_die 'bzip2 compression of blkid failed!' |
Lines 575-581
compile_fuse() {
Link Here
|
575 |
# print_info 1 'libfuse: >> Copying to cache...' |
583 |
# print_info 1 'libfuse: >> Copying to cache...' |
576 |
# [ -f "${TEMP}/${FUSE_DIR}/lib/.libs/libfuse.so" ] || |
584 |
# [ -f "${TEMP}/${FUSE_DIR}/lib/.libs/libfuse.so" ] || |
577 |
# gen_die 'libfuse.so does not exist!' |
585 |
# gen_die 'libfuse.so does not exist!' |
578 |
# strip "${TEMP}/${FUSE_DIR}/lib/.libs/libfuse.so" || |
586 |
# ${UTILS_CROSS_COMPILE}strip "${TEMP}/${FUSE_DIR}/lib/.libs/libfuse.so" || |
579 |
# gen_die 'Could not strip libfuse.so!' |
587 |
# gen_die 'Could not strip libfuse.so!' |
580 |
# cd "${TEMP}/${FUSE_DIR}/lib/.libs" |
588 |
# cd "${TEMP}/${FUSE_DIR}/lib/.libs" |
581 |
# tar -cjf "${FUSE_BINCACHE}" libfuse*so* || |
589 |
# tar -cjf "${FUSE_BINCACHE}" libfuse*so* || |
Lines 608-614
compile_unionfs_fuse() {
Link Here
|
608 |
print_info 1 'unionfs-fuse: >> Copying to cache...' |
616 |
print_info 1 'unionfs-fuse: >> Copying to cache...' |
609 |
[ -f "${TEMP}/${UNIONFS_FUSE_DIR}/src/unionfs" ] || |
617 |
[ -f "${TEMP}/${UNIONFS_FUSE_DIR}/src/unionfs" ] || |
610 |
gen_die 'unionfs binary does not exist!' |
618 |
gen_die 'unionfs binary does not exist!' |
611 |
strip "${TEMP}/${UNIONFS_FUSE_DIR}/src/unionfs" || |
619 |
${UTILS_CROSS_COMPILE}strip "${TEMP}/${UNIONFS_FUSE_DIR}/src/unionfs" || |
612 |
gen_die 'Could not strip unionfs binary!' |
620 |
gen_die 'Could not strip unionfs binary!' |
613 |
bzip2 "${TEMP}/${UNIONFS_FUSE_DIR}/src/unionfs" || |
621 |
bzip2 "${TEMP}/${UNIONFS_FUSE_DIR}/src/unionfs" || |
614 |
gen_die 'bzip2 compression of unionfs binary failed!' |
622 |
gen_die 'bzip2 compression of unionfs binary failed!' |