From e5b9d8b84b22fd436d0800bc37044eddfa968149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Fri, 20 Jan 2017 19:14:02 +0100 Subject: build.sh, vars/build.vars: rename `init' target to `invariants,' whose packages are always built. etc/build.usage: excluded from -h screen. --- build.sh | 9 ++++++--- etc/build.usage | 2 +- vars/build.vars | 10 +++++----- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/build.sh b/build.sh index f43565ee..38e64445 100755 --- a/build.sh +++ b/build.sh @@ -33,7 +33,7 @@ case ${1} in if [ -z "${ARG_RESTART_AT}" ]; then ARG_RESTART_AT=ALL; fi; shift; ;; -init|host_toolchain|native_toolchain|runtime|lib_packages|leaf_packages|devroot|world) +host_toolchain|native_toolchain|runtime|lib_packages|leaf_packages|devroot|world) BUILD_TARGETS_META="${BUILD_TARGETS_META:+${BUILD_TARGETS_META} }${1}"; ;; *=*) set_var_unsafe "${1%%=*}" "${1#*=}"; ;; *) exec cat etc/build.usage; ;; @@ -43,6 +43,7 @@ source_vars; clear_env; if [ -z "${BUILD_TARGETS_META}" ]; then BUILD_TARGETS_META=world; fi; +BUILD_TARGETS_META="invariants ${BUILD_TARGETS_META}"; # # Check whether the pathnames in build.vars contain non-empty valid values. @@ -64,7 +65,8 @@ for BUILD_TARGET_LC in $(subst_tgts ${BUILD_TARGETS_META}); do BUILD_TARGET=$(echo ${BUILD_TARGET_LC} | tr a-z A-Z); for BUILD_PACKAGE_LC in $(get_var_unsafe ${BUILD_TARGET}_PACKAGES); do BUILD_PACKAGE=$(echo ${BUILD_PACKAGE_LC} | tr a-z A-Z); - if [ -n "${ARG_RESTART}" ]; then + if [ "${BUILD_TARGET}" != "INVARIANTS" ]\ + && [ -n "${ARG_RESTART}" ]; then if [ "${ARG_RESTART}" != "ALL" ] &&\ ! match_list ${ARG_RESTART} , ${BUILD_PACKAGE_LC}; then log_msg vnfo "Skipped \`${BUILD_PACKAGE_LC}' (-r specified.)"; @@ -86,7 +88,8 @@ for BUILD_TARGET_LC in $(subst_tgts ${BUILD_TARGETS_META}); do fi; continue; fi; - if [ -z "${ARG_RESTART}" ]\ + if [ "${BUILD_TARGET}" != "INVARIANTS" ]\ + && [ -z "${ARG_RESTART}" ]\ && is_build_script_done finish "${BUILD_PACKAGE_LC}"; then log_msg vnfo "Skipped \`${BUILD_PACKAGE_LC}' (already built.)"; : $((BUILD_NSKIP+=1)); BUILD_SCRIPT_RC=0; continue; diff --git a/etc/build.usage b/etc/build.usage index ca854028..a2bc2b1e 100644 --- a/etc/build.usage +++ b/etc/build.usage @@ -22,7 +22,7 @@ usage: ./build.sh [-x] [-a nt32|nt64] [-b debug|release] [-c] [-C] [-h] with GPG; the default compression is xz. -v Be verbose; this currently only affects secure_{cd,rm}() and insecure_mkdir(). [ ...] One of: - init, host_toolchain, native_toolchain, runtime, lib_packages, + host_toolchain, native_toolchain, runtime, lib_packages, leaf_packages, world, or devroot. ${HOME}/midipix_build.vars, ../midipix_build.vars, and build.vars are sourced diff --git a/vars/build.vars b/vars/build.vars index 87b08ae4..6df53ce2 100644 --- a/vars/build.vars +++ b/vars/build.vars @@ -74,9 +74,9 @@ fi; export PATH="${PREFIX}/bin${PATH:+:${PATH}}"; # -# Build target init +# Build target invariants # -INIT_PACKAGES="chainport"; +INVARIANTS_PACKAGES="chainport"; : ${PKG_CHAINPORT_URL:=${GITROOT}/ports/chainport}; : ${PKG_CHAINPORT_URL_TYPE:=git}; : ${PKG_CHAINPORT_BUILD_DIR:=chainport}; @@ -719,8 +719,8 @@ LEAF_PACKAGES_PREFIX="${PREFIX_NATIVE}"; # # Build meta-targets # -DEVROOT_PACKAGES="init host_toolchain native_toolchain runtime"; -WORLD_PACKAGES="init host_toolchain native_toolchain runtime lib_packages leaf_packages"; -ALL_TARGETS="init host_toolchain native_toolchain runtime lib_packages leaf_packages devroot world"; +DEVROOT_PACKAGES="host_toolchain native_toolchain runtime"; +WORLD_PACKAGES="host_toolchain native_toolchain runtime lib_packages leaf_packages"; +ALL_TARGETS="host_toolchain native_toolchain runtime lib_packages leaf_packages devroot world"; # vim:filetype=sh textwidth=0 -- cgit v1.2.3