summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk')
-rw-r--r--mk/gcc.mk23
-rw-r--r--mk/gmphost.mk0
-rw-r--r--mk/initialpath.mk45
-rw-r--r--mk/mips_arch.mk82
-rw-r--r--mk/mpfrhost.mk14
-rw-r--r--mk/target_mcu.mk34
-rw-r--r--mk/toolchain.mk0
7 files changed, 198 insertions, 0 deletions
diff --git a/mk/gcc.mk b/mk/gcc.mk
new file mode 100644
index 0000000..22ab26e
--- /dev/null
+++ b/mk/gcc.mk
@@ -0,0 +1,23 @@
+#########################################################################################
+# GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
+# Copyright(C) 2009 GAYE Abdoulaye Walsimou. 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 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.
+#
+# 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 gcc.mk
+# \brief gcc.mk of Embtoolkit
+# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
+# \date May 2009
+#########################################################################################
diff --git a/mk/gmphost.mk b/mk/gmphost.mk
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/mk/gmphost.mk
diff --git a/mk/initialpath.mk b/mk/initialpath.mk
new file mode 100644
index 0000000..be2c456
--- /dev/null
+++ b/mk/initialpath.mk
@@ -0,0 +1,45 @@
+#########################################################################################
+# GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
+# Copyright(C) 2009 GAYE Abdoulaye Walsimou. 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 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.
+#
+# 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 initialpath.mk
+# \brief initialpath of Embtoolkit. Here we define SYSROOT, TOOLS, TOOLS_BUILD
+# \brief PACKAGES_BUILD and ROOTFS.
+# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
+# \date May 2009
+#########################################################################################
+
+SYSROOT := $(EMBTK_ROOT)/sysroot-$(GNU_TARGET)-$(GNU_ARCH)
+TOOLS := $(EMBTK_ROOT)/tools-$(GNU_TARGET)-$(GNU_ARCH)
+TOOLS_BUILD := $(EMBTK_ROOT)/tools_build-$(GNU_TARGET)-$(GNU_ARCH)
+PACKAGES_BUILD := $(EMBTK_ROOT)/packages_build-$(GNU_TARGET)-$(GNU_ARCH)
+ROOTFS := $(EMBTK_ROOT)/rootfs-$(GNU_TARGET)-$(GNU_ARCH)
+
+export SYSROOT TOOLS TOOLS_BUILD PACKAGES_BUILD ROOTFS
+
+mkinitialpath:
+ @mkdir -p $(SYSROOT)
+ @cp -Rp $(EMBTK_ROOT)/src/target_skeleton/* $(SYSROOT)/
+ @mkdir -p $(ROOTFS)
+ @cp -Rp $(EMBTK_ROOT)/src/target_skeleton/* $(ROOTFS)/
+ @mkdir -p $(TOOLS)
+ @mkdir -p $(TOOLS_BUILD)
+ @mkdir -p $(PACKAGES_BUILD)
+
+rmallpath:
+ @rm -Rf $(SYSROOT) $(TOOLS) $(TOOLS_BUILD) $(PACKAGES_BUILD) $(ROOTFS)
+
diff --git a/mk/mips_arch.mk b/mk/mips_arch.mk
new file mode 100644
index 0000000..c2893e9
--- /dev/null
+++ b/mk/mips_arch.mk
@@ -0,0 +1,82 @@
+#########################################################################################
+# GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
+# Copyright(C) 2009 GAYE Abdoulaye Walsimou. 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 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.
+#
+# 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 mips_arch.mk
+# \brief mips_arch.mk of Embtoolkit
+# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
+# \date May 2009
+#########################################################################################
+
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS),y)
+LINUX_ARCH := mips
+
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS1_LITTLE),y)
+GNU_TARGET := mipsel-linux
+GNU_ARCH := mips1
+endif
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS1_BIG),y)
+GNU_TARGET := mipseb-linux
+GNU_ARCH := mips1
+endif
+
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS2_LITTLE),y)
+GNU_TARGET := mipsel-linux
+GNU_ARCH := mips2
+endif
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS2_BIG),y)
+GNU_TARGET := mipseb-linux
+GNU_ARCH := mips2
+endif
+
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS3_LITTLE),y)
+GNU_TARGET := mipsel-linux
+GNU_ARCH := mips3
+endif
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS3_BIG),y)
+GNU_TARGET := mipseb-linux
+GNU_ARCH := mips3
+endif
+
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS32_LITTLE),y)
+GNU_TARGET := mipsel-linux
+GNU_ARCH := mips32
+endif
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS32_BIG),y)
+GNU_TARGET := mipseb-linux
+GNU_ARCH := mips32
+endif
+
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS32R2_LITTLE),y)
+GNU_TARGET := mipsel-linux
+GNU_ARCH := mips32r2
+endif
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS32R2_BIG),y)
+GNU_TARGET := mipseb-linux
+GNU_ARCH := mips32r2
+endif
+
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS64_LITTLE),y)
+GNU_TARGET := mipsel-linux
+GNU_ARCH := mips64
+endif
+ifeq ($(CONFIG_EMBTK_ARCH_MIPS_MIPS64_BIG),y)
+GNU_TARGET := mipseb-linux
+GNU_ARCH := mips64
+endif
+
+endif
diff --git a/mk/mpfrhost.mk b/mk/mpfrhost.mk
new file mode 100644
index 0000000..d2def52
--- /dev/null
+++ b/mk/mpfrhost.mk
@@ -0,0 +1,14 @@
+
+MPFR_HOST_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_MPFR_HOST_VERSION_STRING)))
+MPFR_HOST_SITE := http://www.mpfr.org/mpfr-$(MPFR_HOST_VERSION)
+MPFR_HOST_COMPRESSOR := tar.bz2
+MPFR_HOST_COMPRESSOR_FLAGS := -xjf
+MPFR_HOST_DECOMPRESSOR := tar
+MPFR_HOST_PACKAGE := mpfr-$(MPFR_HOST_VERSION).$(MPFR_HOST_COMPRESSOR)
+MPFR_HOST_BUILD_DIR := $(TOOLS_BUILD)/$(MPFR_HOST_PACKAGE)
+
+DOWNLOAD_MPFR_HOST:
+ @test -e $(DOWNLOAD_DIR)/$(MPFR_HOST_PACKAGE) || \
+ wget -P $(DOWNLOAD_DIR) $(MPFR_HOST_SITE)/$(MPFR_HOST_PACKAGE)
+
+BUILD_MPFR_HOST: $(DECROMPRESS_MPFR_HOST) $()
diff --git a/mk/target_mcu.mk b/mk/target_mcu.mk
new file mode 100644
index 0000000..5449130
--- /dev/null
+++ b/mk/target_mcu.mk
@@ -0,0 +1,34 @@
+#########################################################################################
+# GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
+# Copyright(C) 2009 GAYE Abdoulaye Walsimou. 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 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.
+#
+# 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 target_mcu.mk
+# \brief target_mcu.mk of Embtoolkit. Here we define LINUX_ARCH, GNU_ARCH and
+# \brief GNU_TARGET.
+# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
+# \date May 2009
+#########################################################################################
+
+#ARM
+
+#M68K
+
+#MIPS
+include $(EMBTK_ROOT)/mk/mips_arch.mk
+
+
+
diff --git a/mk/toolchain.mk b/mk/toolchain.mk
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/mk/toolchain.mk