From a67d9f6194e9eb7526130f761e2ac3fe5b45471f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Wed, 4 Oct 2017 20:46:17 +0200 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. --- build.sh | 2 +- subr/build.subr | 2 ++ vars/build.vars | 14 +++++++++++++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 63988597..130bc272 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 91c03357..1ce52c3c 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 ec2c4a50..b5e7d5ef 100644 --- a/vars/build.vars +++ b/vars/build.vars @@ -594,6 +594,17 @@ LIB_PACKAGES_PREFIX="${PREFIX_NATIVE}"; : ${PKG_LLVM_HOST_BUILD_TYPE:=host}; : ${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 # @@ -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 -- cgit v1.2.3