From a67d9f6194e9eb7526130f761e2ac3fe5b45471f Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz Date: Oct 04 2017 18:46:17 +0000 Subject: vars/build.vars: adds `dev_packages' target and `dev' meta-target comprising devroot and the former. build.sh, subr/build.subr: adds `dev' meta-target. --- diff --git a/build.sh b/build.sh index 6398859..130bc27 100755 --- a/build.sh +++ b/build.sh @@ -32,7 +32,7 @@ case ${1} in fi; BUILD_PACKAGES_RESTART="$(echo ${ARG_RESTART} | sed "s/,/ /g")"; shift; ;; -host_toolchain|native_toolchain|runtime|lib_packages|leaf_packages|minipix|devroot|world) +host_toolchain|native_toolchain|runtime|lib_packages|leaf_packages|minipix|dev|devroot|world) BUILD_TARGETS_META="${BUILD_TARGETS_META:+${BUILD_TARGETS_META} }${1}"; ;; *=*) set_var_unsafe "${1%%=*}" "${1#*=}"; ;; *) exec cat etc/build.usage; ;; diff --git a/subr/build.subr b/subr/build.subr index 91c0335..1ce52c3 100644 --- a/subr/build.subr +++ b/subr/build.subr @@ -189,6 +189,8 @@ set_env_vars_with_sep() { subst_tgts() { while [ ${#} -ge 1 ]; do case "${1}" in + dev) + echo "${DEV_PACKAGES}"; ;; devroot) echo "${DEVROOT_PACKAGES}"; ;; world) echo "${WORLD_PACKAGES}"; ;; diff --git a/vars/build.vars b/vars/build.vars index ec2c4a5..b5e7d5e 100644 --- a/vars/build.vars +++ b/vars/build.vars @@ -595,6 +595,17 @@ LIB_PACKAGES_PREFIX="${PREFIX_NATIVE}"; : ${PKG_LLVM_HOST_MAKEFLAGS_INSTALL:=DESTDIR=${PREFIX}}; # +# Build target dev_packages +# +DEV_PACKAGES_CFLAGS_CONFIGURE="${LIB_PACKAGES_CFLAGS_CONFIGURE}"; +DEV_PACKAGES_CONFIGURE_ARGS="${LIB_PACKAGES_CONFIGURE_ARGS}"; +DEV_PACKAGES_LDFLAGS_CONFIGURE="${LIB_PACKAGES_LDFLAGS_CONFIGURE}"; +DEV_PACKAGES_MAKEFLAGS_INSTALL="${LIB_PACKAGES_MAKEFLAGS_INSTALL}"; +DEV_PACKAGES_PACKAGES=" +ncurses ncursesw coreutils bash libz git make sed grep findutils m4 flex bison diffutils patchutils gzip tar"; +DEV_PACKAGES_PREFIX="${LIB_PACKAGES_PREFIX}"; + +# # Build target leaf_packages # LEAF_PACKAGES_CFLAGS_CONFIGURE="${LEAF_PACKAGES_CFLAGS_CONFIGURE_DEFAULT:+${LEAF_PACKAGES_CFLAGS_CONFIGURE_DEFAULT} }--sysroot=${PREFIX_NATIVE}"; @@ -1031,7 +1042,8 @@ MINIPIX_PREFIX="${PREFIX_MINIPIX}"; # Build meta-targets # DEVROOT_PACKAGES="host_toolchain native_toolchain runtime"; +DEV_PACKAGES="host_toolchain native_toolchain runtime dev_packages"; WORLD_PACKAGES="host_toolchain native_toolchain runtime lib_packages leaf_packages minipix"; -ALL_TARGETS="host_toolchain native_toolchain runtime lib_packages leaf_packages minipix devroot world"; +ALL_TARGETS="host_toolchain native_toolchain runtime lib_packages leaf_packages minipix devroot dev world"; # vim:filetype=sh textwidth=0