summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/companion_tools.in5
-rw-r--r--scripts/build/companion_tools/050-make.sh26
2 files changed, 31 insertions, 0 deletions
diff --git a/config/companion_tools.in b/config/companion_tools.in
index b0e77c2..d5b78ee 100644
--- a/config/companion_tools.in
+++ b/config/companion_tools.in
@@ -10,6 +10,7 @@ config COMP_TOOLS
prompt "Build some companion tools"
help
Crosstool-NG relies on some external tools to be recent enough, namely:
+ make = 3.81 (in some cases)
m4 >= 1.4.12
autoconf >= 2.63
automake >= 1.10.2
@@ -20,6 +21,10 @@ config COMP_TOOLS
if COMP_TOOLS
+config COMP_TOOLS_make
+ bool
+ prompt "make"
+
config COMP_TOOLS_m4
bool
prompt "m4"
diff --git a/scripts/build/companion_tools/050-make.sh b/scripts/build/companion_tools/050-make.sh
new file mode 100644
index 0000000..fd9c288
--- /dev/null
+++ b/scripts/build/companion_tools/050-make.sh
@@ -0,0 +1,26 @@
+# Build script for make
+
+CT_MAKE_VERSION=3.81
+
+do_companion_tools_make_get() {
+ CT_GetFile "make-${CT_MAKE_VERSION}" \
+ {http,ftp}://ftp.gnu.org/gnu/make
+}
+
+do_companion_tools_make_extract() {
+ CT_Extract "make-${CT_MAKE_VERSION}"
+ CT_Patch "make" "${CT_MAKE_VERSION}"
+}
+
+do_companion_tools_make_build() {
+ CT_DoStep EXTRA "Installing make"
+ mkdir -p "${CT_BUILD_DIR}/build-make"
+ CT_Pushd "${CT_BUILD_DIR}/build-make"
+
+ CT_DoExecLog CFG "${CT_SRC_DIR}/make-${CT_MAKE_VERSION}/configure" \
+ --prefix="${CT_TOOLS_OVERIDE_DIR}"
+ CT_DoExecLog ALL make
+ CT_DoExecLog ALL make install
+ CT_Popd
+ CT_EndStep
+}