Renamed RE_MAKE to REBUILD_MAKEFILE.
When rebuilding the Makefile we need to know the book version. Added REBUILD_MAKEFILE to configurations validation.
This commit is contained in:
parent
7b6ecc5b8e
commit
a16f769dcf
3 changed files with 19 additions and 8 deletions
|
@ -824,7 +824,7 @@ endif
|
||||||
#--- End Advanced Features
|
#--- End Advanced Features
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
config RE_MAKE
|
config REBUILD_MAKEFILE
|
||||||
bool "Rebuild the Makefile (see help)"
|
bool "Rebuild the Makefile (see help)"
|
||||||
default n
|
default n
|
||||||
depends on !BOOK_BLFS
|
depends on !BOOK_BLFS
|
||||||
|
|
|
@ -20,10 +20,10 @@ validate_config() { # Are the config values sane (within reason)
|
||||||
inline_doc
|
inline_doc
|
||||||
|
|
||||||
# First internal variables, then the ones that change the book's flavour, and lastly system configuration variables
|
# First internal variables, then the ones that change the book's flavour, and lastly system configuration variables
|
||||||
local -r hlfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE MODEL GRSECURITY_HOST TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB CONFIG GETKERNEL PAGE TIMEZONE LANG LC_ALL LUSER LGROUP BLFS_TOOL"
|
local -r hlfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE MODEL GRSECURITY_HOST TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB CONFIG GETKERNEL PAGE TIMEZONE LANG LC_ALL LUSER LGROUP BLFS_TOOL REBUILD_MAKEFILE"
|
||||||
local -r clfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE METHOD ARCH TARGET TARGET32 TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB BOOT_CONFIG CONFIG GETKERNEL VIMLANG PAGE TIMEZONE LANG LUSER LGROUP BLFS_TOOL"
|
local -r clfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE METHOD ARCH TARGET TARGET32 TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB BOOT_CONFIG CONFIG GETKERNEL VIMLANG PAGE TIMEZONE LANG LUSER LGROUP BLFS_TOOL REBUILD_MAKEFILE"
|
||||||
local -r clfs2_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE ARCH TARGET OPTIMIZE REPORT STRIP FSTAB CONFIG GETKERNEL VIMLANG PAGE TIMEZONE LANG LUSER LGROUP BLFS_TOOL"
|
local -r clfs2_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE ARCH TARGET OPTIMIZE REPORT STRIP FSTAB CONFIG GETKERNEL VIMLANG PAGE TIMEZONE LANG LUSER LGROUP BLFS_TOOL REBUILD_MAKEFILE"
|
||||||
local -r lfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB CONFIG GETKERNEL VIMLANG PAGE TIMEZONE LANG LUSER LGROUP BLFS_TOOL CUSTOM_TOOLS"
|
local -r lfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB CONFIG GETKERNEL VIMLANG PAGE TIMEZONE LANG LUSER LGROUP BLFS_TOOL CUSTOM_TOOLS REBUILD_MAKEFILE"
|
||||||
local -r blfs_PARAM_LIST="BRANCH_ID BLFS_ROOT BLFS_XML TRACKING_DIR"
|
local -r blfs_PARAM_LIST="BRANCH_ID BLFS_ROOT BLFS_XML TRACKING_DIR"
|
||||||
|
|
||||||
local -r blfs_tool_PARAM_LIST="BLFS_BRANCH_ID BLFS_ROOT BLFS_XML TRACKING_DIR DEP_LIBXML DEP_LIBXSLT DEP_TIDY DEP_UNZIP DEP_DBXML DEP_DBXSL DEP_LINKS DEP_SUDO DEP_WGET DEP_SVN DEP_GPM"
|
local -r blfs_tool_PARAM_LIST="BLFS_BRANCH_ID BLFS_ROOT BLFS_XML TRACKING_DIR DEP_LIBXML DEP_LIBXSLT DEP_TIDY DEP_UNZIP DEP_DBXML DEP_DBXSL DEP_LINKS DEP_SUDO DEP_WGET DEP_SVN DEP_GPM"
|
||||||
|
@ -113,7 +113,8 @@ inline_doc
|
||||||
BLFS_TOOL | \
|
BLFS_TOOL | \
|
||||||
CUSTOM_TOOLS | \
|
CUSTOM_TOOLS | \
|
||||||
TIMEZONE | \
|
TIMEZONE | \
|
||||||
PAGE) echo -e "`eval echo $PARAM_VALS`" ;;
|
PAGE | \
|
||||||
|
REBUILD_MAKEFILE ) echo -e "`eval echo $PARAM_VALS`" ;;
|
||||||
|
|
||||||
# Envvars that depend on other settings to be displayed
|
# Envvars that depend on other settings to be displayed
|
||||||
GETKERNEL ) if [[ -z "$CONFIG" ]] && [[ -z "$BOOT_CONFIG" ]] ; then
|
GETKERNEL ) if [[ -z "$CONFIG" ]] && [[ -z "$BOOT_CONFIG" ]] ; then
|
||||||
|
|
14
jhalfs
14
jhalfs
|
@ -108,7 +108,7 @@ REPORT=${REPORT:=n}
|
||||||
VIMLANG=${VIMLANG:-n}
|
VIMLANG=${VIMLANG:-n}
|
||||||
GRSECURITY_HOST=${GRSECURITY_HOST:-n}
|
GRSECURITY_HOST=${GRSECURITY_HOST:-n}
|
||||||
CUSTOM_TOOLS=${CUSTOM_TOOLS:-n}
|
CUSTOM_TOOLS=${CUSTOM_TOOLS:-n}
|
||||||
RE_MAKE=${RE_MAKE:-n}
|
REBUILD_MAKEFILE=${REBUILD_MAKEFILE:-n}
|
||||||
|
|
||||||
# Book surces envars
|
# Book surces envars
|
||||||
BRANCH_ID=${BRANCH_ID:=development}
|
BRANCH_ID=${BRANCH_ID:=development}
|
||||||
|
@ -317,7 +317,7 @@ if [[ "$OPTIMIZE" != "0" ]]; then
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
|
|
||||||
if [[ "$RE_MAKE" = "n" ]] ; then
|
if [[ "$REBUILD_MAKEFILE" = "n" ]] ; then
|
||||||
|
|
||||||
# If $BUILDDIR has subdirectories like tools/ or bin/, stop the run
|
# If $BUILDDIR has subdirectories like tools/ or bin/, stop the run
|
||||||
# and notify the user about that.
|
# and notify the user about that.
|
||||||
|
@ -425,6 +425,16 @@ if [[ "$RE_MAKE" = "n" ]] ; then
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# When regeneration the Makefile we need to know also the canonical book version
|
||||||
|
if [[ "$REBUILD_MAKEFILE" = "y" ]] ; then
|
||||||
|
case $PROGNAME in
|
||||||
|
clfs | clfs2 )
|
||||||
|
VERSION=$(xmllint --noent $JHALFSDIR/$BOOK/prologue/$ARCH/bookinfo.xml 2>/dev/null | grep subtitle | sed -e 's/^.*ion //' -e 's/<\/.*//') ;;
|
||||||
|
*)
|
||||||
|
VERSION=$(xmllint --noent $JHALFSDIR/$BOOK/prologue/bookinfo.xml 2>/dev/null | grep subtitle | sed -e 's/^.*ion //' -e 's/<\/.*//') ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
build_Makefile
|
build_Makefile
|
||||||
if [[ "${PROGNAME}" = "lfs" ]]; then
|
if [[ "${PROGNAME}" = "lfs" ]]; then
|
||||||
if [[ "${CUSTOM_TOOLS}" = "y" ]]; then
|
if [[ "${CUSTOM_TOOLS}" = "y" ]]; then
|
||||||
|
|
Reference in a new issue