mirror of
https://github.com/bee/bee-lfs.git
synced 2025-07-24 12:19:44 +00:00
add some scripts to make setup, build and install easy
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/bee-lfs-user.conf
|
10
_load-config.lib
Normal file
10
_load-config.lib
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
DEFAULTCONFIG=bee-lfs-default.conf
|
||||
|
||||
if [ -r "${DEFAULTCONFIG}" ] ; then
|
||||
source "${DEFAULTCONFIG}"
|
||||
else
|
||||
echo "WARNING: ${DEFAULTCONFIG} not found.."
|
||||
sleep 1
|
||||
fi
|
||||
|
33
bee-lfs-default.conf
Normal file
33
bee-lfs-default.conf
Normal file
@ -0,0 +1,33 @@
|
||||
|
||||
# DO NOT EDIT THIS FILE - CREATE bee-lfs-user.conf TO ADD CHANGES
|
||||
|
||||
# chapter 4.1 / 4.4
|
||||
|
||||
export LFS=/mnt/lfs
|
||||
|
||||
# chapter 4.2
|
||||
# - just define the /tools-prefix to be used
|
||||
# - use chapter04/create-tools-directory.sh to create it
|
||||
|
||||
export LFS_PREFIX=/tools
|
||||
|
||||
# chapter 4.4
|
||||
# - even if set via special user's environment set it here again
|
||||
|
||||
umask 022
|
||||
|
||||
export LC_ALL=POSIX
|
||||
export LFS_TGT=$(uname -m)-lfs-linux-gnu
|
||||
|
||||
# PATH will be set in the bee-files
|
||||
|
||||
# chapter 4.5
|
||||
|
||||
__NUMCPUS=$(grep -c processor /proc/cpuinfo)
|
||||
|
||||
export BEE_MAKEFLAGS="-j${__NUMCPUS}"
|
||||
|
||||
if [ -e bee-lfs-user.conf ] ; then
|
||||
. bee-lfs-user.conf
|
||||
fi
|
||||
|
9
chapter04-setup.sh
Executable file
9
chapter04-setup.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
source _load-config.lib
|
||||
|
||||
set -e
|
||||
|
||||
mkdir -pv ${LFS}${LFS_PREFIX}
|
||||
mkdir -pv ${LFS_PREFIX%/*}
|
||||
ln -sv ${LFS}${LFS_PREFIX} ${LFS_PREFIX%/*}/
|
38
chapter05-build-and-install.sh
Executable file
38
chapter05-build-and-install.sh
Executable file
@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
source _load-config.lib
|
||||
|
||||
for bee in \
|
||||
tc-binutils_pass1-2.22-0.bee \
|
||||
tc-gcc_pass1-4.6.2-0.bee \
|
||||
tc-linux-api-headers-3.2.6-0.bee \
|
||||
tc-glibc-2.14.1-0.bee \
|
||||
tc-adjust-toolchain-0-0.bee \
|
||||
tc-binutils_pass2-2.22-0.bee \
|
||||
tc-gcc_pass2-4.6.2-0.bee \
|
||||
tc-tcl-8.5.11-0.bee \
|
||||
tc-expect-5.45-0.bee \
|
||||
tc-dejagnu-1.5-0.bee \
|
||||
tc-check-0.9.8-0.bee \
|
||||
tc-ncurses-5.9-0.bee \
|
||||
tc-bash-4.2-0.bee \
|
||||
tc-bzip2-1.0.6-0.bee \
|
||||
tc-coreutils-8.15-0.bee \
|
||||
tc-diffutils-3.2-0.bee \
|
||||
tc-file-5.10-0.bee \
|
||||
tc-findutils-4.4.2-0.bee \
|
||||
tc-gawk-4.0.0-0.bee \
|
||||
tc-gettext-0.18.1.1-0.bee \
|
||||
tc-grep-2.10-0.bee \
|
||||
tc-gzip-1.4-0.bee \
|
||||
tc-m4-1.4.16-0.bee \
|
||||
tc-make-3.82-0.bee \
|
||||
tc-patch-2.6.1-0.bee \
|
||||
tc-perl-5.14.2-0.bee \
|
||||
tc-sed-4.2.1-0.bee \
|
||||
tc-tar-1.26-0.bee \
|
||||
tc-texinfo-4.13a-0.bee \
|
||||
tc-xz-5.0.3-0.bee ; do
|
||||
beesh "chapter05/${bee}" --install --no-archive-build "${@}"
|
||||
done
|
||||
|
Reference in New Issue
Block a user