From 9981ef4098a5c78316a2a2210eff0878dddf0c7b Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Mon, 2 Jan 2017 17:22:07 +0100 Subject: Build system: initial option to configure manufacturer in GNU triplet Proposed-by: Jonathan L Signed-off-by: Abdoulaye Walsimou Gaye --- core/kconfig/arch.kconfig | 10 +++++++++- core/mk/targetsys.mk | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/kconfig/arch.kconfig b/core/kconfig/arch.kconfig index b5d34a9..bcc81ef 100644 --- a/core/kconfig/arch.kconfig +++ b/core/kconfig/arch.kconfig @@ -1,6 +1,6 @@ ################################################################################ # Embtoolkit -# Copyright(C) 2009-2013 Abdoulaye Walsimou GAYE. +# Copyright(C) 2009-2017 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 @@ -23,6 +23,14 @@ # \date May 2009 ################################################################################ +config EMBTK_MANUFACTURER + string "Manufacturer or Toolchain provider tag" + help + This tag is the manufacturer part of GNU target triplet. + However, now days it is largely used to identify toolchain provider. + + You can set a tag or leave it empty to use the default value (unknown). + choice prompt "Architecture" help diff --git a/core/mk/targetsys.mk b/core/mk/targetsys.mk index ab76ac4..5624871 100644 --- a/core/mk/targetsys.mk +++ b/core/mk/targetsys.mk @@ -1,6 +1,6 @@ ################################################################################ # Embtoolkit -# Copyright(C) 2009-2014 Abdoulaye Walsimou GAYE . +# Copyright(C) 2009-2017 Abdoulaye Walsimou GAYE . # # This program is free software; you can distribute it and/or modify it # under the terms of the GNU General Public License @@ -28,6 +28,7 @@ # embtk_os-$(CONFIG_EMBTK_OS_LINUX) := linux embtk_os := $(or $(embtk_os-y),invalid-os) +embtk_manufacturer := $(or $(call embtk_uquote,$(CONFIG_EMBTK_MANUFACTURER)),unknown) embtk_clib-$(CONFIG_EMBTK_CLIB_EGLIBC) := eglibc embtk_clib-$(CONFIG_EMBTK_CLIB_GLIBC) := glibc -- cgit v1.2.3