summaryrefslogtreecommitdiff
path: root/core/toolchain/linux/common.mk
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-10-19 21:06:25 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-10-19 21:06:25 +0200
commit15e53a0f5a4b793833d9779b18af3edf65957fd1 (patch)
tree6c7c13a181c5d86eba61ac2b1ab5bd74f5907f54 /core/toolchain/linux/common.mk
parent6e585adec4594ca504f913c1f036635bc00bf898 (diff)
downloadembtoolkit-15e53a0f5a4b793833d9779b18af3edf65957fd1.tar.gz
embtoolkit-15e53a0f5a4b793833d9779b18af3edf65957fd1.tar.bz2
embtoolkit-15e53a0f5a4b793833d9779b18af3edf65957fd1.tar.xz
TOolchain: split linux Makefile and move it to toolchain dir
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'core/toolchain/linux/common.mk')
-rw-r--r--core/toolchain/linux/common.mk48
1 files changed, 48 insertions, 0 deletions
diff --git a/core/toolchain/linux/common.mk b/core/toolchain/linux/common.mk
new file mode 100644
index 0000000..1f8c98c
--- /dev/null
+++ b/core/toolchain/linux/common.mk
@@ -0,0 +1,48 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2009-2014 Abdoulaye Walsimou GAYE.
+#
+# 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 linux.mk
+# \brief common variables and macros for linux kernel
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date May 2009
+################################################################################
+
+pembtk_linux_site = $(or $(pembtk_linux_site_mirror),$(pembtk_linux_site_full))
+pembtk_linux_site_mirror = $(call embtk_uquote,$(CONFIG_EMBTK_LINUX_HAVE_MIRROR))
+pembtk_linux_site_full = $(pembtk_linux_site_base)/$(LINUX_MAJORV)$(pembtk_linux_longterm_v)
+pembtk_linux_site_base = http://ftp.kernel.org/pub/linux/kernel
+pembtk_linux_longterm_v = $(if $(LINUX_LONGTERMV),/longterm/$(LINUX_LONGTERMV))
+
+LINUX_NAME := linux
+LINUX_MAJORV := $(call embtk_pkg_version,linux_major)
+LINUX_LONGTERMV := $(call embtk_pkg_version,linux_longterm)
+LINUX_VERSION := $(call embtk_pkg_version,linux)
+LINUX_SITE := $(pembtk_linux_site)
+LINUX_PACKAGE := linux-$(LINUX_VERSION).tar.xz
+LINUX_SRC_DIR := $(embtk_toolsb)/linux-$(LINUX_VERSION)
+LINUX_BUILD_DIR := $(embtk_toolsb)/linux-$(LINUX_VERSION)
+LINUX_KEEP_SRC_DIR := $(CONFIG_EMBTK_BUILD_LINUX_KERNEL)
+
+#
+# common make options
+#
+LINUX_MAKE_OPTS := quiet=quiet_
+LINUX_MAKE_OPTS += ARCH=$(LINUX_ARCH)
+LINUX_MAKE_OPTS += CROSS_COMPILE=$(CROSS_COMPILE_CACHED)
+LINUX_MAKE_OPTS += HOSTCC="$(HOSTCC)" HOSTCXX="$(HOSTCXX)"