summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2011-01-16 15:54:07 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2011-01-16 15:54:07 +0100
commit12a5cf6c5e55275aad4e09bb9a36da690997c37d (patch)
treeb2e2ece6a4116d4b683a9c62d23ee9960322f2c8
parent3cb2be00faf1eb6e2b7600e8064978cbda6c6e52 (diff)
downloadembtoolkit-12a5cf6c5e55275aad4e09bb9a36da690997c37d.tar.gz
embtoolkit-12a5cf6c5e55275aad4e09bb9a36da690997c37d.tar.bz2
embtoolkit-12a5cf6c5e55275aad4e09bb9a36da690997c37d.tar.xz
Toolchain: autotools: use generic macros
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r--kconfig/autoconf.kconfig44
-rw-r--r--kconfig/automake.kconfig44
-rw-r--r--kconfig/libtool.kconfig44
-rw-r--r--kconfig/m4.kconfig44
-rw-r--r--kconfig/toolchain.kconfig7
-rw-r--r--mk/autoconf.mk41
-rw-r--r--mk/automake.mk41
-rw-r--r--mk/libtool.mk20
-rw-r--r--mk/m4.mk20
9 files changed, 237 insertions, 68 deletions
diff --git a/kconfig/autoconf.kconfig b/kconfig/autoconf.kconfig
new file mode 100644
index 0000000..d6416a2
--- /dev/null
+++ b/kconfig/autoconf.kconfig
@@ -0,0 +1,44 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2011 Abdoulaye Walsimou GAYE. All rights reserved.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file autoconf.kconfig
+# \brief autoconf.kconfig of Embtoolkit.
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date January 2011
+################################################################################
+
+config EMBTK_HAVE_AUTOCONF
+ bool
+ select EMBTK_AUTOCONF_PKG_IS_TARBZ2
+ default y
+ help
+ autoconf for autotools.
+
+config EMBTK_AUTOCONF_VERSION_STRING
+ string
+ default "2.68"
+
+config EMBTK_AUTOCONF_NEED_PATCH
+ bool
+config EMBTK_AUTOCONF_NEED_AUTORECONF
+ bool
+config EMBTK_AUTOCONF_PKG_IS_TARGZ
+ bool
+config EMBTK_AUTOCONF_PKG_IS_TARBZ2
+ bool
diff --git a/kconfig/automake.kconfig b/kconfig/automake.kconfig
new file mode 100644
index 0000000..7d747fb
--- /dev/null
+++ b/kconfig/automake.kconfig
@@ -0,0 +1,44 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2011 Abdoulaye Walsimou GAYE. All rights reserved.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file automake.kconfig
+# \brief automake.kconfig of Embtoolkit.
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date January 2011
+################################################################################
+
+config EMBTK_HAVE_AUTOMAKE
+ bool
+ select EMBTK_AUTOMAKE_PKG_IS_TARBZ2
+ default y
+ help
+ automake for autotools.
+
+config EMBTK_AUTOMAKE_VERSION_STRING
+ string
+ default "1.11.1"
+
+config EMBTK_AUTOMAKE_NEED_PATCH
+ bool
+config EMBTK_AUTOMAKE_NEED_AUTORECONF
+ bool
+config EMBTK_AUTOMAKE_PKG_IS_TARGZ
+ bool
+config EMBTK_AUTOMAKE_PKG_IS_TARBZ2
+ bool
diff --git a/kconfig/libtool.kconfig b/kconfig/libtool.kconfig
new file mode 100644
index 0000000..ec34ae1
--- /dev/null
+++ b/kconfig/libtool.kconfig
@@ -0,0 +1,44 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2011 Abdoulaye Walsimou GAYE. All rights reserved.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file libtool.kconfig
+# \brief libtool.kconfig of Embtoolkit.
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date January 2011
+################################################################################
+
+config EMBTK_HAVE_LIBTOOL
+ bool
+ select EMBTK_LIBTOOL_PKG_IS_TARGZ
+ default y
+ help
+ libtool for autotools.
+
+config EMBTK_LIBTOOL_VERSION_STRING
+ string
+ default "2.4"
+
+config EMBTK_LIBTOOL_NEED_PATCH
+ bool
+config EMBTK_LIBTOOL_NEED_AUTORECONF
+ bool
+config EMBTK_LIBTOOL_PKG_IS_TARGZ
+ bool
+config EMBTK_LIBTOOL_PKG_IS_TARBZ2
+ bool
diff --git a/kconfig/m4.kconfig b/kconfig/m4.kconfig
new file mode 100644
index 0000000..7d12806
--- /dev/null
+++ b/kconfig/m4.kconfig
@@ -0,0 +1,44 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2011 Abdoulaye Walsimou GAYE. All rights reserved.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file m4.kconfig
+# \brief m4.kconfig of Embtoolkit.
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date January 2011
+################################################################################
+
+config EMBTK_HAVE_M4
+ bool
+ select EMBTK_M4_PKG_IS_TARBZ2
+ default y
+ help
+ m4 for autotools.
+
+config EMBTK_M4_VERSION_STRING
+ string
+ default "1.4.15"
+
+config EMBTK_M4_NEED_PATCH
+ bool
+config EMBTK_M4_NEED_AUTORECONF
+ bool
+config EMBTK_M4_PKG_IS_TARGZ
+ bool
+config EMBTK_M4_PKG_IS_TARBZ2
+ bool
diff --git a/kconfig/toolchain.kconfig b/kconfig/toolchain.kconfig
index eb58c84..233562b 100644
--- a/kconfig/toolchain.kconfig
+++ b/kconfig/toolchain.kconfig
@@ -77,3 +77,10 @@ menu "MPC"
source "kconfig/mpchost.kconfig"
endmenu
+#
+# Autotools
+#
+source kconfig/m4.kconfig
+source kconfig/libtool.kconfig
+source kconfig/autoconf.kconfig
+source kconfig/automake.kconfig
diff --git a/mk/autoconf.mk b/mk/autoconf.mk
index 2b0ba83..9180a4c 100644
--- a/mk/autoconf.mk
+++ b/mk/autoconf.mk
@@ -2,18 +2,19 @@
# Embtoolkit
# Copyright(C) 2010-2011 Abdoulaye Walsimou GAYE. All rights reserved.
#
-# This program is free software; you can distribute it and/or modify it
-# under the terms of the GNU General Public License
-# (Version 2 or later) published by the Free Software Foundation.
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
#
-# This program is distributed in the hope it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
-# for more details.
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
################################################################################
#
# \file autoconf.mk
@@ -22,12 +23,16 @@
# \date February 2010
################################################################################
-AUTOCONF_VERSION := 2.68
+AUTOCONF_NAME := autoconf
+AUTOCONF_VERSION := $(call EMBTK_GET_PKG_VERSION,AUTOCONF)
AUTOCONF_SITE := http://ftp.gnu.org/gnu/autoconf
+AUTOCONF_SITE_MIRROR3 := ftp://ftp.embtoolkit.org/embtoolkit.org/packages-mirror
+AUTOCONF_PATCH_SITE := ftp://ftp.embtoolkit.org/embtoolkit.org/autoconf/$(AUTOCONF_VERSION)
AUTOCONF_PACKAGE := autoconf-$(AUTOCONF_VERSION).tar.bz2
+AUTOCONF_SRC_DIR := $(TOOLS_BUILD)/autoconf-$(AUTOCONF_VERSION)
AUTOCONF_BUILD_DIR := $(TOOLS_BUILD)/autoconf-$(AUTOCONF_VERSION)
-AUTOCONF_DIR := $(HOSTTOOLS)/usr
+AUTOCONF_DIR := $(HOSTTOOLS)/usr
AUTOCONF := $(AUTOCONF_DIR)/bin/autoconf
AUTOHEADER := $(AUTOCONF_DIR)/bin/autoheader
AUTOM4TE := $(AUTOCONF_DIR)/bin/autom4te
@@ -47,18 +52,10 @@ $(AUTOCONF_BUILD_DIR)/.installed: download_autoconf \
@touch $@
download_autoconf:
- $(call EMBTK_GENERIC_MESSAGE,"Downloading $(AUTOCONF_PACKAGE) if \
- necessary...")
- @test -e $(DOWNLOAD_DIR)/$(AUTOCONF_PACKAGE) || \
- wget -O $(DOWNLOAD_DIR)/$(AUTOCONF_PACKAGE) \
- $(AUTOCONF_SITE)/$(AUTOCONF_PACKAGE)
+ $(call EMBTK_DOWNLOAD_PKG,AUTOCONF)
$(AUTOCONF_BUILD_DIR)/.decompressed:
- $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(AUTOCONF_PACKAGE)...")
- @tar -C $(TOOLS_BUILD) -xjf $(DOWNLOAD_DIR)/$(AUTOCONF_PACKAGE)
- @mkdir -p $(AUTOCONF_BUILD_DIR)
- @mkdir -p $(AUTOCONF_DIR)
- @touch $@
+ $(call EMBTK_DECOMPRESS_HOSTPKG,AUTOCONF)
$(AUTOCONF_BUILD_DIR)/.configured:
$(call EMBTK_GENERIC_MESSAGE,"Configuring \
diff --git a/mk/automake.mk b/mk/automake.mk
index 73ec7bd..80ed0fa 100644
--- a/mk/automake.mk
+++ b/mk/automake.mk
@@ -2,18 +2,19 @@
# Embtoolkit
# Copyright(C) 2010-2011 Abdoulaye Walsimou GAYE. All rights reserved.
#
-# This program is free software; you can distribute it and/or modify it
-# under the terms of the GNU General Public License
-# (Version 2 or later) published by the Free Software Foundation.
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
#
-# This program is distributed in the hope it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
-# for more details.
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
################################################################################
#
# \file automake.mk
@@ -22,12 +23,16 @@
# \date February 2010
################################################################################
-AUTOMAKE_VERSION := 1.11.1
+AUTOMAKE_NAME := automake
+AUTOMAKE_VERSION := $(call EMBTK_GET_PKG_VERSION,AUTOMAKE)
AUTOMAKE_SITE := http://ftp.gnu.org/gnu/automake
+AUTOMAKE_SITE_MIRROR3 := ftp://ftp.embtoolkit.org/embtoolkit.org/packages-mirror
+AUTOMAKE_PATCH_SITE := ftp://ftp.embtoolkit.org/embtoolkit.org/automake/$(AUTOMAKE_VERSION)
AUTOMAKE_PACKAGE := automake-$(AUTOMAKE_VERSION).tar.bz2
+AUTOMAKE_SRC_DIR := $(TOOLS_BUILD)/automake-$(AUTOMAKE_VERSION)
AUTOMAKE_BUILD_DIR := $(TOOLS_BUILD)/automake-$(AUTOMAKE_VERSION)
-AUTOMAKE_DIR := $(HOSTTOOLS)/usr
+AUTOMAKE_DIR := $(HOSTTOOLS)/usr
ACLOCAL := $(AUTOMAKE_DIR)/bin/aclocal
AUTOMAKE := $(AUTOMAKE_DIR)/bin/automake
@@ -42,18 +47,10 @@ $(AUTOMAKE_BUILD_DIR)/.installed: download_automake \
@touch $@
download_automake:
- $(call EMBTK_GENERIC_MESSAGE,"Downloading $(AUTOMAKE_PACKAGE) if \
- necessary...")
- @test -e $(DOWNLOAD_DIR)/$(AUTOMAKE_PACKAGE) || \
- wget -O $(DOWNLOAD_DIR)/$(AUTOMAKE_PACKAGE) \
- $(AUTOMAKE_SITE)/$(AUTOMAKE_PACKAGE)
+ $(call EMBTK_DOWNLOAD_PKG,AUTOMAKE)
$(AUTOMAKE_BUILD_DIR)/.decompressed:
- $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(AUTOMAKE_PACKAGE)...")
- @tar -C $(TOOLS_BUILD) -xjf $(DOWNLOAD_DIR)/$(AUTOMAKE_PACKAGE)
- @mkdir -p $(AUTOMAKE_BUILD_DIR)
- @mkdir -p $(AUTOMAKE_DIR)
- @touch $@
+ $(call EMBTK_DECOMPRESS_HOSTPKG,AUTOMAKE)
$(AUTOMAKE_BUILD_DIR)/.configured:
$(call EMBTK_GENERIC_MESSAGE,"Configuring \
diff --git a/mk/libtool.mk b/mk/libtool.mk
index da23884..d320265 100644
--- a/mk/libtool.mk
+++ b/mk/libtool.mk
@@ -23,12 +23,16 @@
# \date March 2010
################################################################################
-LIBTOOL_VERSION := 2.4
+LIBTOOL_NAME := libtool
+LIBTOOL_VERSION := $(call EMBTK_GET_PKG_VERSION,LIBTOOL)
LIBTOOL_SITE := http://ftp.gnu.org/gnu/libtool
+LIBTOOL_SITE_MIRROR3 := ftp://ftp.embtoolkit.org/embtoolkit.org/packages-mirror
+LIBTOOL_PATCH_SITE := ftp://ftp.embtoolkit.org/embtoolkit.org/libtool/$(LIBTOOL_VERSION)
LIBTOOL_PACKAGE := libtool-$(LIBTOOL_VERSION).tar.gz
+LIBTOOL_SRC_DIR := $(TOOLS_BUILD)/libtool-$(LIBTOOL_VERSION)
LIBTOOL_BUILD_DIR := $(TOOLS_BUILD)/libtool-$(LIBTOOL_VERSION)
-LIBTOOL_DIR := $(HOSTTOOLS)/usr
+LIBTOOL_DIR := $(HOSTTOOLS)/usr
LIBTOOL := $(LIBTOOL_DIR)/bin/libtool
LIBTOOLIZE := $(LIBTOOL_DIR)/bin/libtoolize
@@ -43,18 +47,10 @@ $(LIBTOOL_BUILD_DIR)/.installed: download_libtool \
@touch $@
download_libtool:
- $(call EMBTK_GENERIC_MESSAGE,"Downloading $(LIBTOOL_PACKAGE) if \
- necessary...")
- @test -e $(DOWNLOAD_DIR)/$(LIBTOOL_PACKAGE) || \
- wget -O $(DOWNLOAD_DIR)/$(LIBTOOL_PACKAGE) \
- $(LIBTOOL_SITE)/$(LIBTOOL_PACKAGE)
+ $(call EMBTK_DOWNLOAD_PKG,LIBTOOL)
$(LIBTOOL_BUILD_DIR)/.decompressed:
- $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(LIBTOOL_PACKAGE)...")
- @tar -C $(TOOLS_BUILD) -xzf $(DOWNLOAD_DIR)/$(LIBTOOL_PACKAGE)
- @mkdir -p $(LIBTOOL_BUILD_DIR)
- @mkdir -p $(LIBTOOL_DIR)
- @touch $@
+ $(call EMBTK_DECOMPRESS_HOSTPKG,LIBTOOL)
$(LIBTOOL_BUILD_DIR)/.configured:
$(call EMBTK_GENERIC_MESSAGE,"Configuring \
diff --git a/mk/m4.mk b/mk/m4.mk
index 9b176e6..dd6f988 100644
--- a/mk/m4.mk
+++ b/mk/m4.mk
@@ -23,13 +23,17 @@
# \date February 2010
################################################################################
-M4_VERSION := 1.4.15
+M4_NAME := m4
+M4_VERSION := $(call EMBTK_GET_PKG_VERSION,M4)
M4_SITE := http://ftp.gnu.org/gnu/m4
+M4_SITE_MIRROR3 := ftp://ftp.embtoolkit.org/embtoolkit.org/packages-mirror
+M4_PATCH_SITE := ftp://ftp.embtoolkit.org/embtoolkit.org/m4/$(M4_VERSION)
M4_PACKAGE := m4-$(M4_VERSION).tar.bz2
+M4_SRC_DIR := $(TOOLS_BUILD)/m4-$(M4_VERSION)
M4_BUILD_DIR := $(TOOLS_BUILD)/m4-$(M4_VERSION)
+
M4_DIR := $(HOSTTOOLS)/usr
M4_BIN := $(M4_DIR)/bin/m4
-
M4 := $(M4_BIN)
export M4
@@ -42,18 +46,10 @@ $(M4_BUILD_DIR)/.installed: download_m4 \
@touch $@
download_m4:
- $(call EMBTK_GENERIC_MESSAGE,"Downloading $(M4_PACKAGE) if \
- necessary...")
- @test -e $(DOWNLOAD_DIR)/$(M4_PACKAGE) || \
- wget -O $(DOWNLOAD_DIR)/$(M4_PACKAGE) \
- $(M4_SITE)/$(M4_PACKAGE)
+ $(call EMBTK_DOWNLOAD_PKG,M4)
$(M4_BUILD_DIR)/.decompressed:
- $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(M4_PACKAGE)...")
- @tar -C $(TOOLS_BUILD) -xjf $(DOWNLOAD_DIR)/$(M4_PACKAGE)
- @mkdir -p $(M4_BUILD_DIR)
- @mkdir -p $(M4_DIR)
- @touch $@
+ $(call EMBTK_DECOMPRESS_HOSTPKG,M4)
$(M4_BUILD_DIR)/.configured:
$(call EMBTK_GENERIC_MESSAGE,"Configuring \