summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2017-10-04 20:46:17 +0200
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2017-10-04 20:46:17 +0200
commita67d9f6194e9eb7526130f761e2ac3fe5b45471f (patch)
tree660bf5fb502f42f41e51d96a910285c08f824196
parent06cf4b62ec4113933fd02b8d178978bb44ef53e0 (diff)
downloadmidipix_build-a67d9f6194e9eb7526130f761e2ac3fe5b45471f.tar.bz2
midipix_build-a67d9f6194e9eb7526130f761e2ac3fe5b45471f.tar.xz
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.
-rwxr-xr-xbuild.sh2
-rw-r--r--subr/build.subr2
-rw-r--r--vars/build.vars14
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
@@ -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