From 8c0ea1194bc0905926fb9e211c3356f2348c7ca7 Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Tue, 12 May 2009 02:46:17 +0200 Subject: Embtoolkit: Fisrt commit This is the first commit in the embedded system toolkit git repository, formaly embtoolkit. This porject aims to design a tool which helps on building an embedded linux system. The goal of this porject is to use EGLIBC as C Library for linux systems generated. This initial commit is manely just a backup in order to save work done. Signed-off-by: Abdoulaye Walsimou Gaye --- Makefile | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1f6c13c --- /dev/null +++ b/Makefile @@ -0,0 +1,87 @@ +######################################################################################### +# GAYE Abdoulaye Walsimou, +# 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 Makefile +# \brief root Makefile of Embtoolkit +# \author GAYE Abdoulaye Walsimou, +# \date May 2009 +######################################################################################### +VERSION = 0 +PATCHLEVEL = 1 +SUBLEVEL = 0 +EXTRAVERSION = -Beta1 +KERNELVERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) +export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION + +EMBTK_ROOT := $(shell pwd) +export EMBTK_ROOT + +# SHELL used by kbuild +CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ + else if [ -x /bin/bash ]; then echo /bin/bash; \ + else echo sh; fi ; fi) +export CONFIG_SHELL + +HOSTCC = gcc +HOSTCXX = g++ +HOSTCFLAGS = -Wall +HOSTCXXFLAGS = -O2 +export HOSTCC HOSTCXX HOSTCFLAGS HOSTCXXFLAGS + +ifeq ($(Q),) +Q:= +else +Q:=@ +endif +export Q + +-include .config + +ifeq ($(CONFIG_EMBTK_DOWNLOAD_DIR),) +DOWNLOAD_DIR := $(EMBTK_ROOT)/dl +endif + +ifeq ($(CONFIG_EMBTK_DOTCONFIG),) +EMBTK_BUILD := xconfig +else +EMBTK_BUILD := startbuild +endif + +All: $(EMBTK_BUILD) + +xconfig: basic + $(Q)$(MAKE) -f scripts/Makefile.build obj=scripts/kconfig xconfig + +menuconfig: basic + $(Q)$(MAKE) -f scripts/Makefile.build obj=scripts/kconfig menuconfig + +basic: + $(Q)$(MAKE) -f scripts/Makefile.build obj=scripts/basic + +clean: rmallpath + $(Q)$(MAKE) -f scripts/Makefile.clean obj=scripts/kconfig + $(Q)$(MAKE) -f scripts/Makefile.clean obj=scripts/basic + $(Q)rm -rf .config kbuild.log + +startbuild: mkinitialpath mktoolchain + +include mk/target_mcu.mk +include mk/initialpath.mk +include mk/toolchain.mk + + -- cgit v1.2.3