various typo fixes and progress up to 8.8

This commit is contained in:
phanes
2023-02-26 15:36:36 -05:00
parent 7868997024
commit 05c65e8d1d
34 changed files with 1859 additions and 21 deletions

View File

@@ -55,7 +55,7 @@ TEMP_STAGE_DIR=${T_SYSROOT}/source_stage
# from project_config
SOURCES_DIR=${dir_sources}
PATCHES_DIR=${dir_patches}
LOGS_ROOT=${dir_logs}
LOGS_ROOT=${dir_logs}/apps/stage1
# fail the unit in the event of a non-zero value passed
# used primarily to check exit codes on previous commands

View File

@@ -54,7 +54,7 @@ TEMP_STAGE_DIR=${T_SYSROOT}/source_stage
# from project_config
SOURCES_DIR=${dir_sources}
PATCHES_DIR=${dir_patches}
LOGS_ROOT=${dir_logs}
LOGS_ROOT=${dir_logs}/apps/stage2
# fail the unit in the event of a non-zero value passed
# used primarily to check exit codes on previous commands

View File

@@ -55,7 +55,8 @@ TEMP_STAGE_DIR=/source_stage
# from project_config
SOURCES_DIR=/rex_embedded/stage/sources
PATCHES_DIR=/rex_embedded/stage/patches
LOGS_ROOT=/rex_embedded/logs
LOGS_ROOT=/rex_embedded/logs/apps/stage3
CONFIGS_DIR=/rex_embedded/configs
# fail the unit in the event of a non-zero value passed
# used primarily to check exit codes on previous commands

View File

@@ -0,0 +1,71 @@
set -a
# We now do paths relative to / since we are INSIDE $T_SYSROOT
TERM=xterm-256color
COLORTERM=truecolor
LC_ALL=C
function echofail() {
echo
echo "FAILED: $1"
echo
exit 1
}
rex_dir="/rex_embedded"
# keeps talking about T_SYSROOT as $LFS
# wants $LFS path to be a mount
# needs to be set for any user including root
#2.6
# sourced from project_config
T_SYSROOT="/"
LFS=${T_SYSROOT}
# 4.3 we skip user and group creation, it's expected to be done before
# you start if you want a different user than you're running as
# == after that, configure the rex unit for dir creation to use that user
if [ "$(id -u)" -ne 0 ]; then
echo "Not running as root."
fi
# 4.4
# The set +h command turns off bash's hash function, which affects caching of paths for executables
set +h
# ensures newly created files and directories are only writable by their owner, but are readable and executable by anyone
umask 022
# sets a comptabile machine name description for use when building crosstools that isn't going to be what the host system is using
# $LFS_TGT is what LFS uses for this
T_TRIPLET=x86_64-dhl-linux-gnu
# prevents some configure scripts from looking in the wrong place for config.site
CONFIG_SITE=/usr/share/config.site
# 4.5
MAKEFLAGS="-j$(nproc)"
# where the cross-compiler gets installed ($LFS/tools)
TEMP_STAGE_DIR=/source_stage
# from project_config
SOURCES_DIR=/rex_embedded/stage/sources
PATCHES_DIR=/rex_embedded/stage/patches
LOGS_ROOT=/rex_embedded/logs/apps/stage4
CONFIGS_DIR=/rex_embedded/configs
# fail the unit in the event of a non-zero value passed
# used primarily to check exit codes on previous commands
# also a great convenient place to add in a "press any key to continue"
assert_zero() {
if [[ "$1" -eq 0 ]]; then
return
else
exit $1
fi
}
ARCHLIB_DIR=/lib64
PATH=/usr/bin:/usr/sbin