Buildroot SDK: the +PATH+ will contain the SDK binaries, standard
_autotools_ variables will be defined with the appropriate values, and
+CONFIGURE_FLAGS+ will contain basic +./configure+ options to
-cross-compile _autotools_ projects. Note however that once this script
-is sourced, the environment is setup only for cross-compilation, and
-no longer for native compilation.
+cross-compile _autotools_ projects. It also provides some useful
+commands. Note however that once this script is sourced, the
+environment is setup only for cross-compilation, and no longer for
+native compilation.
Some tips:
* PATH now contains the SDK utilities
* Standard autotools variables (CC, LD, CFLAGS) are exported
-* To configure do "./configure $CONFIGURE_FLAGS"
+* To configure do "./configure $CONFIGURE_FLAGS" or use
+ the "configure" alias
EOF
SDK_PATH=$(dirname $(realpath "${BASH_SOURCE[0]}"))
--sysconfdir=/etc \
--localstatedir=/var \
--program-prefix=\"\n" >> $(ENVIRONMENT_SETUP_FILE)
+ printf "alias configure=\"./configure \$${CONFIGURE_FLAGS}\"\n" \
+ >> $(ENVIRONMENT_SETUP_FILE)
$(SED) 's%$(HOST_DIR)%\$$SDK_PATH%g' \
-e 's%$(HOST_DIR)/bin/%%g' \
-e '/^export "PATH=/c\' \