diff --git a/make/env/defs.base b/make/env/defs.base deleted file mode 100644 index 6c53b6f1e3e..00000000000 --- a/make/env/defs.base +++ /dev/null @@ -1,160 +0,0 @@ -# defs.base - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -##### -# this file initializes: -# -# - vBASE, the base VxMicro directory -# - vMAKE, the base make fragments directory -# - vBSP_BASE_DIR, the base BSP directory -# - vCONFIG_BASE_DIR, the configuration directory -# - build parallelism -# - verbosity levels - -##### -# verify GNU make has the features used by the build system - -$(if $(filter .FEATURES,${.VARIABLES}),,$(error GNU make v3.81+ required)) -$(if $(filter second-expansion,${.FEATURES}),,$(error Your GNU make does not support .SECONDEXPANSION)) -$(if $(filter order-only,${.FEATURES}),,$(error Your GNU make does not support order-only prerequesites)) -$(if $(filter else-if,${.FEATURES}),,$(error Your GNU make does not support else-if conditionals)) - -##### -# $(file ...) has been introduced in GNU make 4.0, but sadly without a way of -# checking for its existence in the .FEATURES variable. - -vFILE_SUPPORTED := $(if $(filter 4.%,${MAKE_VERSION}),y,n) - -##### - -$(if ${VXMICRO_BASE},,$(error VXMICRO_BASE must be set)) - -vBASE ?= $(strip $(subst ${vDRIVE_BASE},,$(subst \,/,${VXMICRO_BASE}))) -vMAKE ?= ${vBASE}/make - -vBSP_BASE_DIR ?= $(strip $(subst \,/,$(or ${VXMICRO_BSP_BASE},${vBASE}/arch/${vARCH}))) -vCONFIG_BASE_DIR ?= $(strip $(subst \,/,${vBASE}/config)) - -##### -# quiet/verbose -# if V=1 from command line => verbose; else, if VERBOSE=1 is set anywhere => verbose; else => quiet - -iCL_V_undefined = -iCL_V_1 = 1 -iCL_V = $(or $(filter undefined,$(origin V)),$(if $(filter "command line","$(origin V)"),$V,)) -iVERBOSE_1 = 1 - -vVERBOSE = $(filter 1,$(or ${iCL_V_${iCL_V}},${iVERBOSE_${VERBOSE}})) - -# for recipe lines: $q = @ if not-verbose -q = $(if ${vVERBOSE},,@) - -SHOW_INFORMATIVE_WARNINGS_ ?= 1 -SHOW_INFORMATIVE_WARNINGS ?= $(SHOW_INFORMATIVE_WARNINGS_$q) - -# invoke with $(eval ${q_include} ) -q_include = $(if ${vVERBOSE},,s)include - -# invoke with $(call q_info,) -q_info = $(if ${vVERBOSE},$(info $1),) - -##### -# To keep things simple, do not allow multiple goals on the command line -# since some goals might require autoconf.mk to exist, and might trigger its -# rule but require prj.conf to exist, while some rules don't. - -iONE_GOAL_1 = y -iONE_GOAL = ${iONE_GOAL_$(words ${MAKECMDGOALS})} - -iDEFAULT_GOAL_0 = y -iDEFAULT_GOAL = ${iDEFAULT_GOAL_$(words ${MAKECMDGOALS})} - -iUNIQUE_GOAL_y = y -iUNIQUE_GOAL_ = n -iUNIQUE_GOAL = ${iUNIQUE_GOAL_${iONE_GOAL}${iDEFAULT_GOAL}} - -ifneq (${iUNIQUE_GOAL},y) - $(error Cannot invoke make with multiple goals on the command line) -endif - -##### -# Find out if the goal is one that does necessitate some user-provided values. -# 'help', and the variants of 'clean' can be invoked without knowing about the -# BSP, ARCH, CPU, etc. - -ifeq ($(strip $(findstring help,${MAKECMDGOALS})),help) - vGOAL_NEEDS_TARGET_SETUP = n -else ifneq ($(strip $(filter ${MAKECMDGOALS},wipe pristine clean)),) - vGOAL_NEEDS_TARGET_SETUP = n -else ifeq ($(strip $(findstring display_settings,${MAKECMDGOALS})),display_settings) - vGOAL_NEEDS_TARGET_SETUP = n -else ifeq ($(strip $(findstring display_variables,${MAKECMDGOALS})),display_variables) - vGOAL_NEEDS_TARGET_SETUP = n -else - vGOAL_NEEDS_TARGET_SETUP = y -endif - -##### -# This variable is only to help when debugging the build system. A build -# system developer can set it to so that some rules do not -# retrigger when the build system change, since this can be very time- -# consuming, especially on Windows. Care must be taken that the part of the -# build system being worked on do not necessitate these rules to retrigger. - -iDEPEND_ON_MAKEFILES = ${MAKEFILE_LIST} - -##### -# figure out which host type we're running on - -include ${vMAKE}/env/defs.host - -##### -# global rules -# -# These are really rules, and should be in a rules. file, but -# they must be stated *prior* to rules that need them to be in-effect. To keep -# things simple, the only fragment that is required to be included *before* -# anything is the current file (it must be the first statement in the top-level -# makefile), so put those rules here. - -.SECONDARY: -.SECONDEXPANSION: -.SUFFIXES: - -##### -# obscure string manipulations - -vCOMMA = , -vEMPTY = -vSPACE = ${vEMPTY} ${vEMPTY} - -include ${vMAKE}/env/rules.shared diff --git a/make/env/defs.host b/make/env/defs.host deleted file mode 100644 index 6fac9848a8f..00000000000 --- a/make/env/defs.host +++ /dev/null @@ -1,48 +0,0 @@ -# defs.host - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# -# abstraction to check which host is in use -sinclude ${vMAKE}/env/defs.check-host -vHOST_OS ?= linux2 - -include ${vMAKE}/env/defs.host.${vHOST_OS} - -vHOST_ARCH ?= ${vHOST_ARCH_FIND} -$(if $(filter x86,${vHOST_ARCH}),,$(error The only supported host architecture is x86)) - -vHOST ?= ${vHOST_ARCH}-${vHOST_OS} -HOS_Bin = ${vBASE}/host/${vHOST}/bin - -export VXMICRO_HOST_OS=${vHOST_OS} -export VXMICRO_HOST_ARCH=${vHOST_ARCH} -export VXMICRO_HOST=${vHOST} - -include ${vMAKE}/env/defs.host.${vHOST} diff --git a/make/env/defs.host.linux2 b/make/env/defs.host.linux2 deleted file mode 100644 index b18c8ea8e41..00000000000 --- a/make/env/defs.host.linux2 +++ /dev/null @@ -1,45 +0,0 @@ -# defs.host.linux2 - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -vHOST_ARCH_x86_64 ?= x86 -vHOST_ARCH_i386 ?= x86 -vHOST_ARCH_i486 ?= x86 -vHOST_ARCH_i586 ?= x86 -vHOST_ARCH_i686 ?= x86 -vHOST_ARCH_FIND ?= ${vHOST_ARCH_$(shell uname -m)} - -# vDRIVE_xxx are only necessary for Windows systems. -# They are deliberately left empty for Linux systems. -vDRIVE_BASE := -vDRIVE_HERE := - -vHERE := $(shell pwd -L) diff --git a/make/env/defs.host.x86-linux2 b/make/env/defs.host.x86-linux2 deleted file mode 100644 index 619ec553e1a..00000000000 --- a/make/env/defs.host.x86-linux2 +++ /dev/null @@ -1,92 +0,0 @@ -# defs.host.x86-linux2 - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -HOS_SlashCnv = -HOS_exe = - -# Not all host apps are supported under Linux so -# the Windows version is used with wine. -HOS_Win32Bin = ${vBASE}/host/x86-win32/bin - -HOS_DeleteFiles = rm -f -HOS_CopyFile = cp -p --no-preserve=timestamps -HOS_Echo = echo -HOS_EchoBlankLine = echo -HOS_Cat = cat -HOS_Cat3Files = ${vBASE}/scripts/cat3files -HOS_MakeDir = mkdir -p -HOS_DelDir = rm -rf -HOS_FileList = ${vBASE}/scripts/filelist -HOS_DirList = ${vBASE}/scripts/dirlist -HOS_Shell = sh -HOS_Rename = mv -HOS_Move = mv -HOS_SysGen = ${vBASE}/scripts/sysgen.py -HOS_GenOffsetHeader = $(HOS_Bin)/genOffsetHeader -HOS_GenConfigAbssym = ${HOS_Bin}/gen_config_abssym -HOS_MultiCmd = ; -HOS_SubdirsList = find -HOS_SubdirsListMod = -type d -HOS_false = false -HOS_true = true -HOS_Touch = touch -HOS_DEC2HEX = $(HOS_Bin)/dec2hex -HOS_GenIdt = $(HOS_Bin)/genIdt -HOS_Link = ln -sf -HOS_Term = x-terminal-emulator -e -HOS_mkevents = ${HOS_Bin}/mkevents -HOS_Sleep = sleep -HOS_Percent = % -HOS_GenHash = ${vBASE}/scripts/gen_file_path_hash - -# for weird rules where a copy is forced and thus the timestamps should not be -# updated if the source of the copy did not get re-generated -HOS_CopyFilePreserveTimestamps = cp -p - -HOS_ccache_y = ccache -HOS_ccache = ${HOS_ccache_${VXMICRO_USE_CCACHE}} -$(if ${HOS_ccache},$(if $(shell which ccache),,$(error no ccache in path))) - -MAKEFLAGS += -r - -# wrsconfig must be called differently depending on the host OS, -# provide a wrapper as well -HOS__Wrsconfig = $(HOS_Bin)/wrsconfig -define HOS_Wrsconfig - $q(cd $(dir $(1)); $(HOS__Wrsconfig) $(2) $(notdir $(1))) - -endef - -# /dev/null, read/write -i_DEVNULL = /dev/null -HOS_DEVNULL_R = ${i_DEVNULL} -HOS_DEVNULL_W = ${i_DEVNULL} diff --git a/make/env/defs.kver b/make/env/defs.kver deleted file mode 100644 index 948d8d8e03f..00000000000 --- a/make/env/defs.kver +++ /dev/null @@ -1,88 +0,0 @@ -# defs.kver - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -##### -# VxMicro kernel version information -# -# This make fragment sets the version variables which are to be built into -# the kernel. -# -# The kernel version has the form 'w.x.y.z', where each field is a single nibble. -# The nibble 'w' represents the generation release number, -# 'x' represents the major release number, -# 'y' represents the minor release number, and -# 'z' represents the revision release number. -# -# The prefix is required as this macro will be combined with two other -# macros (KERNEL_VERSION_FLAGS and KERNEL_VERSION_RESERVED) to create the -# complete 32-bit kernel version value. -##### - -# XXX - get rid of these checks (useless) -ifdef KERNEL_VERSION_GENERATION - $(error KERNEL_VERSION_GENERATION defined by user: not allowed!) -else ifdef KERNEL_VERSION_MAJOR - $(error KERNEL_VERSION_MAJOR defined by user: not allowed!) -else ifdef KERNEL_VERSION_MINOR - $(error KERNEL_VERSION_MINOR defined by user: not allowed!) -else ifdef KERNEL_VERSION_REVISION - $(error KERNEL_VERSION_REVISION defined by user: not allowed!) -endif - -# decimal values -vKVER_GEN = 2 -vKVER_MAJ = 2 -vKVER_MIN = 3 -vKVER_REV = 0 - -# XXX - get rid of these -KERNEL_VERSION_GENERATION = ${vKVER_GEN} -KERNEL_VERSION_MAJOR = ${vKVER_MAJ} -KERNEL_VERSION_MINOR = ${vKVER_MIN} -KERNEL_VERSION_REVISION = ${vKVER_REV} - -# string -vKVER_STR = "${vKVER_GEN}.${vKVER_MAJ}.${vKVER_MIN}.${vKVER_REV}" - -ifndef vHOSTTOOLS - # Matching hexadecimal values - # NOTE: using ':=' since this is invoking the shell - - vKVER_GEN_HEX := $(shell ${HOS_DEC2HEX} ${KERNEL_VERSION_GENERATION}) - vKVER_MAJ_HEX := $(shell ${HOS_DEC2HEX} ${KERNEL_VERSION_MAJOR}) - vKVER_MIN_HEX := $(shell ${HOS_DEC2HEX} ${KERNEL_VERSION_MINOR}) - vKVER_REV_HEX := $(shell ${HOS_DEC2HEX} ${KERNEL_VERSION_REVISION}) - - vKVER_NUMBER = 0x$(vKVER_GEN_HEX)$(vKVER_MAJ_HEX)$(vKVER_MIN_HEX)$(vKVER_REV_HEX) - # XXX - get rid of this - KERNEL_VERSION_NUMBER = ${vKVER_NUMBER} -endif diff --git a/make/env/rules.shared b/make/env/rules.shared deleted file mode 100644 index d146c49a6ad..00000000000 --- a/make/env/rules.shared +++ /dev/null @@ -1,36 +0,0 @@ -# rules.shared - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -.PRECIOUS: %/.dir -%/.dir: - $q${HOS_MakeDir} $(abspath $(dir $@)) - $q${HOS_Touch} $@ diff --git a/make/env/rules.wb-helper b/make/env/rules.wb-helper deleted file mode 100644 index 09745e1210b..00000000000 --- a/make/env/rules.wb-helper +++ /dev/null @@ -1,43 +0,0 @@ -# rules.wb-helper - workbench helper - -# -# Copyright (c) 2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -define iDisplay_One_Var - @${HOS_Echo} $1 = ${$1} - -endef - -.PHONY: display_settings display_variables - -display_variables: - $(foreach var,${iVARIABLES_TO_DISPLAY},$(call iDisplay_One_Var,${var})) - -display_settings: display_variables diff --git a/make/env/sanity_check b/make/env/sanity_check deleted file mode 100644 index a09bbe4007b..00000000000 --- a/make/env/sanity_check +++ /dev/null @@ -1,33 +0,0 @@ -# sanity_check - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -$(if ${vMAKE},,$(error 'include $$(subst \,/,$${VXMICRO_BASE})/make/env/defs.base' MUST be the first line in your makefile)) diff --git a/make/host/dir.rules b/make/host/dir.rules deleted file mode 100644 index 16231914413..00000000000 --- a/make/host/dir.rules +++ /dev/null @@ -1,65 +0,0 @@ -# Makefile - build a set of subdirectories - -# -# Copyright (c) 2011-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# by using this fragment, users can set: -# -# DIRS: list of directories to build -# -# if not set, DIRS defaults to the list of all subdirectories -# that contain a file called [mM]akefile -# - -.DEFAULT_GOAL = all - -DIRS ?= $(subst /,,$(sort $(dir $(wildcard */[mM]akefile)))) - -ALL_CLEAN = $(foreach dir,${DIRS} ${DEPS},${dir}_clean) -ALL_VCLEAN = $(foreach dir,${DIRS} ${DEPS},${dir}_veryclean) - -.PHONY: all clean veryclean pristine ${DIRS} ${DEPS} ${ALL_CLEAN} ${ALL_VCLEAN} - -${DEPS}: - @${MAKE} -C $@ - -${DIRS}: ${DEPS} - @${MAKE} -C $@ - -${ALL_CLEAN}: - @${MAKE} -C $(subst _clean,,$@) clean - -${ALL_VCLEAN}: - @${MAKE} -C $(subst _veryclean,,$@) veryclean - -all: ${DIRS} -clean: ${ALL_CLEAN} -veryclean: ${ALL_VCLEAN} -pristine: veryclean diff --git a/make/host/exe.build b/make/host/exe.build deleted file mode 100644 index 1f6c86c96ba..00000000000 --- a/make/host/exe.build +++ /dev/null @@ -1,49 +0,0 @@ -# exe.build - build a host program - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# by using this fragment, users must set this: -# -# EXE_NAME: name of program -# -# and can set this: -# -# LINKED_LIBS: list of libraries linked, defaults to 'vxmicro' -# -# other variables can be customized: see top of obj.rules -# - -include ${VXMICRO_BASE}/make/env/defs.base - -.DEFAULT_GOAL = all - -include ${VXMICRO_BASE}/make/host/exe.defs -include ${VXMICRO_BASE}/make/host/exe.rules diff --git a/make/host/exe.defs b/make/host/exe.defs deleted file mode 100644 index 2f9a38ffb6d..00000000000 --- a/make/host/exe.defs +++ /dev/null @@ -1,66 +0,0 @@ -# exe.defs - definitions for building a host program - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -$(if ${EXE_NAME},,$(error EXE_NAME is not set!)) - - -### custom: set if not provided by user - -LINKED_LIBS ?= vxmicro -HOST = linux2 - -#add in any extra hosts to build for -sinclude ${VXMICRO_BASE}/make/host/exe_extra.defs - -### all that follows is automatic - -# where the program will be generated -vBIN_DIR_linux2 = ${vDEST_linux2}/bin - -# executable name -vEXE_NAME_linux2 = ${EXE_NAME} - -# executable output path + filename -vEXE_linux2 = ${vBIN_DIR_linux2}/${EXE_NAME} - -vEXE_ALL = $(foreach host,${HOST},${vEXE_$(if ${HOST_ONLY},$(findstring ${HOST_ONLY},${host}),${host})}) - -# Link options -vLNK_OPTS_linux2 = - -# location of the libraries -vLIB_DIR_linux2 = ${vDEST_linux2}/lib/build_tools - -vLINKED_LIBS = $(foreach lib,${LINKED_LIBS},-l${lib}) -vDEPEND_LIBS_linux2 = $(foreach lib,${LINKED_LIBS},${vLIB_DIR_linux2}/lib${lib}.a) - -include ${VXMICRO_BASE}/make/host/obj.defs diff --git a/make/host/exe.rules b/make/host/exe.rules deleted file mode 100644 index bb9d117e63b..00000000000 --- a/make/host/exe.rules +++ /dev/null @@ -1,49 +0,0 @@ -# exe.rules - rules for building a host program - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# programs (executables) - -define generate_exe -${vEXE_$1}: ${vOBJS_$1} ${vDEPEND_LIBS_$1} - @${vCC_$1} ${CFLAGS_$1} -o ${vEXE_$1} ${vOBJS_$1} -L${vLIB_DIR_$1} ${vLINKED_LIBS} ${vLNK_OPTS_$1} - @printf "%-12s%s\n" "[Linking]" "$$(notdir $$@) (in $$(dir $$@))" - -endef - -$(foreach host, ${HOST}, $(eval $(call generate_exe,$(host)))) - -.PHONY: all -all: ${vEXE_ALL} - @true - -include ${VXMICRO_BASE}/make/host/obj.rules -include ${VXMICRO_BASE}/make/host/top.rules diff --git a/make/host/lib.build b/make/host/lib.build deleted file mode 100644 index 291f72f02c5..00000000000 --- a/make/host/lib.build +++ /dev/null @@ -1,45 +0,0 @@ -# lib.build - build a host library - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# by using this fragment, users must set this: -# -# LIB_NAME: name of library -# -# other variables can be customized: see top of obj.rules -# - -include ${VXMICRO_BASE}/make/env/defs.base - -.DEFAULT_GOAL = all - -include ${VXMICRO_BASE}/make/host/lib.defs -include ${VXMICRO_BASE}/make/host/lib.rules diff --git a/make/host/lib.defs b/make/host/lib.defs deleted file mode 100644 index 876c48fddbf..00000000000 --- a/make/host/lib.defs +++ /dev/null @@ -1,50 +0,0 @@ -# lib.defs - definitions for building libraries - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -$(if ${LIB_NAME},,$(error LIB_NAME is not set!)) - -HOST = linux2 - -#add in any extra hosts to build for -sinclude ${VXMICRO_BASE}/make/host/lib_extra.defs - -### all that follows is automatic - -# where the library will be generated -vLIB_DIR_linux2 = ${vDEST_linux2}/lib/build_tools - -# library output path + filename -vLIB_linux2 = ${vLIB_DIR_linux2}/lib${LIB_NAME}.a - -vLIB_ALL = $(foreach host,${HOST},${vLIB_$(if ${HOST_ONLY},$(findstring ${HOST_ONLY},${host}),${host})}) - -include ${VXMICRO_BASE}/make/host/obj.defs diff --git a/make/host/lib.rules b/make/host/lib.rules deleted file mode 100644 index cd7d4424382..00000000000 --- a/make/host/lib.rules +++ /dev/null @@ -1,48 +0,0 @@ -# lib.rules - rules for building libraries - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# libraries - -define generate_lib -${vLIB_$1}: ${vOBJS_$1} - ${vAR_$1} ${vARFLAGS} $$@ ${vOBJS_$1} - @printf "%-12s%s\n" "[Archiving]" "$$(notdir $$@) (in $$(dir $$@))" - -endef - -$(foreach host, ${HOST}, $(eval $(call generate_lib,$(host)))) - -all: ${vLIB_ALL} - @true - -include ${VXMICRO_BASE}/make/host/obj.rules -include ${VXMICRO_BASE}/make/host/top.rules diff --git a/make/host/obj.defs b/make/host/obj.defs deleted file mode 100644 index 80b7f031743..00000000000 --- a/make/host/obj.defs +++ /dev/null @@ -1,66 +0,0 @@ -# obj.defs - definitions for building object files - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# custom: set if not provided by user - -CFLAGS_linux2 ?= ${vCFLAGS_COMMON} -DLINUX ${EXTRA_CFLAGS} ${EXTRA_CFLAGS_linux2} - -SOURCES ?= $(wildcard *.c) - -#add in any extra hosts to build for -sinclude ${VXMICRO_BASE}/make/host/obj_extra.defs - -# all that follows is automatic - -# kernel version -vHOSTTOOLS=y -include ${VXMICRO_BASE}/make/env/defs.kver -vKVER = ${vKVER_GEN}${vKVER_MAJ}${vKVER_MIN}${vKVER_REV} - -vCFLAGS_COMMON = \ - -I. -I${VXMICRO_BASE}/host/src/include \ - -Wall -Werror \ - -g -m32 \ - -DKERNEL_VERSION=${vKVER} - -# base destination directories -vDEST_linux2 = ${VXMICRO_BASE}/host/x86-linux2 - -vARFLAGS = cr - -# object file output directories -vOBJDIR_DEP_linux2 = linux2/.dir - -# lists of object files to generate -vOBJS_linux2 = $(patsubst %,linux2/%,$(SOURCES:.c=.o)) - -include ${VXMICRO_BASE}/make/host/toolchain.defs diff --git a/make/host/obj.rules b/make/host/obj.rules deleted file mode 100644 index 53e44d2ace6..00000000000 --- a/make/host/obj.rules +++ /dev/null @@ -1,89 +0,0 @@ -# obj.rules - rules for building object files - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# user can set the following: -# -# EXTRA_CFLAGS: common CFLAGS appended to default CFLAGS_ -# EXTRA_CFLAGS_: CFLAGS appended to default CFLAGS_ -# HOST_ONLY=: build only for a specific host (i.e. linux2) -# -# and can override the following: -# -# CFLAGS_: CFLAGS for a specific host (i.e. linux2) -# SOURCES: list of C files -# -# defaults: -# -# CFLAGS_: -I. -Wall -Werror -g -m32 -D -# SOURCES: all C files in current directory - -# object code files -define generate_objs -$1/%.o: %.c ${vOBJDIR_DEP_$1} - @${vCC_$1} ${CFLAGS_$1} -o $$@ -c $$< - @printf "%-12s%-20s -> %s\n" "[Compiling] " "$$<" "$$@" - -endef - -# object code directory -define generate_dir -${vOBJDIR_DEP_$1}: ${MAKEFILE_LIST} - @mkdir -p $$(dir $$@) - @touch $$@ - -endef - -# .d dependency files -define generate_deps -$1/%.d: %.c ${vOBJDIR_DEP_$1} - @${vCC_$1} ${CFLAGS_$1} -MM $$< -MF $$@d - @sed 's#$${<:.c=.o}#$${@:.d=.o}#' <$$@d >$$@ - @rm -f $$@d - -endef - -$(foreach host, ${HOST}, $(eval $(call generate_objs,$(host)))) -$(foreach host, ${HOST}, $(eval $(call generate_dir,$(host)))) -$(foreach host, ${HOST}, $(eval $(call generate_deps,$(host)))) - -# only generate .d files if not cleaning -ifeq (${MAKECMDGOALS},pristine) -vIGNORE_DOT_D=y -endif -ifeq ($(findstring clean,${MAKECMDGOALS}),clean) -vIGNORE_DOT_D=y -endif - -ifneq (${vIGNORE_DOT_D},y) - ALL_HOSTS = $(foreach host,${HOST},$(if ${HOST_ONLY},$(findstring ${HOST_ONLY},${host}),${host})) - -include $(foreach src,${SOURCES}, $(addsuffix /${src:.c=.d},${ALL_HOSTS})) -endif # vIGNORE_DOT_D diff --git a/make/host/toolchain.defs b/make/host/toolchain.defs deleted file mode 100644 index 9b4875acb14..00000000000 --- a/make/host/toolchain.defs +++ /dev/null @@ -1,40 +0,0 @@ -# toolchain.defs - definitions for toolchains - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# compilers -vCC_linux2 = gcc - -# archivers -vAR_linux2 = ar - -#add in any extra hosts to build for -sinclude ${VXMICRO_BASE}/make/host/toolchain_extra.defs diff --git a/make/host/top.rules b/make/host/top.rules deleted file mode 100644 index 60301e6f9a5..00000000000 --- a/make/host/top.rules +++ /dev/null @@ -1,50 +0,0 @@ -# top.rules - common top-level rules - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# -define rm_exes - rm -f $(foreach host,${HOST},${vEXE_${host}} ${vLIB_${host}}) - -endef - -define rm_objs - rm -rf $(foreach host,${HOST},${host} core ${vEXE_NAME_${host}}) - -endef - -.PHONY: all clean veryclean pristine - -clean: - $(call rm_objs) - -veryclean: clean - $(call rm_exes) - -pristine: veryclean diff --git a/make/target/arch/arc/defs.arch b/make/target/arch/arc/defs.arch deleted file mode 100644 index c8a3da441e7..00000000000 --- a/make/target/arch/arc/defs.arch +++ /dev/null @@ -1,33 +0,0 @@ -# defs.arch - build system - -# -# Copyright (c) 2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# nothing arch-specific for ARC diff --git a/make/target/arch/arc/rules.arch b/make/target/arch/arc/rules.arch deleted file mode 100644 index 4f5f539bc5f..00000000000 --- a/make/target/arch/arc/rules.arch +++ /dev/null @@ -1,33 +0,0 @@ -# rules.arch - build system - -# -# Copyright (c) 2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# nothing arch-specific for ARC diff --git a/make/target/arch/arm/defs.arch b/make/target/arch/arm/defs.arch deleted file mode 100644 index a0b062a2b90..00000000000 --- a/make/target/arch/arm/defs.arch +++ /dev/null @@ -1,33 +0,0 @@ -# defs.arch - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# nothing arch-specific for ARM diff --git a/make/target/arch/arm/rules.arch b/make/target/arch/arm/rules.arch deleted file mode 100644 index a01ffe9c7c1..00000000000 --- a/make/target/arch/arm/rules.arch +++ /dev/null @@ -1,33 +0,0 @@ -# rules.arch - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# nothing arch-specific for ARM diff --git a/make/target/arch/x86/defs.arch b/make/target/arch/x86/defs.arch deleted file mode 100644 index f5689d39afc..00000000000 --- a/make/target/arch/x86/defs.arch +++ /dev/null @@ -1,33 +0,0 @@ -# defs.arch - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# nothing needed for x86 diff --git a/make/target/arch/x86/rules.arch b/make/target/arch/x86/rules.arch deleted file mode 100644 index e2bced18cbc..00000000000 --- a/make/target/arch/x86/rules.arch +++ /dev/null @@ -1,33 +0,0 @@ -# rules.arch - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -include ${vMAKE}/target/arch/${vARCH}/rules.idt diff --git a/make/target/arch/x86/rules.idt b/make/target/arch/x86/rules.idt deleted file mode 100644 index b4b6989b560..00000000000 --- a/make/target/arch/x86/rules.idt +++ /dev/null @@ -1,69 +0,0 @@ -# rules.idt - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -include ${vMAKE}/target/toolchain/${vTOOL}/arch/${vARCH}/rules.idt - -################################################################################ -# define steps to generate and include static IDT -# -# Set a physical address to the intList section -# Linker places intList to a separate program header in the elf -# file. Then intList gets marked as NOLOAD and then removed. -# This operation creates an empty program header, but the -# program header inherits it's addresses from it's last section -- -# intList. -# Most of the bootloaders parse all program headers and first check -# the program header physical address, if it is zero, the virtual -# address is checked. Then a bootloader checks if the address can -# be mapped, even if the length is zero. Thus, the physical address -# of a program header can not be zero. -# - -define idtInTxt - -@$(HOS_Echo) '[${vTOOL}] Creating [Static IDT]' - $q$(vOC) -I ${OC_TARGET} -O binary -j intList $@ ${vOUT_DIR}/isrList.bin - -$q$(HOS_Rename) $@ ${vOUT_DIR}/elf.old - $q$(HOS_GenIdt) -i ${vOUT_DIR}/isrList.bin -n ${CONFIG_IDT_NUM_VECTORS} -o ${vOUT_DIR}/staticIdt.bin - $q$(vOC) -I binary -B ${OC_ARCH} -O ${OC_TARGET} --rename-section .data=staticIdt ${vOUT_DIR}/staticIdt.bin ${vOUT_DIR}/staticIdt.o - -$q$(HOS_DeleteFiles) ${iFINAL_LINKER_CMD} - -@$(HOS_Echo) '[${vTOOL}] Relinking [$(notdir $@)]' - $q${vPP} -DFINAL_LINK ${iLINKER_CMD_OPT} ${iLINKER_CMD_INC} ${LINKER_CMD} -o ${iFINAL_LINKER_CMD} - $q${vLD} ${-T} ${iFINAL_LINKER_CMD} @$(filter %.${lnk},$^) $(filter %.$o,$^) ${vOUT_DIR}/staticIdt.$o -o $@ - $(call i_noload_${vTOOL},$@,${vOUT_DIR}/elf.tmp) - $q$(vOC) -R intList ${vOUT_DIR}/elf.tmp $@ - -@$(HOS_DeleteFiles) ${vOUT_DIR}/staticIdt.* - -@$(HOS_DeleteFiles) ${vOUT_DIR}/isrList.* - -@$(HOS_DeleteFiles) ${vOUT_DIR}/elf.old - -@$(HOS_DeleteFiles) ${vOUT_DIR}/elf.tmp - -endef - diff --git a/make/target/env/defs.ext b/make/target/env/defs.ext deleted file mode 100644 index bf986a2108c..00000000000 --- a/make/target/env/defs.ext +++ /dev/null @@ -1,39 +0,0 @@ -# defs.ext - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# input file extensions -c ?= c -C ?= cpp -s ?= s -h ?= h -H ?= hpp -hs ?= h diff --git a/make/target/env/defs.target b/make/target/env/defs.target deleted file mode 100644 index 81e6963e74b..00000000000 --- a/make/target/env/defs.target +++ /dev/null @@ -1,43 +0,0 @@ -# defs.target - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -vARCH ?= $(strip ${ARCH}) -vCPU ?= $(strip ${CPU}) -vDEVICE ?= $(strip ${DEVICE}) -vBSP_VARIANT ?= $(strip ${BSP_VARIANT}) - -vTOOL ?= $(strip ${VXMICRO_TOOL}) - -ifeq (${vGOAL_NEEDS_TARGET_SETUP},y) - target_ERROR = The following must be defined: ARCH, CPU, TOOL - $(if $(and ${vARCH},${vCPU},${vTOOL}),,$(error ${target_ERROR})) -endif diff --git a/make/target/headers/defs.autoconf.check b/make/target/headers/defs.autoconf.check deleted file mode 100644 index b4a0cfa6c2e..00000000000 --- a/make/target/headers/defs.autoconf.check +++ /dev/null @@ -1,42 +0,0 @@ -# defs.autoconf.check - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# For rules that really do not need autoconf.mk, do not include it -# (config rule, help rules, and clean rules (including pristine) - -ifeq ($(strip ${MAKECMDGOALS}),config) - iIGNORE_AUTOCONF_MK = y -else ifeq (${vGOAL_NEEDS_TARGET_SETUP},n) - iIGNORE_AUTOCONF_MK = y -else - iIGNORE_AUTOCONF_MK = n -endif diff --git a/make/target/headers/defs.autoconf.kernel b/make/target/headers/defs.autoconf.kernel deleted file mode 100644 index 354cdb31c25..00000000000 --- a/make/target/headers/defs.autoconf.kernel +++ /dev/null @@ -1,63 +0,0 @@ -# defs.autoconf.kernel - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -vAUTOCONF_DIR = ${vKLIB_DIR}/include -vAUTOCONF_H = ${vAUTOCONF_DIR}/autoconf.h -vAUTOCONF_MK = ${vAUTOCONF_DIR}/autoconf.mk -vDOT_AUTOCONF = ${vOUT_DIR}/.autoconf - -include ${vMAKE}/target/headers/defs.autoconf.check - -ifeq (${iIGNORE_AUTOCONF_MK},n) - include ${vAUTOCONF_MK} -endif - -# use := since this is hitting the file system somewhat hard -iKCONF_FILES := $(strip \ - $(wildcard ${vMAKE}/target/kconfig/*.kconf) \ - $(wildcard ${vMAKE}/target/kconfig/modules/*.kconf) \ - $(wildcard ${vMAKE}/target/kconfig/arch/${vARCH}/*.kconf) \ - $(wildcard ${vCONFIG_BASE_DIR}/${vBSP}/${vKTYPE}/*.kconf) \ -) - -iKCONF_PRJ_DIR = ${vKLIB_DIR}/kconfig -iKCONF_TS = ${iKCONF_PRJ_DIR}/.timestamp - -# needed by wrsconfig (XXX - all ?) -export WRSCONFIG_ANSWER_FILE = $(abspath ${iPRJ_CONF}) -export WRSCONFIG_AUTOHEADER = $(abspath ${vAUTOCONF_H}) -export WRSCONFIG_AUTOCONFIG = $(abspath ${vAUTOCONF_MK}) -export WRSCONFIG_CONFIG = $(abspath ${vDOT_AUTOCONF}) -export WRSCONFIG_ALLCONFIG = $(abspath ${vDOT_AUTOCONF}) - -# does not have to be provided if not needed -sinclude ${vMAKE}/target/headers/arch/defs.autoconf.${vARCH} diff --git a/make/target/headers/defs.kver b/make/target/headers/defs.kver deleted file mode 100644 index d168ec1a98f..00000000000 --- a/make/target/headers/defs.kver +++ /dev/null @@ -1,43 +0,0 @@ -# defs.kver - build system - -# -# Copyright (c) 2013-2015 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# Two-digit hexadecimal value with NO '0x' prefix. -vKVER_FLAGS ?= 00 -# XXX - get rid of this -KERNEL_VERSION_FLAGS = ${vKVER_FLAGS} - -# Two-digit hexadecimal value with NO '0x' prefix. -vKVER_RESERVED ?= 00 -# XXX - get rid of this -KERNEL_VERSION_RESERVED ?= ${vKVER_RESERVED} - -iKVER_HDR = ${vKLIB_DIR}/include/version.$h diff --git a/make/target/headers/defs.offsets b/make/target/headers/defs.offsets deleted file mode 100644 index 92ee1a23e8c..00000000000 --- a/make/target/headers/defs.offsets +++ /dev/null @@ -1,64 +0,0 @@ -# defs.offsets - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -iOFFSETS_DIR = ${vKLIB_DIR}/include -iOFFSETS_OBJ = ${vKLIB_DIR}/offsets.$o -iOFFSETS_D = $(patsubst %.$o,%.$d,${iOFFSETS_OBJ}) -iOFFSETS_HDR = ${iOFFSETS_DIR}/offsets.$h -iOFFSETS_C = ${vBASE}/arch/${vARCH}/core/offsets/offsets.$c - -##### -# XXX - delete this define along with the recipe when we're confident there are -# no offsets.h left over in the source tree - -iOFFSETS_H_OBSOLETE = ${vBASE}/target/src/kernel/arch/${vARCH}/include/offsets.$h -iOFFSETS_H_RM_OBSOLETE = $(strip \ - $q$(if $(wildcard ${iOFFSETS_H_OBSOLETE}),${HOS_DeleteFiles} ${iOFFSETS_H_OBSOLETE},) \ -) - -##### - -iOFFSETS_INC = $(strip \ - ${vBASE}/include \ - ${vBASE}/include/microkernel \ - ${vBASE}/kernel/nanokernel/include \ - ${vBASE}/arch/${vARCH}/include \ - ${KERNEL_STDLIB_INCLUDE_DIR} \ - ${iOFFSETS_DIR} \ -) - -sinclude ${vMAKE}/target/headers/arch/defs.offsets.${vARCH} - -ifeq (${vGOAL_NEEDS_TARGET_SETUP},y) - include ${vMAKE}/target/toolchain/${vTOOL}/defs.offsets - iDOT_D += ${iOFFSETS_D} -endif diff --git a/make/target/headers/rules.autoconf b/make/target/headers/rules.autoconf deleted file mode 100644 index fc34c2db9d6..00000000000 --- a/make/target/headers/rules.autoconf +++ /dev/null @@ -1,86 +0,0 @@ -# rules.autoconf - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -iTOP_KCONF = ${iKCONF_PRJ_DIR}/bsp-${vKTYPE}${vBSP_VARIANT}.kconf - -.PHONY: config - -define generate_autoconf_h - -@$(HOS_Echo) '[vxmicro] Generating [autoconf]' - $(call HOS_Wrsconfig,${iTOP_KCONF},$(1)) - -endef - -iBSP_KCONF_VARIANT_HYPHEN_ = - -iBSP_KCONF_VARIANT_HYPHEN_n = -iBSP_KCONF_VARIANT_NO_ = n - -iBSP_KCONF_VARIANT_HYPHEN = ${iBSP_KCONF_VARIANT_HYPHEN_${iBSP_KCONF_VARIANT_NO_${vBSP_VARIANT}}} -iBSP_KCONF_VARIANT = ${iBSP_KCONF_VARIANT_HYPHEN}${vBSP_VARIANT} - -iBSP_KCONF = ${iKCONF_PRJ_DIR}/bsp.kconf -${iBSP_KCONF}: ${vCONFIG_BASE_DIR}/${vBSP}/bsp${iBSP_KCONF_VARIANT}.kconf | ${iKCONF_PRJ_DIR}/.dir - $q${HOS_CopyFile} $< $@ > ${HOS_DEVNULL_W} - -${iKCONF_TS}: ${iKCONF_FILES} | ${iKCONF_PRJ_DIR}/.dir - $q$(foreach file, $?, ${HOS_CopyFile} ${file} $(dir $@) > ${HOS_DEVNULL_W} ${HOS_MultiCmd}) - @${HOS_Touch} $@ - -config: $(if ${iPRJ_CONF},${vDOT_AUTOCONF},) ${iBSP_KCONF} ${iKCONF_TS} | ${vOUT_DIR}/.dir ${vAUTOCONF_DIR}/.dir - $(call generate_autoconf_h,) - -${vAUTOCONF_H}: ${vAUTOCONF_MK} - @$(HOS_true) - -##### -# If the project does not provide a prj.conf file, autoconf.mk cannot be -# created automatically: the user MUST invoke 'make config'. -# -# If it does exist, if it updated by the user AFTER the autoconf files are -# created (autoconf.mk/autoconf.h/.autoconf), .autoconf must be updated by -# copying prj.conf over .autoconf, or else the changes to prj.conf would not -# be picked up, since .autoconf exists, and is the input file for custom -# defaults. - -ifeq (${iPRJ_CONF},) -${vAUTOCONF_MK}: - @${HOS_Echo} "No prj.conf: you must run 'make config' first." - @${HOS_false} -else -${vDOT_AUTOCONF}: ${iPRJ_CONF} | $$(dir $$@).dir - @$(HOS_CopyFile) $< $@ > ${HOS_DEVNULL_W} - -${vAUTOCONF_MK}: ${iBSP_KCONF} ${iKCONF_TS} ${vDOT_AUTOCONF} | ${vAUTOCONF_DIR}/.dir - $(call generate_autoconf_h,-S) -endif - -##### diff --git a/make/target/headers/rules.kver b/make/target/headers/rules.kver deleted file mode 100644 index a007e9e8584..00000000000 --- a/make/target/headers/rules.kver +++ /dev/null @@ -1,47 +0,0 @@ -# rules.kver - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -iV1 = ${vBASE}/kernel/microkernel/include/v1.$h -iV2 = $(dir ${iKVER_HDR})v2.$h -iV3 = ${vBASE}/kernel/microkernel/include/v3.$h - -${iKVER_HDR}: ${iDEPEND_ON_MAKEFILES} ${iV1} ${iV3} | $$(dir $$@).dir - -@$(HOS_Echo) '[kernel] Creating VxMicro kernel version file ... ' - @$(HOS_Echo) '${vKVER_NUMBER}${vKVER_FLAGS}${vKVER_RESERVED}' > ${iV2} - @$(HOS_Echo) '#define KERNEL_VERSION_NUMBER ${vKVER_NUMBER}' >> ${iV2} - @$(HOS_Echo) '#define KERNEL_VERSION_GENERATION ${vKVER_GEN}' >> ${iV2} - @$(HOS_Echo) '#define KERNEL_VERSION_MAJOR ${vKVER_MAJ}' >> ${iV2} - @$(HOS_Echo) '#define KERNEL_VERSION_MINOR ${vKVER_MIN}' >> ${iV2} - @$(HOS_Echo) '#define KERNEL_VERSION_REVISION ${vKVER_REV}' >> ${iV2} - @$(HOS_Echo) '#define KERNEL_VERSION_STRING ${vKVER_STR}' >> ${iV2} - @$(HOS_Cat3Files) ${iV1} ${iV2} ${iV3} $@ > ${HOS_DEVNULL_W} - -@$(HOS_DeleteFiles) ${iV2} > ${HOS_DEVNULL_W} diff --git a/make/target/headers/rules.offsets b/make/target/headers/rules.offsets deleted file mode 100644 index 8e8ec49d564..00000000000 --- a/make/target/headers/rules.offsets +++ /dev/null @@ -1,41 +0,0 @@ -# rules.offsets - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -${iOFFSETS_HDR}: ${iOFFSETS_OBJ} | ${iOFFSETS_DIR}/.dir - @${HOS_Echo} '[${vTOOL}] Generating [$(notdir $@)]' - ${iOFFSETS_H_RM_OBSOLETE} - $q${HOS_GenOffsetHeader} -i $< -o $@ - -${iOFFSETS_OBJ}: ${iOFFSETS_C} - @${HOS_Echo} '[${vTOOL}] Compiling [$(notdir $<)]' - $q${vCC} ${iOFFSETS_CFLAGS} ${iCC_DEP} $< ${iCC_DEP_TARGET}$@ ${iCC_DEP_FILE}${@:.o=.d} ${iQUIESCE_DOT_D} - $q${vCC} ${iOFFSETS_CFLAGS} $< -o $@ diff --git a/make/target/kconfig/arch/arc/arc.kconf b/make/target/kconfig/arch/arc/arc.kconf deleted file mode 100644 index 2ff8fddc903..00000000000 --- a/make/target/kconfig/arch/arc/arc.kconf +++ /dev/null @@ -1,41 +0,0 @@ -# ARC.kconf - ARC architecture options - -# -# Copyright (c) 2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -menu "ARC family options" - -config ARC - bool - default y - help - This option signifies the use of an ARC system. - -endmenu diff --git a/make/target/kconfig/arch/arc/arc_em4.kconf b/make/target/kconfig/arch/arc/arc_em4.kconf deleted file mode 100644 index bed3bce5d2c..00000000000 --- a/make/target/kconfig/arch/arc/arc_em4.kconf +++ /dev/null @@ -1,44 +0,0 @@ -# arc_em4.kconf - ARC EM4 options - -# -# Copyright (c) 2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -source "arc_v2.kconf" - -menu "ARC EM4 processor options" - -config CPU_ARCEM4 - bool - default y - select CPU_ARCV2 - help - This option signifies the use of an ARC EM4 CPU - -endmenu diff --git a/make/target/kconfig/arch/arc/arc_v2.kconf b/make/target/kconfig/arch/arc/arc_v2.kconf deleted file mode 100644 index d7e84f0d7d4..00000000000 --- a/make/target/kconfig/arch/arc/arc_v2.kconf +++ /dev/null @@ -1,207 +0,0 @@ -# arc_v2.kconf - ARCv2 family options - -# -# Copyright (c) 2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -source "arc.kconf" - -menu "ARCv2 family options" - -config CPU_ARCV2 - bool - default y - select ARC - help - This option signifies the use of a CPU of the ARCv2 family. - -config DATA_ENDIANNESS_LITTLE - bool - default y - help - This is driven by the processor implementation, since it is fixed in - hardware. The BSP should set this value to 'n' if the data is - implemented as big endian. - -config NUM_IRQ_PRIO_LEVELS - int - prompt "Number of supported interrupt priority levels" - default 1 - range 1 16 - help - Interrupt priorities available will be 0 to NUM_IRQ_PRIO_LEVELS-1. - - The minimum value is 1. - - The BSP must provide a valid default for proper operation. - -config NUM_REGULAR_IRQ_PRIO_LEVELS - int - prompt "Number of supported regular interrupt priority levels" - default 1 - range 1 16 - help - This represents the number of Regular Interrupt priorities, which - does NOT include the Fast (FIRQ) priority. - The Regular Interrupt priorities available will be - (NUM_IRQ_PRIO_LEVELS - NUM_REGULAR_IRQ_PRIO_LEVELS) to - (NUM_REGULAR_IRQ_PRIO_LEVELS - 1). - - The maximum value is NUM_IRQ_PRIO_LEVELS. - - The BSP must provide a valid default for proper operation. - -config NUM_IRQS - int - prompt "Upper limit of interrupt numbers/IDs used" - default 1 - range 1 256 - help - Interrupts available will be 0 to NUM_IRQS-1. - - The minimum value is 1. - - The BSP must provide a valid default. This drives the size of the - vector table. - -config FIRQ_STACK_SIZE - int - prompt "Size of stack for FIRQs (in bytes)" - depends on CPU_ARCV2 - default 1024 - help - FIRQs and regular IRQs have different stacks so that a FIRQ can start - running without doing stack switching in software. - -config STACK_CHECKING - bool - prompt "ARC CPU stack checking is enabled/disabled." - depends on ENHANCED_SECURITY - default y - help - Enable or disable CPU stack checking. - -config FAULT_DUMP - int - prompt "Fault dump level" - default 2 - help - Different levels for display information when a fault occurs. - - 2: The default. Display specific and verbose information. Consumes - the most memory (long strings). - 1: Display general and short information. Consumes less memory - (short strings). - 0: Off. - -config XIP - default n if NSIM - default y - -config SW_ISR_TABLE - bool - prompt "Enable software interrupt handler table" - default y - help - Enable an interrupt handler table implemented in software. This - table, unlike ISRs connected directly in the vector table, allow - a parameter to be passed to the interrupt handlers. Also, invoking - the exeception/interrupt exit stub is automatically done. - - This has to be enabled for dynamically connecting interrupt handlers - at runtime (SW_ISR_TABLE_DYNAMIC). - -config SW_ISR_TABLE_DYNAMIC - bool - prompt "Allow installing interrupt handlers at runtime" - depends on SW_ISR_TABLE - default y - help - This option enables nanoCpuIntConnect(). It moves the ISR table to - SRAM so that it is writable. This has the side-effect of removing - write-protection on the ISR table. - -config SW_ISR_TABLE_STATIC_CUSTOM - bool - prompt "Projects provide a custom static software ISR table" - depends on SW_ISR_TABLE && !SW_ISR_TABLE_DYNAMIC - default n - help - Projects, not the BSP, provide a software table of ISR and their - parameters. The table is static, and thus ISRs cannot be connected - at runtime. - -config SW_ISR_TABLE_BSP - bool - # omit prompt to signify a "hidden" option - depends on SW_ISR_TABLE_DYNAMIC || (SW_ISR_TABLE && !SW_ISR_TABLE_STATIC_CUSTOM) - default y - help - Not user-selectable, helps build system logic. - -config IRQ_VECTOR_TABLE_CUSTOM - bool - prompt "Projects provide a custom static IRQ part of vector table" - depends on !SW_ISR_TABLE - default n - help - Projects, not the BSP, provide the IRQ part of the vector table. - - This is the table of interrupt handlers with the best potential - performance, but is the less flexible. - - The ISRs are installed directly in the vector table, thus are - directly called by the CPU when an interrupt is taken. This adds - the least overhead when handling an interrupt. - - Downsides: - - ISRs cannot have a parameter - - ISRs cannot be connected at runtime - - ISRs must notify the kernel manually by invoking _ExcExit() when - then are about to return. - -config IRQ_VECTOR_TABLE_BSP - bool - # omit prompt to signify a "hidden" option - depends on SW_ISR_TABLE || !IRQ_VECTOR_TABLE_CUSTOM - default y - help - Not user-selectable, helps build system logic. - -config ARCH_HAS_TASK_ABORT - bool - # omit prompt to signify a "hidden" option - default n - -config ARCH_HAS_NANO_FIBER_ABORT - bool - # omit prompt to signify a "hidden" option - default n - -endmenu diff --git a/make/target/kconfig/arch/arc/build.kconf b/make/target/kconfig/arch/arc/build.kconf deleted file mode 100644 index 94feb80e67a..00000000000 --- a/make/target/kconfig/arch/arc/build.kconf +++ /dev/null @@ -1,39 +0,0 @@ -# build.kconf - ARC build-related configuration options - -# -# Copyright (c) 2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# -# compile and link features -# - -menu "Compilation & Linkage Options" -source "build-base.kconf" -endmenu diff --git a/make/target/kconfig/arch/arc/kernel-core.kconf b/make/target/kconfig/arch/arc/kernel-core.kconf deleted file mode 100644 index 977b5d1a442..00000000000 --- a/make/target/kconfig/arch/arc/kernel-core.kconf +++ /dev/null @@ -1,79 +0,0 @@ -# kernel-core.kconf - ARC fundamental kernel configuration options - -# -# Copyright (c) 2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# -# fundamental kernel features -# - -# ARM systems are small in general, and the enhanced security adds significant -# footprint, so turn it off by default. -config ENHANCED_SECURITY - bool - default n - -menu "Basic Kernel Options" -source "basic.kconf" -endmenu - -menu "Security Options" - depends on ENHANCED_SECURITY -source "security_basic.kconf" -endmenu - -menu "Advanced Power Management Options" - depends on MICROKERNEL - -# Tickless idle requires wrapped ISR handlers to handle early wakeup from idle. -config TICKLESS_IDLE_UNSUPPORTED - # omit prompt to signify a "hidden" option - bool - default y if !SW_ISR_TABLE - default n - -source "apm.kconf" -endmenu - -menu "Input-Output Options" -source "io.kconf" -endmenu - -menu "System Monitoring Options" -source "monitor.kconf" -endmenu - -menu "Debugging Options" -source "debug.kconf" -endmenu - -menu "Miscellaneous Kernel Options" -source "misc.kconf" -endmenu diff --git a/make/target/kconfig/arch/arm/ARM.kconf b/make/target/kconfig/arch/arm/ARM.kconf deleted file mode 100644 index 23a928b1b12..00000000000 --- a/make/target/kconfig/arch/arm/ARM.kconf +++ /dev/null @@ -1,134 +0,0 @@ -# ARM.kconf - ARM architecture options - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -menu "ARM family options" - -config ARM - bool - default y - help - This option signifies the use of an ARM system. - -config ISA_THUMB2 - bool - # omit prompt to signify a "hidden" option - default y - help - From: http://www.arm.com/products/processors/technologies/instruction-set-architectures.php - - Thumb-2 technology is the instruction set underlying the ARM Cortex - architecture which provides enhanced levels of performance, energy - efficiency, and code density for a wide range of embedded - applications. - - Thumb-2 technology builds on the success of Thumb, the innovative - high code density instruction set for ARM microprocessor cores, to - increase the power of the ARM microprocessor core available to - developers of low cost, high performance systems. - - The technology is backwards compatible with existing ARM and Thumb - solutions, while significantly extending the features available to - the Thumb instructions set. This allows more of the application to - benefit from the best in class code density of Thumb. - - For performance optimised code Thumb-2 technology uses 31 percent - less memory to reduce system cost, while providing up to 38 percent - higher performance than existing high density code, which can be used - to prolong battery-life or to enrich the product feature set. Thumb-2 - technology is featured in the processor, and in all ARMv7 - architecture-based processors. - -config ISA_ARM - bool - prompt "Build with the ARM instruction set" if !ISA_THUMB2 - default y - depends on !ISA_THUMB2 - help - From: http://www.arm.com/products/processors/technologies/instruction-set-architectures.php - - The ARM 32-bit instruction set is the base 32-bit ISA used in the - ARMv4T, ARMv5TEJ and ARMv6 architectures. In these architectures it - is used in applications requiring high performance, or for handling - hardware exceptions such as interrupts and processor start-up. - - The ARM 32-bit ISA is also supported in the Cortex-A and Cortex-R - profiles of the Cortex architecture for performance critical - applications, and for legacy code. Most of its functionality is - subsumed into the Thumb-2 instruction set, which also benefits from - improved code density. - - ARM instructions are 32-bits wide, and are aligned on 4-byte - boundaries. - - All ARM instructions can also be conditionalised to only execute when - previous instructions have set a particular condition code. This - means that instructions only have their normal effect on the - programmers’ model operation, memory and coprocessors if the N, Z, C - and V flags in the Application Program Status Register satisfy a - condition specified in the instruction. If the flags do not satisfy - this condition, the instruction acts as a NOP, that is, execution - advances to the next instruction as normal, including any relevant - checks for exceptions being taken, but has no other effect. This - conditionalisation of instructions allows small sections of if- and - while-statements to be encoded without the use of branch - instructions. - -config ISA_THUMB - bool - prompt "Build with the THUMB instruction set" if !ISA_THUMB2 - default n - depends on !ISA_ARM && !ISA_THUMB2 - help - From: http://www.arm.com/products/processors/technologies/instruction-set-architectures.php - - Thumb technology is an extension to the 32-bit ARM architecture. The - Thumb instruction set features a subset of the most commonly used - 32-bit ARM instructions which have been compressed into 16-bit wide - opcodes. On execution, these 16-bit instructions are decompressed - transparently to full 32-bit ARM instructions in real time without - performance loss. - - Designers can use both 16-bit Thumb and 32-bit ARM instructions sets - and therefore have the flexibility to emphasise performance or code - size on a sub-routine level as their applications require. - - A Thumb-aware core is a standard ARM processor fitted with a Thumb - decompressor in the instruction pipeline. The designer therefore - gets all the underlying power of the 32-bit ARM architecture as well - as excellent code density from Thumb, all at 8-bit system cost. - - Thumb has better code density than common 8 and 16-bit CISC/RISC - Controllers and is at a fraction of the code size of traditional - 32-bit architectures. This means that program memory can be smaller - and hence cost reduced. - -endmenu diff --git a/make/target/kconfig/arch/arm/ARM_Cortex.kconf b/make/target/kconfig/arch/arm/ARM_Cortex.kconf deleted file mode 100644 index 749ea8b77ef..00000000000 --- a/make/target/kconfig/arch/arm/ARM_Cortex.kconf +++ /dev/null @@ -1,44 +0,0 @@ -# ARM_Cortex.kconf - ARM Cortex family options - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -source "ARM.kconf" - -menu "ARM Cortex family options" - -config CPU_CORTEX - bool - default y - select ARM - help - This option signifies the use of a CPU of the Cortex family. - -endmenu diff --git a/make/target/kconfig/arch/arm/ARM_CortexM.kconf b/make/target/kconfig/arch/arm/ARM_CortexM.kconf deleted file mode 100644 index 7450864e015..00000000000 --- a/make/target/kconfig/arch/arm/ARM_CortexM.kconf +++ /dev/null @@ -1,128 +0,0 @@ -# ARM_CortexM.kconf - ARM Cortex-M family options - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -source "ARM_Cortex.kconf" - -menu "ARM Cortex-M family options" - -config CPU_CORTEXM - bool - default y - select CPU_CORTEX - select ISA_THUMB2 - help - This option signifies the use of a CPU of the Cortex-M family. - -config LDREX_STREX_AVAILABLE - bool - default y - -config DATA_ENDIANNESS_LITTLE - bool - default y - help - This is driven by the processor implementation, since it is fixed in - hardware. The BSP should set this value to 'n' if the data is - implemented as big endian. - -config STACK_ALIGN_DOUBLE_WORD - bool - prompt "Align stacks on double-words (8 octets)" - default y - help - This is needed to conform to AAPCS, the procedure call standard for - the ARM. It wastes stack space. - -config NUM_IRQS - int - prompt "Upper limit of interrupt numbers/IDs used" - default 1 - range 1 1000 - help - Interrupts available will be 0 to NUM_IRQS-1. - - The minimal value is 1. - - The BSP must provide a valid default. This drives the size of the - vector table. - -config STACK_GROWS_DOWN - bool - prompt "Stacks grow down" - default y - help - Stacks can grow either up or down. Down is the default. Don't change - this unless you have a very good reason to do so. - -config NUM_IRQ_PRIO_BITS - int -# hidden option, implemented by BSP - help - Cortex-M chips can implement up to 8 bits of interrupt priorities, - for a maximum of 256 priorities. Most chips implement fewer than 8. - - The BSP must define the correct value. - -config RUNTIME_NMI - bool - prompt "Attach an NMI handler at runtime" - default n - help - VxMicro provides a simple NMI handler that simply hangs in a tight - loop if triggered. This fills the requirement that there must be an - NMI handler installed when the CPU boots. If a custom handler is - needed, enable this option and attach it via _NmiHandlerSet(). - -config ATOMIC_IDLE_WFI - bool -# hidden option, implemented by BSP - help - The BSP sets this if wfi instruction can be interrupted by an - already pending exception while primask is set. - -config FAULT_DUMP - int - prompt "Fault dump level" - default 2 - help - Different levels for display information when a fault occurs. - - 2: The default. Display specific and verbose information. Consumes - the most memory (long strings). - 1: Display general and short information. Consumes less memory - (short strings). - 0: Off. - -config XIP - default y - -endmenu diff --git a/make/target/kconfig/arch/arm/ARM_CortexM3.kconf b/make/target/kconfig/arch/arm/ARM_CortexM3.kconf deleted file mode 100644 index 27fa885eb2f..00000000000 --- a/make/target/kconfig/arch/arm/ARM_CortexM3.kconf +++ /dev/null @@ -1,140 +0,0 @@ -# ARM_CortexM3.kconf - ARM Cortex-M3+ options - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -source "ARM_CortexM.kconf" - -menu "ARM Cortex-M3 options" - -config CPU_CORTEXM3 - # omit prompt to signify a "hidden" option - bool - default y - select CPU_CORTEXM - help - This option signifies the use of a Cortex-M3+ CPU - -config SW_ISR_TABLE - bool - prompt "Enable software interrupt handler table" - default y - help - Enable an interrupt handler table implemented in software. This - table, unlike ISRs connected directly in the vector table, allow - a parameter to be passed to the interrupt handlers. Also, invoking - the exeception/interrupt exit stub is automatically done. - - This has to be enabled for dynamically connecting interrupt handlers - at runtime (SW_ISR_TABLE_DYNAMIC). - -config SW_ISR_TABLE_DYNAMIC - bool - prompt "Allow installing interrupt handlers at runtime" - depends on SW_ISR_TABLE - default y - help - This option enables irq_connect(). It moves the ISR table to - SRAM so that it is writable. This has the side-effect of removing - write-protection on the ISR table. - -config SW_ISR_TABLE_STATIC_CUSTOM - bool - prompt "Projects provide a custom static software ISR table" - depends on SW_ISR_TABLE && !SW_ISR_TABLE_DYNAMIC - default n - help - Projects, not the BSP, provide a software table of ISR and their - parameters. The table is static, and thus ISRs cannot be connected - at runtime. - -config SW_ISR_TABLE_BSP - bool - # omit prompt to signify a "hidden" option - depends on SW_ISR_TABLE_DYNAMIC || (SW_ISR_TABLE && !SW_ISR_TABLE_STATIC_CUSTOM) - default y - help - Not user-selectable, helps build system logic. - -config IRQ_VECTOR_TABLE_CUSTOM - bool - prompt "Projects provide a custom static IRQ part of vector table" - depends on !SW_ISR_TABLE - default n - help - Projects, not the BSP, provide the IRQ part of the vector table. - - This is the table of interrupt handlers with the best potential - performance, but is the less flexible. - - The ISRs are installed directly in the vector table, thus are - directly called by the CPU when an interrupt is taken. This adds - the least overhead when handling an interrupt. - - Downsides: - - ISRs cannot have a parameter - - ISRs cannot be connected at runtime - - ISRs must notify the kernel manually by invoking _ExcExit() when - then are about to return. - -config IRQ_VECTOR_TABLE_BSP - bool - # omit prompt to signify a "hidden" option - depends on SW_ISR_TABLE || !IRQ_VECTOR_TABLE_CUSTOM - default y - help - Not user-selectable, helps build system logic. - -config ZERO_LATENCY_IRQS - bool - prompt "Enable zero-latency interrupts" - default n - help - Interrupt locking is done by setting exception masking to priority - one, thus allowing exception of priority zero to still come in. By - default, the kernel verifies, via __ASSERT() statements, that the - interrupt priority is not set to zero when either connecting them or - setting their priority. Enabling this option disables the check, - thus allowing setting the priority of interrupts to zero. - - Note that this is a somewhat dangerous option: ISRs of priority zero - interrupts cannot use any kernel functionality. - -config ARCH_HAS_TASK_ABORT - bool - # omit prompt to signify a "hidden" option - default y - -config ARCH_HAS_NANO_FIBER_ABORT - bool - # omit prompt to signify a "hidden" option - default y - -endmenu diff --git a/make/target/kconfig/arch/arm/ARM_CortexM4.kconf b/make/target/kconfig/arch/arm/ARM_CortexM4.kconf deleted file mode 100644 index 199a8a7a5a2..00000000000 --- a/make/target/kconfig/arch/arm/ARM_CortexM4.kconf +++ /dev/null @@ -1,67 +0,0 @@ -# ARM_CortexM4.kconf - ARM Cortex-M4 options - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -source "ARM_CortexM3.kconf" - -menu "ARM Cortex-M4 options" - -config CPU_CORTEXM4 - # omit prompt to signify a "hidden" option - bool - default y - select CPU_CORTEXM3 - help - This option signifies the use of a Cortex-M4 CPU - -config FLOAT - bool - prompt "Support floating point instructions" if FLOAT_AVAILABLE - default n - help - This option enables the usage of floating point instructions and - registers. - - BSP must set FLOAT_AVAILABLE to enable this option. - -config AUTOMATIC_FP_ENABLING - bool - prompt "Automatic FP enabling upon first usage from a context" - depends on FLOAT - default n - help - This option adds automatic support for enabling floating point in - a context when said context first uses a floating point - instruction. This adds is a slight performance penalty (one load - instruction) in the main exception stub and a results in a slightly - larger overall code size. - -endmenu diff --git a/make/target/kconfig/arch/arm/build.kconf b/make/target/kconfig/arch/arm/build.kconf deleted file mode 100644 index c18d63198b5..00000000000 --- a/make/target/kconfig/arch/arm/build.kconf +++ /dev/null @@ -1,40 +0,0 @@ -# build.kconf - ARM build-related configuration options - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# -# compile and link features -# - -menu "Compilation & Linkage Options" -source "build-base.kconf" -endmenu - diff --git a/make/target/kconfig/arch/arm/kernel-core.kconf b/make/target/kconfig/arch/arm/kernel-core.kconf deleted file mode 100644 index 8662353d946..00000000000 --- a/make/target/kconfig/arch/arm/kernel-core.kconf +++ /dev/null @@ -1,79 +0,0 @@ -# kernel-core.kconf - ARM fundamental kernel configuration options - -# -# Copyright (c) 2012-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# -# fundamental kernel features -# - -# ARM systems are small in general, and the enhanced security adds significant -# footprint, so turn it off by default. -config ENHANCED_SECURITY - bool - default n - -menu "Basic Kernel Options" -source "basic.kconf" -endmenu - -menu "Security Options" - depends on ENHANCED_SECURITY -source "security_basic.kconf" -endmenu - -menu "Advanced Power Mangement Options" - depends on MICROKERNEL - -# Tickless idle requires wrapped ISR handlers to handle early wakeup from idle. -config TICKLESS_IDLE_UNSUPPORTED - # omit prompt to signify a "hidden" option - bool - default y if !SW_ISR_TABLE - default n - -source "apm.kconf" -endmenu - -menu "Input-Output Options" -source "io.kconf" -endmenu - -menu "System Monitoring Options" -source "monitor.kconf" -endmenu - -menu "Debugging Options" -source "debug.kconf" -endmenu - -menu "Miscellaneous Kernel Options" -source "misc.kconf" -endmenu diff --git a/make/target/kconfig/arch/x86/Intel-core.kconf b/make/target/kconfig/arch/x86/Intel-core.kconf deleted file mode 100644 index 26ce77aab94..00000000000 --- a/make/target/kconfig/arch/x86/Intel-core.kconf +++ /dev/null @@ -1,469 +0,0 @@ -# Intel-core.kconf - fundamental Intel architecture configuration options - -# -# Copyright (c) 2011-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# Architecture-specific options -# - defines options that are specific to BSPs based on this architecture -# - provides defaults for many (but not all) options; BSP configuration -# files must specify default values for options that lack them and -# may override the defaults specified here if required - - -# -# CPU type options that are currently supported -# (BSP must choose one) -# - -config CPU_MINUTEIA - bool - # omit prompt to signify a "hidden" option - default n - help - This option signifies the use of a CPU from the Minute IA family. - -config CPU_PENTIUM4 - bool - # omit prompt to signify a "hidden" option - default n - help - This option signifies the use of a CPU from the Pentium 4 family. - - -# -# options that are directly tied to a CPU type -# (BSP shouldn't need to override the default value of any of these) -# - -config ISA_IA32 - bool - # omit prompt to signify a "hidden" option - default y if CPU_MINUTEIA || CPU_PENTIUM4 - default n - help - This option signifies the use of a CPU based on the Intel IA-32 - instruction set architecture. - -config GLOBAL_PAGE_MAPPING - bool - # omit prompt to signify a "hidden" option - default n if CPU_MINUTEIA - default y - help - This option enables the use of global page mapping, which is only - applicable to Intel CPUs that are Pentium II or later. - -config HARDWARE_BP_SUPPORTED - bool - # omit prompt to signify a "hidden" option - default y if ISA_IA32 - default n - help - This option signifies that the target supports hardware-based - instruction breakpoints and/or data watchpoints. - -config INVLPG_UNSUPPORTED - bool - # omit prompt to signify a "hidden" option - default n - help - This option signifies the use of an Intel CPU that lacks support - for the INVLPG instruction (i.e. any CPU that predates the i486). - -config CMOV_UNSUPPORTED - bool - # omit prompt to signify a "hidden" option - default y if CPU_MINUTEIA - default n - help - This option signifies the use of an Intel CPU that lacks support - for the CMOV instruction. - -config CPU_FLOAT_UNSUPPORTED - bool - # omit prompt to signify a "hidden" option - default y if CPU_MINUTEIA - default n - select CPU_SSE_UNSUPPORTED - help - This option signifies the use of an Intel CPU that lacks support - for floating point operations. - -config CPU_SSE_UNSUPPORTED - bool - # omit prompt to signify a "hidden" option - default n - help - This option signifies the use of an Intel CPU that lacks support - for SSEx instructions (i.e. those which pre-date Pentium III). - -config CACHE_LINE_SIZE - int - # omit prompt to signify a "hidden" option - default 64 if CPU_PENTIUM4 - default 0 - help - Size in bytes of a CPU cache line. - -# -# options that indicate if a target board supports certain capabilities or not -# (BSP must select those that apply to it) -# - -config UNALIGNED_WRITE_UNSUPPORTED - bool - # omit prompt to signify a "hidden" option - default n - help - This option signifies that the target may not properly decode the - IA-32 processor's byte enable (BE) lines, resulting in the inability - to read/write unaligned quantities. - -config LOCK_INSTRUCTION_UNSUPPORTED - bool - # omit prompt to signify a "hidden" option - default n - help - This option signifies that the target lacks support for the IA-32 - LOCK prefix instruction. Code running on such targets cannot - use the LOCK prefix to perform read-modify-write operations in an - atomic manner; such targets must utilize other techniques to perform - atomic operations (such as locking interrupts). - -# CLFLUSH was introduced with PENTIUM4 processors, but might not be -# available. The default QEMU implementation used by VxMicro (-cpu qemu32) does -# not support it. - -config CPU_MIGHT_SUPPORT_CLFLUSH - bool - # omit prompt to signify a "hidden" option - default n - help - If a BSP uses a processor that possibly implements CLFLUSH, change - the default in that BSP's config file. - -config CLFLUSH_INSTRUCTION_SUPPORTED - bool - prompt "CLFLUSH instruction supported" if CPU_MIGHT_SUPPORT_CLFLUSH - depends on CPU_MIGHT_SUPPORT_CLFLUSH - default n - help - Only enable this if the CLFLUSH instruction is supported, so that - an implementation of _SysCacheFlush() that uses CLFLUSH is made - available, instead of the one using WBINVD. - -config BOI_HANDLER_SUPPORTED - bool - # omit prompt to signify a "hidden" option - default n - help - This option signifies that the target has one or more devices whose - driver utilizes a "beginning of interrupt" handler that gets called - before VxMicro's standard interrupt handling code. This capability - can be used by the driver to suppress spurious interrupts generated - by the device (or for other purposes). - -config EOI_HANDLER_SUPPORTED - bool - # omit prompt to signify a "hidden" option - default n - help - This option signifies that the target has one or more devices whose - driver utilizes an "end of interrupt" handler that gets called - after VxMicro's standard interrupt handling code. This capability - can be used by the driver to tell the device that an interrupt - has been handled (or for other purposes). - -config IOAPIC - bool - # omit prompt to signify a "hidden" option - default n - help - This option signifies that the target has an IO-APIC device. This - capability allows IO-APIC-dependent code to be included. - -config LOAPIC - bool - # omit prompt to signify a "hidden" option - default n - help - This option selects local APIC as the interrupt controller. - -config PIC - bool - # omit prompt to signify a "hidden" option - default n - help - This option selects legacy i8259 as the interrupt controller. - -config SHUTOFF_PIC - bool - # omit prompt to signify a "hidden" option - depends on !PIC - default n - help - This option disables all interrupts on the PIC - -config HPET_TIMER - bool - # omit prompt to signify a "hidden" option - default n - help - This option selects High Precision Event Timer (HPET) as a - system timer. - -config LOAPIC_TIMER - bool - # omit prompt to signify a "hidden" option - depends on LOAPIC - default n - help - This option selects LOAPIC timer as a system timer. - -config LOAPIC_TIMER_FREQ - int - # omit prompt to signify a "hidden" option - depends on LOAPIC_TIMER - default 0 - help - This option specifies LOAPIC timer frequency in HZ. - -config PIT - bool - # omit prompt to signify a "hidden" option - default n - help - This option selects legacy i8253 timer as system timer. - -config PCI - bool - # omit prompt to signify a "hidden" option - default n - help - This options enables support of PCI bus enumeration for device - drivers. - -config EXTRA_SERIAL_PORT - bool - # omit prompt to signify a "hidden" option - default n - help - This option signifies the number of serial ports the target has. - -config SERIAL_INTERRUPT_LEVEL - bool - # omit prompt to signify a "hidden" option - depends on IOAPIC && EXTRA_SERIAL_PORT - default y - help - Option signifies that the serial controller uses level interrupts - instead of edge - -config SERIAL_INTERRUPT_LOW - bool - # omit prompt to signify a "hidden" option - depends on IOAPIC && EXTRA_SERIAL_PORT - default n - help - Option signifies that the serial controller uses low level interrupts - instead of high - -config CUSTOM_RANDOM_GENERATOR - bool - # omit prompt to signify a "hidden" option - default n - help - This option signifies that the target uses custom random number - generator. - - -# options that indicate if a specific capability is supported or not -# (BSP must select those that apply to it) - -config DYNAMIC_INT_STUBS - bool - # omit prompt to signify a "hidden" option - default n - help - This option allows a BSP's drivers to install interrupt handlers - at run time, if desired. If not enabled, interrupt handlers can only - be installed statically when the VxMicro image is created. - -config PROT_MODE_SWITCH_PROMPT - bool - # omit prompt to signify a "hidden" option - default n - help - This option allows users to select the value of the PROT_MODE_SWITCH - configuration option. - -config ADVANCED_IDLE_SUPPORTED - bool - # omit prompt to signify a "hidden" option - default n - help - This option signifies that the target supports the ADVANCED_IDLE - configuration option. - -# -# boot sequence features -# - -menu "Boot Sequence Options" - depends on PROT_MODE_SWITCH_PROMPT - -config PROT_MODE_SWITCH - bool - prompt "Switch to 32-bit protected mode when booting" - default n - help - This option causes the kernel to transition from real mode (16-bit) - to protected mode (32-bit) during its initial booting sequence. - -endmenu - -config BOOT_A20_ENABLE - bool - # omit prompt to signify a "hidden" option - depends on PROT_MODE_SWITCH - default n - help - This option causes the A20 line to be enabled during the transition - from real mode (16-bit) to protected mode (32-bit) during its initial - booting sequence. - -# -# memory layout features -# - -menu "Memory Layout Options" - -config IDT_NUM_VECTORS - int - prompt "Number of IDT vectors" - default 256 - help - This option specifies the number of interrupt vector entries in the - Interrupt Descriptor Table (IDT). By default all 256 vectors are - supported in an IDT requiring 2048 bytes of memory. - -config NUM_GDT_SPARE_ENTRIES - int - prompt "Number of spare GDT entries" - default 0 - help - This option specifies the number of spare entries in the Global - Descriptor Table (GDT). - -config PHYS_LOAD_ADDR - hex - # omit prompt to signify a "hidden" option - # default value must be supplied by BSP - help - This option specifies the physical address where the kernel is loaded. - -endmenu - -# -# floating point features -# - -menu "Floating Point Options" - depends on !CPU_FLOAT_UNSUPPORTED - -config FLOAT - bool - prompt "Floating point instructions" - default n - select FP_SHARING if ENHANCED_SECURITY - help - This option enables the use of x87 FPU and MMX instructions by - a task or fiber. - - Disabling this option means that any task or fiber that uses a - floating point instruction will get a fatal exception. - -config SSE - bool - prompt "SSEx instructions" - depends on FLOAT && !CPU_SSE_UNSUPPORTED - default n - help - This option enables the use of SSEx instructions by a task or fiber. - - Disabling this option means that no task or fiber may use SSEx - instructions; any such use will result in undefined behavior. - -config FP_SHARING - bool - prompt "Floating point resource sharing" if !ENHANCED_SECURITY - depends on FLOAT - default n - select AUTOMATIC_FP_ENABLING if ENHANCED_SECURITY - help - This option allows multiple tasks and fibers to safely utilize - floating point hardware resources. Every task or fiber that wishes - to use floating point instructions (i.e. x87 FPU, MMX, or SSEx) must - be created with such support already enabled, or must enable this - support via task_float_enable() or fiber_float_enable() before - executing these instructions. - - Enabling this option adds 108 bytes to the stack size requirement - of each task or fiber that utilizes x87 FPU or MMX instructions, - and adds 464 bytes to the stack size requirement of each task or - fiber that utilizes SSEx instructions. (The stack size requirement - of tasks and fibers that do not utilize floating point instructions - remains unchanged.) - - Disabling this option means that only a single task or fiber may - utilize x87 FPU, MMX, or SSEx instructions. (The stack size - requirement of all tasks and fibers remains unchanged.) - -config AUTOMATIC_FP_ENABLING - bool - prompt "Automatically enable floating point resource sharing" \ - if !ENHANCED_SECURITY - depends on FP_SHARING - default n - help - This option allows tasks and fibers to safely utilize floating - point hardware resources without requiring them to first indicate - their intention to do so. The system automatically detects when - a task or fiber that does not currently have floating point support - enabled uses a floating point instruction, and automatically executes - task_float_enable() or fiber_float_enable() on its behalf. The - task or fiber is enabled for using x87 FPU, MMX, or SSEx instructions - if SSE is configured, otherwise it is enabled for using x87 FPU or - MMX instructions only. - -config XIP - default n - -endmenu diff --git a/make/target/kconfig/arch/x86/build.kconf b/make/target/kconfig/arch/x86/build.kconf deleted file mode 100644 index e1a44c7151d..00000000000 --- a/make/target/kconfig/arch/x86/build.kconf +++ /dev/null @@ -1,58 +0,0 @@ -# build.kconf - Intel build-related configuration options - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# -# compile and link features -# - -menu "Compilation & Linkage Options" - -source "build-base.kconf" - -config SSE_FP_MATH - bool - prompt "Compiler-generated SSEx instructions" if FP_SHARING - depends on SSE && ISA_IA32 - default n if FP_SHARING - default y if !FP_SHARING - help - This option allows the compiler to generate SSEx instructions for - performing floating point math. This can greatly improve performance - when exactly the same operations are to be performed on multiple - data objects; however, it can also significantly reduce performance - when pre-emptive task switches occur because of the larger register - set that must be saved and restored. - - Disabling this option means that the compiler utilizes only the - x87 instruction set for floating point operations. - -endmenu diff --git a/make/target/kconfig/arch/x86/kernel-core.kconf b/make/target/kconfig/arch/x86/kernel-core.kconf deleted file mode 100644 index 868f24b6254..00000000000 --- a/make/target/kconfig/arch/x86/kernel-core.kconf +++ /dev/null @@ -1,84 +0,0 @@ -# kernel-core.kconf - Intel fundamental kernel configuration options - -# -# Copyright (c) 2012-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# -# fundamental kernel features -# - -menu "Basic Kernel Options" -source "basic.kconf" -endmenu - -menu "Security Options" - depends on ENHANCED_SECURITY - -source "security_basic.kconf" - -endmenu - -menu "Advanced Power Mangement Options" - depends on MICROKERNEL - -config TICKLESS_IDLE_UNSUPPORTED - # omit prompt to signify a "hidden" option - bool - default n - -source "apm.kconf" -endmenu - -menu "Input-Output Options" -source "io.kconf" -endmenu - -menu "System Monitoring Options" - -source "monitor.kconf" - -config CPU_CLOCK_FREQ_MHZ - int - prompt "CPU CLock Frequency in MHz" - default 20 - depends on BOOT_TIME_MEASUREMENT - help - This option specifies the CPU Clock Frequency in MHz in order to - convert Intel RDTSC timestamp to microseconds. - -endmenu - -menu "Debugging Options" -source "debug.kconf" -endmenu - -menu "Miscellaneous Kernel Options" -source "misc.kconf" -endmenu diff --git a/make/target/kconfig/modules/apm.kconf b/make/target/kconfig/modules/apm.kconf deleted file mode 100644 index e3029549714..00000000000 --- a/make/target/kconfig/modules/apm.kconf +++ /dev/null @@ -1,91 +0,0 @@ -# apm.kconf - advanced power management configuration options - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# -# advanced power management features -# - -config ADVANCED_POWER_MANAGEMENT - bool - prompt "Advanced power management" - default n - help - This option enables the BSP to implement extra power management - policies whenever the kernel becomes idle. The kernel informs the - BSP of the number of ticks until the next kernel timer expires by - calling the BSP function _sys_power_save_idle(). - -config TICKLESS_IDLE - bool - prompt "Tickless idle" - default y - depends on ADVANCED_POWER_MANAGEMENT && !TICKLESS_IDLE_UNSUPPORTED - help - This option suppresses periodic system clock interrupts whenever the - kernel becomes idle. This permits the system to remain in a power - saving state for extended periods without having to wake up to - service each tick as it occurs. - -config TICKLESS_IDLE_THRESH - int - prompt "Tickless idle threshold" - default 3 - depends on TICKLESS_IDLE - help - This option disables clock interrupt suppression when the kernel idles - for only a short period of time. It specifies the minimum number of - ticks that must occur before the next kernel timer expires in order - for suppression to happen. - -config ADVANCED_IDLE - bool - prompt "Advanced idle state" - default n - depends on ADVANCED_POWER_MANAGEMENT && ADVANCED_IDLE_SUPPORTED - help - This option enables the kernel to interface to a custom advanced idle - power saving manager. This permits the system to enter a custom - power saving state when the kernel becomes idle for extended periods, - and then to restore the system to its previous state (rather than - booting up from scratch) when the kernel is re-activated. - -config ADV_IDLE_STACK_SIZE - int - prompt "Advanced idle state stack size" - default 16 - depends on ADVANCED_IDLE - help - This option defines the size of the separate stack used during the - system state check while the booting up. A separate stack is used - to avoid memory corruption on the system re-activation from power - down mode. The stack size must be large enough to hold the return - address (4 bytes) and the _AdvIdleCheckSleep() stack frame. diff --git a/make/target/kconfig/modules/basic.kconf b/make/target/kconfig/modules/basic.kconf deleted file mode 100644 index ceebd175e7e..00000000000 --- a/make/target/kconfig/modules/basic.kconf +++ /dev/null @@ -1,59 +0,0 @@ -# basic.kconf - fundamental kernel configuration options - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# -# fundamental kernel features -# - -config ENHANCED_SECURITY - bool - prompt "Enhanced security features" - default y - help - This option enables all security features supported by VxMicro, - including those that can have a significant impact on system - footprint or performance; it also prevents the use of certain kernel - features that have known security risks. - - Users can customize these settings using the CUSTOM_SECURITY option - in the "Security Options" menu. - -config XIP - bool - prompt "Execute in place" - help - This option allows the kernel to operate with its text and read-only - sections residing in ROM (or similar read-only memory). Not all BSPs - support this option so it must be used with care; you must also - supply a linker command file when building your image. Enabling this - option increases both the code and data footprint of the image. - diff --git a/make/target/kconfig/modules/bluetooth.kconf b/make/target/kconfig/modules/bluetooth.kconf deleted file mode 100644 index c2129e9de47..00000000000 --- a/make/target/kconfig/modules/bluetooth.kconf +++ /dev/null @@ -1,152 +0,0 @@ -# bluetooth.kconf - Bluetooth LE configuration options - -# -# Copyright (c) 2015 Intel Corporation -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Intel Corporation nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# -# Bluetooth options -# - -config BLUETOOTH - bool - prompt "Bluetooth LE support [EXPERIMENTAL]" - default n - help - This option enables Bluetooth Low Energy support. - -config BLUETOOTH_MAX_CONN - int - prompt "Maximum number of simultaneous connections" - depends on BLUETOOTH - default 1 - range 1 16 - help - Maximum number of simultaneous Bluetooth connections - supported. The minimum (and default) number is 1. - -config BLUETOOTH_MAX_PAIRED - int - prompt "Maximum number of paired devices" - depends on BLUETOOTH - default 1 - range 1 32 - help - Maximum number of paired Bluetooth devices. The minimum (and - default) number is 1. - -config BLUETOOTH_DEBUG - bool - prompt "Bluetooth LE debug support" - depends on BLUETOOTH - select STDOUT_CONSOLE - default n - help - This option enables Bluetooth debug going to standard - serial console. - -config BLUETOOTH_DEBUG_HCI_CORE - bool - prompt "Bluetooth HCI core debug" - depends on BLUETOOTH_DEBUG - default n - help - This option enables debug support for Bluetooth HCI - core - -config BLUETOOTH_DEBUG_BUF - bool - prompt "Bluetooth buffers debug" - depends on BLUETOOTH_DEBUG - default n - help - This option enables debug support for Bluetooth buffers. - -config BLUETOOTH_DEBUG_CONN - bool - prompt "Bluetooth connection debug" - depends on BLUETOOTH_DEBUG - default n - help - This option enables debug support for Bluetooth - connection handling. - -config BLUETOOTH_DEBUG_L2CAP - bool - prompt "Bluetooth L2CAP debug" - depends on BLUETOOTH_DEBUG - default n - help - This option enables debug support for the Bluetooth - L2ACP layer. - -config BLUETOOTH_DEBUG_SMP - bool - prompt "Bluetooth Security Manager Protocol (SMP) debug" - depends on BLUETOOTH_DEBUG - default n - help - This option enables debug support for the Bluetooth - Security Manager Protocol (SMP). - -config BLUETOOTH_DEBUG_ATT - bool - prompt "Bluetooth Attribute Protocol (ATT) debug" - depends on BLUETOOTH_DEBUG - default n - help - This option enables debug support for the Bluetooth - Attribute Protocol (ATT). - -config BLUETOOTH_DEBUG_GATT - bool - prompt "Bluetooth Generic Attribute Profile (GATT) debug" - depends on BLUETOOTH_DEBUG - default n - help - This option enables debug support for the Bluetooth - Generic Attribute Profile (GATT). - -config BLUETOOTH_UART - bool - prompt "Bluetooth UART driver" - depends on BLUETOOTH - select UART_INTERRUPT_DRIVEN - default n - help - Enable Bluetooth UART driver. - -config BLUETOOTH_DEBUG_UART - bool - prompt "Bluetooth UART driver debug" - depends on BLUETOOTH_UART && BLUETOOTH_DEBUG - default n - help - This option enables debug support for Bluetooth UART - driver diff --git a/make/target/kconfig/modules/build-base.kconf b/make/target/kconfig/modules/build-base.kconf deleted file mode 100644 index 87ee3c02a9c..00000000000 --- a/make/target/kconfig/modules/build-base.kconf +++ /dev/null @@ -1,54 +0,0 @@ -# build-base.kconf - build-related configuration options - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# -# compile and link features -# - -config COMPILER_OPT - string - prompt "Custom compiler options" - default "" - help - This option is a free-form string that is passed to the compiler. - The compiler options specified by this string supplement the - pre-defined set of compiler supplied by the VxMicro build system, - and can be used to change compiler optimization, warning and error - messages, and so on. - -config BUILD_TIMESTAMP - bool - prompt "Build timestamp" - default n - help - This option embeds a string into the project image that indicates - the date and time the image was created. diff --git a/make/target/kconfig/modules/debug.kconf b/make/target/kconfig/modules/debug.kconf deleted file mode 100644 index 23b665e28fb..00000000000 --- a/make/target/kconfig/modules/debug.kconf +++ /dev/null @@ -1,78 +0,0 @@ -# debug.kconf - debugging configuration options - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# -# debugging features -# - -config ASSERT - bool - prompt "Enable __ASSERT() macro" - default n - help - This enables the __ASSERT() macro in the kernel code. If an assertion - fails, the calling thread is put on an infinite tight loop. Since - enabling this adds a significant footprint, it should only be enabled - in a non-production system. - -config ASSERT_LEVEL - int - prompt "__ASSERT() level" - default 1 - depends on ASSERT - help - This option specifies the assertion level used by the __ASSERT() - macro. It can be set to one of three possible values: - - Level 0: off - Level 1: on + warning in every file that includes __assert.h - Level 2: on + no warning - -config TASK_DEBUG - bool - prompt "Task debugging [EXPERIMENTAL]" - default n - help - This option allows execution of all tasks (with the exception of - essential system tasks) to be suspended so that debugging operations - can be performed. - -config GDB_INFO - bool - prompt "OS-aware debugging with GDB [EXPERIMENTAL]" - default n - select CONTEXT_MONITOR - help - This option enables the kernel to support OS-aware debugging - using GDB by collecting additional information required by the - debugger. System behavior during interrupts, exceptions, and - context switches may be impacted by the collection of this data. diff --git a/make/target/kconfig/modules/io.kconf b/make/target/kconfig/modules/io.kconf deleted file mode 100644 index 69f5343411c..00000000000 --- a/make/target/kconfig/modules/io.kconf +++ /dev/null @@ -1,70 +0,0 @@ -# io.kconf - I/O configuration options - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# -# system I/O features -# - -config STDOUT_CONSOLE - bool - prompt "Send stdout to console" - default n - help - This option directs standard output (e.g. printf) to the console - device, rather than suppressing in entirely. - -config PRINTK - bool - prompt "Send printk() to console" - default y - help - This option directs printk() debugging output to the console device, - rather than suppressing the generation of printk() output entirely. - Output is sent immediately, without any mutual exclusion or - buffering. - -config UART_INTERRUPT_DRIVEN - bool - prompt "Interrupt driven UART support" - default n - help - This option enables interrupt support for UART allowing console - input and UART based drivers. - -config CONSOLE_HANDLER - bool - prompt "Enable console input handler" - select UART_INTERRUPT_DRIVEN - default n - help - This option enables console input handler allowing to write simple - interaction between serial console and the OS. diff --git a/make/target/kconfig/modules/misc.kconf b/make/target/kconfig/modules/misc.kconf deleted file mode 100644 index a0ae70733dd..00000000000 --- a/make/target/kconfig/modules/misc.kconf +++ /dev/null @@ -1,204 +0,0 @@ -# misc.kconf - miscellaneous configuration options - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# -# miscellaneous features & settings -# - -config MAIN_STACK_SIZE - int - prompt "Background task stack size (in bytes)" - default 1024 - help - This option specifies the size of the stack used by the kernel's - background task, whose entry point is main(). - -config ISR_STACK_SIZE - int - prompt "ISR and initialization stack size (in bytes)" - default 2048 - help - This option specifies the size of the stack used by interrupt - service routines (ISRs), and during nanokernel initialization. - -config MICROKERNEL_SERVER_STACK_SIZE - int - prompt "Microkernel server fiber (K_swapper) stack size" - default 1024 - depends on MICROKERNEL - help - This option specifies the size of the stack used by the microkernel - server fiber, whose entry point is K_swapper(). This must be able - to handle the deepest call stack for internal handling of microkernel - objects used by a kernel's project. - -config NUM_TASK_PRIORITIES - int - prompt "Number of task priorities" - default 16 - range 1 256 - depends on MICROKERNEL - help - This option specifies the number of task priorities supported by the - task scheduler. Specifying "N" provides support for task priorities - ranging from 0 (highest) through N-2; task priority N-1 (lowest) is - reserved for the kernel's idle task. - -config NUM_COMMAND_PACKETS - int - prompt "Number of command packets" - default 16 - depends on MICROKERNEL - help - This option specifies the number of packets in the command packet pool. - This pool needs to be large enough to accommodate all in-flight - asynchronous command requests as well as those internally issued by - the microkernel server fiber (K_swapper). - -config COMMAND_STACK_SIZE - int - prompt "K_swapper command stack size (in packets)" - default 64 - range 1 256 - depends on MICROKERNEL - help - This option specifies the maximum number of command packets that - can be queued up for processing by the kernel's K_swapper fiber. - -config SYS_CLOCK_TICKS_PER_SEC - int - prompt "System tick frequency" if !NO_ISRS - default 0 if NO_ISRS - default 100 - help - This option specifies the frequency of the system clock in Hz. - - Specifying a frequency of zero results in a "tickless kernel" that - provides no timer support. This capability has not been fully - implemented and should be treated as [EXPERIMENTAL]. - -config SYS_CLOCK_HW_CYCLES_PER_SEC - int - # omit prompt to signify a "hidden" option - # value is set by BSP - help - Frequency of the hardware timer used for the system clock - (in Hz). - -config SYS_CLOCK_EXISTS - bool - # omit prompt to signify a "hidden" option - default n if (SYS_CLOCK_TICKS_PER_SEC = 0) - default y - help - This option specifies that system clock support is enabled. - -config NUM_TIMER_PACKETS - int - prompt "Number of timer packets" if SYS_CLOCK_EXISTS - default 0 if !SYS_CLOCK_EXISTS - default 10 - depends on MICROKERNEL - help - This option specifies the number of timer packets to create. Each - explicit and implicit timer usage consumes one timer packet. - -config TIMESLICING - bool - prompt "Task time slicing" - default y - depends on MICROKERNEL && SYS_CLOCK_EXISTS - help - This option enables time slicing between tasks of equal priority. - -config TIMESLICE_SIZE - int - prompt "Time slice size (in ticks)" - default 0 - depends on TIMESLICING - help - This option specifies the maximum amount of time a task can execute - before other tasks of equal priority are given an opportunity to run. - A time slice size of zero means "no limit" (i.e. an infinitely large - time slice). - -config TIMESLICE_PRIORITY - int - prompt "Time slicing task priority threshold" - default 0 - depends on TIMESLICING - help - This option specifies the task priority level at which time slicing - takes effect; tasks having a higher priority than this threshold - are not subject to time slicing. A threshold level of zero means - that all tasks are potentially subject to time slicing. - -config BOOTLOADER_UNKNOWN - bool - # omit prompt to signify a "hidden" option - default n - help - This option signifies that the target has an unknown bootloader - or that it supports multiple ways of booting and it isn't clear - at build time which method is to be used. When this option is enabled - the BSP may have to do extra work to ensure a propert startup. - -config MAX_NUM_TASK_IRQS - int - prompt "Number of task IRQ objects" - default 0 - depends on MICROKERNEL - help - This option specifies the maximum number of IRQs that may be - utilized by task level device drivers. A value of zero disables - this feature. - -config TEST_RANDOM_GENERATOR - bool - prompt "Non-random number generator" - default n - depends on !CUSTOM_RANDOM_GENERATOR - help - This option signifies that the kernel's random number APIs are - permitted to return values that are not truly random. - - This capability is provided for testing purposes, when a truly random - number generator is not available. The non-random number generator - should not be used in a production environment. - -config CONTEXT_CUSTOM_DATA - bool - prompt "Task and fiber custom data" - default n - help - This option allows each task and fiber to store 32 bits of custom data, - which can be accessed using the context_custom_data_xxx() APIs. diff --git a/make/target/kconfig/modules/monitor.kconf b/make/target/kconfig/modules/monitor.kconf deleted file mode 100644 index e1eb1ef0166..00000000000 --- a/make/target/kconfig/modules/monitor.kconf +++ /dev/null @@ -1,137 +0,0 @@ -# monitor.kconf - system monitoring configuration options - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# -# system monitoring features -# - -config BOOT_BANNER - bool - prompt "Boot banner" - default n - select PRINTK - help - This option outputs a banner to the console device during boot up. - -config WORKLOAD_MONITOR - bool - prompt "Workload monitoring [EXPERIMENTAL]" - default n - depends on MICROKERNEL - help - This option instructs the kernel to record the percentage of time - the system is doing useful work (i.e. is not idle). - -config TASK_MONITOR - bool - prompt "Task monitoring [EXPERIMENTAL]" - default n - depends on MICROKERNEL - help - This option instructs the kernel to record significant task - activities. These can include: task switches, task state changes, - kernel service requests, and the signalling of events. - -config TASK_MONITOR_CAPACITY - int - prompt "Trace buffer capacity (# of entries)" - default 300 - depends on TASK_MONITOR - help - This option specifies the number of entries in the task monitor's - trace buffer. Each entry requires 12 bytes. - -config TASK_MONITOR_MASK - int - prompt "Trace buffer mask" - default 15 - depends on TASK_MONITOR - help - This option specifies which task execution activities are captured - in the task monitor's trace buffer. The following values can be - OR-ed together to form the mask: - 1 (MON_TSWAP): task switch - 2 (MON_STATE): task state change - 4 (MON_KSERV): task execution of kernel APIs - 8 (MON_EVENT): task event signalled - -config OBJECT_MONITOR - bool - prompt "Kernel object monitoring [EXPERIMENTAL]" - default n - depends on MICROKERNEL - help - This option instructs the kernel to record statistics about - microkernel object usage. - -config CONTEXT_MONITOR - bool - prompt "Task and fiber monitoring [EXPERIMENTAL]" - default n - help - This option instructs the kernel to maintain a list of all tasks - and fibers (excluding those that have not yet started or have - already terminated). - -config INIT_STACKS - bool - prompt "Initialize stack areas" - default n - help - This option instructs the kernel to initialize stack areas with a - known value (0xaa) before they are first used, so that the high - water mark can be easily determined. This applies to the stack areas - for both tasks and fibers, as well as for the K_swapper's command - stack. - -config INT_LATENCY_BENCHMARK - bool - prompt "Interrupt latency metrics [EXPERIMENTAL]" - default n - help - This option enables the tracking of interrupt latency metrics; - the exact set of metrics being tracked is BSP-dependent. - - Tracking begins when int_latency_init() is invoked by an application. - The metrics are displayed (and a new sampling interval is started) - each time int_latency_show() is called thereafter. - -config BOOT_TIME_MEASUREMENT - bool - prompt "Boot time measurements [EXPERIMENTAL]" - default n - help - This option enables the recording of timestamps during system start - up. The global variable __start_tsc records the time VxMicro begins - executing, while __main_tsc records when main() begins executing, - and __idle_tsc records when the CPU becomes idle. All values are - recorded in terms of CPU clock cycles since system reset. diff --git a/make/target/kconfig/modules/security_basic.kconf b/make/target/kconfig/modules/security_basic.kconf deleted file mode 100644 index 2bd1a46fb3c..00000000000 --- a/make/target/kconfig/modules/security_basic.kconf +++ /dev/null @@ -1,62 +0,0 @@ -# security_basic.kconf - basic security configuration options - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# -# basic security features -# - -config CUSTOM_SECURITY - bool - prompt "Customized security" - default n - help - This option allow users to disable enhanced security features they do - not wish to use or enable the use of features with security exposures. - -config STACK_CANARIES - bool - prompt "Compiler stack canaries" if CUSTOM_SECURITY - default y - help - This option enables compiler stack canaries support on most functions - in the kernel. - - If stack canaries are supported by the compiler, it will emit - extra code that inserts a canary value into the stack frame when - a function is entered and validates this value upon exit. - Stack corruption (such as that caused by buffer overflow) results - in a fatal error condition for the running entity. - Enabling this option can result in a significant increase - in footprint and an associated decrease in performance. - - If stack canaries are not supported by the compiler, enabling this - option has no effect. diff --git a/make/target/kconfig/nkernel.kconf b/make/target/kconfig/nkernel.kconf deleted file mode 100644 index b0c84843dbd..00000000000 --- a/make/target/kconfig/nkernel.kconf +++ /dev/null @@ -1,63 +0,0 @@ -# nkernel.kconf - nanokernel configuration options - -# -# Copyright (c) 2012-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -config NANOKERNEL - bool -# omit prompt to signify a "hidden" option that can't be changed - default y - -# This is a product-specific file. - -source "product.kconf" - -# This is an arch-specific file, under ${vMAKE}/target/kconfig/arch/${ARCH}. - -source "kernel-core.kconf" - -# This is provided by the BSP. The file parsed by wrsconfig is always -# named bsp.kconf. -# -# If the BSP has no variant, it provides one file called bsp.kconf. -# -# However, if a BSP has variants, it provides multiple files, called -# bsp-${BSP_VARIANT}.kconf. In that case, the build system renames the -# one used during a specific build to bsp.kconf in the build's output -# directory. - -source "bsp.kconf" - -# This is an arch-specific file, under ${vMAKE}/target/kconfig/arch/${ARCH}. - -source "build.kconf" - -# Include Bluetooth configuration -source "bluetooth.kconf" diff --git a/make/target/kconfig/product.kconf b/make/target/kconfig/product.kconf deleted file mode 100644 index 2f0459174e6..00000000000 --- a/make/target/kconfig/product.kconf +++ /dev/null @@ -1,37 +0,0 @@ -# product.kconf - product configuration options - -# -# Copyright (c) 2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# -# This file can be customized with product-specific configuration options. -# - -# diff --git a/make/target/kconfig/ukernel.kconf b/make/target/kconfig/ukernel.kconf deleted file mode 100644 index e1b09842e97..00000000000 --- a/make/target/kconfig/ukernel.kconf +++ /dev/null @@ -1,66 +0,0 @@ -# ukernel.kconf - microkernel configuration options - -# -# Copyright (c) 2012-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -config MICROKERNEL - bool -# omit prompt to signify a "hidden" option that can't be changed - default y - -config MICROKERNEL_SERVER_PRIORITY - int - prompt "Priority of the kernel service fiber" - default 0 - depends on MICROKERNEL - help - Priority of the microkernel server fiber that performs - kernel requests and task scheduling assignments. - -config PRIORITY_CEILING - int - prompt "Maximum priority for priority inheritance algorithm" - default 0 - depends on MICROKERNEL - help - The highest task priority for the mutex priority inheritance - algorithm. - A task of low priority holding a mutex will see its priority - bumped to the priority of a task trying to acquire the mutex. - This option puts an upper boundary to the priority a task may - get bumped to. - -# see nkernel.kconf for a description of these files - -source "product.kconf" -source "kernel-core.kconf" -source "bsp.kconf" -source "build.kconf" -source "bluetooth.kconf" diff --git a/make/target/kernel/arch/arc/defs.arch b/make/target/kernel/arch/arc/defs.arch deleted file mode 100644 index f0d1cfd6163..00000000000 --- a/make/target/kernel/arch/arc/defs.arch +++ /dev/null @@ -1,14 +0,0 @@ -# defs.arch - build system - -# Copyright (c) 2014 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -# undefined symbols the linker must define -# Diab does not understand the EXTERN() linker language pseudo-function - -vARCH_UNDEF_SYMS = $(strip \ - _irq_vector_table \ -) diff --git a/make/target/kernel/arch/arm/defs.arch b/make/target/kernel/arch/arm/defs.arch deleted file mode 100644 index 3d22e089ce0..00000000000 --- a/make/target/kernel/arch/arm/defs.arch +++ /dev/null @@ -1,47 +0,0 @@ -# defs.arch - build system - -# -# Copyright (c) 2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# undefined symbols the linker must define -# Some compilers do not understand the EXTERN() linker language pseudo-function - -# link in _irq_vector_table_with_gdb_stub if CONFIG_GDB_INFO is enabled but -# CONFIG_SW_ISR_TABLE is *disabled* -iARCH_UNDEF_SYMS_GDB_INFO__y = y -iARCH_UNDEF_SYMS_SW_ISR_TABLE__ = n -iARCH_UNDEF_SYMS_GDB_INFO = ${iARCH_UNDEF_SYMS_GDB_INFO__${CONFIG_GDB_INFO}} -iARCH_UNDEF_SYMS_SW_ISR_TABLE = ${iARCH_UNDEF_SYMS_SW_ISR_TABLE__${CONFIG_SW_ISR_TABLE}} -iARCH_UNDEF_SYMS_GDB_STUBS_yn = _irq_vector_table_with_gdb_stub - -vARCH_UNDEF_SYMS = $(strip \ - _irq_vector_table \ - ${iARCH_UNDEF_SYMS_GDB_STUBS_${iARCH_UNDEF_SYMS_GDB_INFO}${iARCH_UNDEF_SYMS_SW_ISR_TABLE}} \ -) diff --git a/make/target/kernel/check.kapp b/make/target/kernel/check.kapp deleted file mode 100644 index 91301c418cf..00000000000 --- a/make/target/kernel/check.kapp +++ /dev/null @@ -1,53 +0,0 @@ -# check.kapp - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -ifneq (${KLIB_DIR},) - $(if ${iUSE_PRJ_CONF},\ - $(error Project config file can not be used with KLIB_DIR),) -endif - -ifeq (${vGOAL_NEEDS_TARGET_SETUP},y) - ifeq (${MAKE_RESTARTS},) - ifneq (${KLIB_DIR},) - $(info Kernel project uses these external kernel libraries:) - $(info >>> ${vKLIB_DIR}) - endif - $(call q_info,Base BSP directory: '${vBSP_BASE_DIR}') - $(call q_info,Building for '${vBSP}' BSP) - endif -endif - -ifeq (${vGOAL_NEEDS_TARGET_SETUP},y) - ifneq (${MAKECMDGOALS},config) - $(if $(strip ${iPRJ_SRC}),,$(error Kernel project with no source files!)) - endif -endif diff --git a/make/target/kernel/check.klib b/make/target/kernel/check.klib deleted file mode 100644 index d16ceec1646..00000000000 --- a/make/target/kernel/check.klib +++ /dev/null @@ -1,35 +0,0 @@ -# check.klib - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -ifeq (${vGOAL_NEEDS_TARGET_SETUP},y) - $(if ${BSP},,$(error No BSP specified! ('BSP' is not set))) -endif diff --git a/make/target/kernel/check.nkapp b/make/target/kernel/check.nkapp deleted file mode 100644 index 54938307969..00000000000 --- a/make/target/kernel/check.nkapp +++ /dev/null @@ -1,34 +0,0 @@ -# check.nkapp - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -include ${vMAKE}/target/kernel/check.nklib -include ${vMAKE}/target/kernel/check.kapp diff --git a/make/target/kernel/check.nklib b/make/target/kernel/check.nklib deleted file mode 100644 index 97c1dd7703c..00000000000 --- a/make/target/kernel/check.nklib +++ /dev/null @@ -1,33 +0,0 @@ -# check.nklib - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -include ${vMAKE}/target/kernel/check.klib diff --git a/make/target/kernel/check.ukapp b/make/target/kernel/check.ukapp deleted file mode 100644 index 42aab8bc34f..00000000000 --- a/make/target/kernel/check.ukapp +++ /dev/null @@ -1,36 +0,0 @@ -# check.ukapp - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -include ${vMAKE}/target/kernel/check.uklib -include ${vMAKE}/target/kernel/check.kapp - -$(if ${iVPF_BASE},,$(error VPF file '$(or $(strip ${VPFILE}),prj.vpf)' not found)) diff --git a/make/target/kernel/check.uklib b/make/target/kernel/check.uklib deleted file mode 100644 index c7d94b7cb9f..00000000000 --- a/make/target/kernel/check.uklib +++ /dev/null @@ -1,33 +0,0 @@ -# check.uklib - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -include ${vMAKE}/target/kernel/check.klib diff --git a/make/target/kernel/defs.kbuild b/make/target/kernel/defs.kbuild deleted file mode 100644 index f22dc1a23fb..00000000000 --- a/make/target/kernel/defs.kbuild +++ /dev/null @@ -1,319 +0,0 @@ -# defs.kbuild - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -vBSP = $(strip ${BSP}) -ifeq (${vGOAL_NEEDS_TARGET_SETUP},y) - include ${vCONFIG_BASE_DIR}/${vBSP}/defs.bsp -else ifneq (${vBSP},) - include ${vCONFIG_BASE_DIR}/${vBSP}/defs.bsp -endif - -vOUT_DIR ?= $(abspath $(or $(strip $(subst \,/,${OUTPUT_DIR})),${vHERE}/outdir)) - -vKSRC_DIR ?= ${vBASE}/kernel -vKHDR_DIR ?= ${vBASE}/include -vKLIB_DIR ?= $(or $(strip $(subst \,/,${KLIB_DIR})),${vOUT_DIR}/klib) -vKAPP_DIR ?= $(or $(strip $(subst \,/,${KAPP_DIR})),${vOUT_DIR}/kapp) -LINKER_CMD ?= ${vBSP_BASE_DIR}/${vBSP}/linker.cmd -INCLUDE_AUTOCONF = ${vKLIB_DIR}/include/autoconf.h - -# user can set PRJ_SRCPATH (be sure to extract drive letter if applicable) -iPRJ_PATH_FROM_SRCPATH = $(subst ${vDRIVE_BASE},,$(subst ${vDRIVE_HERE},,$(abspath ${PRJ_SRCPATH}))) -iPRJ_PATH_AUTOMATIC = $(if $(strip ${PRJ_SRC}),,$(wildcard ${vHERE}/src)) -iPRJ_SRCPATH = $(or ${iPRJ_PATH_FROM_SRCPATH},${iPRJ_PATH_AUTOMATIC}) -iPRJ_SRCPATH += ${iKTYPE_kapp_SRCPATH} - -iPRJ__SRCPATH = ${PRJ_INCPATH} ${iPRJ_SRCPATH} -iPRJ_INCPATH = $(subst \,/,$(strip ${iPRJ__SRCPATH})) ${iKTYPE_kapp_INCPATH} - -# XXX - consider using ':=' since might be hitting the file system HARD -# in that case, toolchain definitions must precede this to get $c/$s -iPRJ_SRC_AUTO = -iPRJ_SRC_AUTO += $(foreach path,${iPRJ_SRCPATH},$(wildcard ${path}/*.$c)) -iPRJ_SRC_AUTO += $(foreach path,${iPRJ_SRCPATH},$(wildcard ${path}/*.$s)) - -iPRJ_SRC = $(strip ${PRJ_SRC} ${iPRJ_SRC_AUTO} ${iKTYPE_kapp_SRC}) -kapp_SRC = ${iPRJ_SRC} - -# kapp_OBJ = $(sort $(subst .$s,.$o,$(subst .$c,.$o,${iPRJ_SRC}))) - -iKLIB_INC_DIR ?= $(strip \ - ${vBASE}/include \ - ${vKLIB_DIR}/include \ - ${KERNEL_STDLIB_INCLUDE_DIR} \ -) - -vKAPP_INC_DIR += $(strip \ - ${iPRJ_INCPATH} \ - ${vBASE}/include \ - ${vKLIB_DIR}/include \ - ${iKTYPE_kapp_INC} \ - ${KERNEL_STDLIB_INCLUDE_DIR} \ -) - -LIB_INCLUDE_DIR ?= $(strip \ - ${vKLIB_DIR} \ - ${vKAPP_DIR} \ - ${vOUT_DIR} \ - ${vTC_LIB_DIR} \ - ${KERNEL_STDLIB_OUTPUT_DIR} \ -) -ALL_LIBS += ${ALIBS} ${KLIBS} ${vKLIBS_EXTRA} - -ENTRY ?= __start - -# If PRJ_CONF is specified or a default prj.conf file exists indicate that -# the build system will use a project config file. -iUSE_PRJ_CONF = $(or ${PRJ_CONF},$(wildcard prj.conf)) - -i_PRJ_CONF = $(if $(strip ${PRJ_CONF}),$(if $(wildcard ${PRJ_CONF}),$(strip \ - $(subst \,/,${PRJ_CONF})),\ - $(error invalid PRJ_CONF (${PRJ_CONF}))),$(wildcard prj.conf)) - -iPRJ_CONF = $(if ${i_PRJ_CONF},$(if $(findstring ./,$(dir ${i_PRJ_CONF})),\ - ${vHERE}/${i_PRJ_CONF},${i_PRJ_CONF}),) - -##### -# ref_bsp - -iCFG_ORIG_STEM = ${vCONFIG_BASE_DIR}/${vBSP}/${vKTYPE}/config${NUM_NODES}p - - -##### -# buildspec used by Host Tools - -iBUILDSPEC = ${vOUT_DIR}/buildspec - -##### -# always link against standard C and math libraries, -# and against auxiliary compiler libraries - -vKLIBS_EXTRA += c m -vKLIBS_EXTRA += ${vTC_LIBS} - -iKLIB_GEN_HDRS += $(strip \ - ${iOFFSETS_HDR} ${vAUTOCONF_H} \ - ${iKVER_HDR} \ - ${iKLIB_ARCH_GEN_HDRS} \ -) - -ALIBS ?= kapp - -iKLIBS = $(foreach klib,${KLIBS},${vKLIB_DIR}/lib${klib}.$a) -iALIBS = $(foreach alib,${ALIBS},${vKAPP_DIR}/lib${alib}.$a) -iLIBS = ${iKLIBS} ${iALIBS} - -iOUTDIR_EXISTS := $(wildcard ${vOUT_DIR}) -iOUTDIR_IS_VALID := $(wildcard ${vOUT_DIR}/.dir) - -##### -# clean rule -# Take a snapshot of the files and directories in ${vOUT_DIR}: they will -# get moved to ${iTRASHBIN}, which will be subsequently deleted. The files -# we are intereted in keeping are .autoconf, .autoconf.old and .dir, which -# are not listed in a $(wildcard *) call because they start with '.'. This -# behaviour is the same on Windows, which conflicts with the behaviour of -# 'dir *' on that platform. - -iTRASHBIN = ${vOUT_DIR}/.trash -iFILES_TO_CLEAN := $(wildcard ${vOUT_DIR}/*) - -##### - -# target -include ${vMAKE}/target/env/defs.target - -# stdlib defaults -vKERNEL_STDLIB ?= $(or $(strip ${KERNEL_STDLIB}),minimal) -vSTDLIB = ${vKERNEL_STDLIB} -include ${vMAKE}/target/stdlib/${vSTDLIB}/defs.stdlib -include ${vMAKE}/target/stdlib/${vSTDLIB}/defs.kernel.stdlib - -# kernel headers -include ${vMAKE}/target/headers/defs.autoconf.kernel -include ${vMAKE}/target/headers/defs.offsets -include ${vMAKE}/env/defs.kver -include ${vMAKE}/target/headers/defs.kver - -# arch-specific -ifeq (${vGOAL_NEEDS_TARGET_SETUP},y) - include ${vMAKE}/target/arch/${vARCH}/defs.arch - sinclude ${vMAKE}/target/kernel/arch/${vARCH}/defs.arch -endif - -#Add kernel indicator -iCTX_CFLAGS += -DKERNEL - -#Disable use of autoconf.h for configs.c build -nkernel_configs_CFLAGS = ${-D}__AUTOCONF_DONT_USE_AUTOCONF - -# toolchain -ifeq (${vGOAL_NEEDS_TARGET_SETUP},y) - include ${vMAKE}/target/toolchain/${vTOOL}/defs.${vTOOL} -endif - -# kernel libraries, including BSP -ifeq (${vGOAL_NEEDS_TARGET_SETUP},y) - include ${vBSP_BASE_DIR}/${vBSP}/defs.objs -endif -include ${vKSRC_DIR}/defs.objs - -# generate per-lib variables -# $1: library name -# $2: output directory -define objs_for_one_lib__defs - $1_C_SRC = $$(filter %.$c,$${$1_SRC}) - $1_C_SRC_TO_OBJ = $$(patsubst %.$c,%.$o,$${$1_C_SRC}) - $1_C_OBJ = $$(addprefix $2/obj.$1/,$$(notdir $${$1_C_SRC_TO_OBJ})) - $1_C_MODULES = $$(notdir $$(basename $${$1_C_SRC})) - $1_ASM_SRC = $$(filter %.$s,$${$1_SRC}) - $1_ASM_SRC_TO_OBJ = $$(patsubst %.$s,%.$o,$${$1_ASM_SRC}) - $1_ASM_OBJ = $$(addprefix $2/obj.$1/,$$(notdir $${$1_ASM_SRC_TO_OBJ})) - $1_ASM_MODULES = $$(notdir $$(basename $${$1_ASM_SRC})) - $1_OBJ = $${$1_C_OBJ} $${$1_ASM_OBJ} - -endef - -# generate: _ = -# $1: library name -# $2: full path of source file -# $3: output dir -define src_to_module__defs - $1_$$(notdir $$(basename $2)) = $$(notdir $$(basename $2)) $3/obj.$1 $2 - -endef - -define vars_for_one_klib__rule - ${vKLIB_DIR}/lib$1.$a: iINCLUDE_DIR=$${$1_INCLUDE_DIR} $${iKLIB_INC_DIR} - ${vKLIB_DIR}/lib$1.$a: iLIB_NAME=$1 - ${vKLIB_DIR}/lib$1.$a: iOBJ=$${$1_OBJ} - -endef - -define vars_for_one_kapp__rule - ${vKAPP_DIR}/lib$1.$a: iINCLUDE_DIR=$${$1_INCLUDE_DIR} $${vKAPP_INC_DIR} - ${vKAPP_DIR}/lib$1.$a: iLIB_NAME=$1 - ${vKAPP_DIR}/lib$1.$a: iOBJ=$${$1_OBJ} - -endef - -define deps_for_one_klib__rule - ${$1_C_OBJ} ${$1_ASM_OBJ}: $${iKLIB_GEN_HDRS} - -endef - -define deps_for_one_kapp__rule - ${$1_OBJ}: $${iKLIB_GEN_HDRS} $${iKAPP_GEN_HDRS} $${iKTYPE_kapp_DEP} - -endef - -define src_from_paths - $1_SRC += \ - $(strip\ - $(foreach path,${$1_SRCPATH},$(wildcard ${path}/*.$c))\ - $(foreach path,${$1_SRCPATH},$(wildcard ${path}/*.$s))\ - ) - -endef - -$(foreach lib,${KLIBS},$(eval $(call objs_for_one_lib__defs,${lib},${vKLIB_DIR}))) -$(foreach lib,${ALIBS},$(eval $(call objs_for_one_lib__defs,${lib},${vKAPP_DIR}))) -$(foreach lib,${KLIBS},$(eval $(call src_from_paths,${lib}))) - -# generate for all kernel libraries: -# _ = -$(foreach lib,${KLIBS},\ - $(foreach src,${${lib}_C_SRC} ${${lib}_ASM_SRC},\ - $(eval $(call src_to_module__defs,${lib},${src},${vKLIB_DIR}))\ - )\ -) - -$(foreach lib,${ALIBS},\ - $(foreach src,${${lib}_C_SRC} ${${lib}_ASM_SRC},\ - $(eval $(call src_to_module__defs,${lib},${src},${vKAPP_DIR}))\ - )\ -) - -# build complete line -define Build_complete_output - -@${HOS_EchoBlankLine} - -@${HOS_Echo} Build complete. - -@$(foreach image,$?,${HOS_Echo} Image location: ${image} ${HOS_MultiCmd}) - -endef - -iDOT_D_KLIB = $(foreach klib,${KLIBS},$(foreach obj,${${klib}_OBJ},${obj:.o=.d})) -iDOT_D_KAPP = $(foreach alib,${ALIBS},$(foreach obj,${${alib}_OBJ},${obj:.o=.d})) -iDOT_D += ${iDOT_D_KLIB} ${iDOT_D_KAPP} - -##### -# kernel standard C libraries - -iKERNEL_STDLIB_RULE = kernel_stdlib - -# tricky: if KERNEL_STDLIB_COMPILER_OPT is non-empty, -# iKERNEL_STDLIB_COMPILER_OPT_STR_${KERNEL_STDLIB_COMPILER_OPT} -# resolves to , but if KERNEL_STDLIB_COMPILER_OPT is empty, -# iKERNEL_STDLIB_COMPILER_OPT_STR_${KERNEL_STDLIB_COMPILER_OPT} resolves -# to ${vDEFAULT_COMPILER_OPT} -KERNEL_STDLIB_COMPILER_OPT ?= ${CONFIG_COMPILER_OPT} -iKERNEL_STDLIB_COMPILER_OPT_STR_ = ${vDEFAULT_COMPILER_OPT} -iKERNEL_STDLIB_COMPILER_OPT_STR = $(subst ${vSPACE},_,$(strip \ - ${KERNEL_STDLIB_COMPILER_OPT}${iKERNEL_STDLIB_COMPILER_OPT_STR_${KERNEL_STDLIB_COMPILER_OPT}} \ -)) - -KERNEL_STDLIB_STACK_CANARIES ?= ${CONFIG_STACK_CANARIES} -iKERNEL_STDLIB_STACK_CANARIES_STR_y = -stack_canaries -iKERNEL_STDLIB_STACK_CANARIES_STR = ${iKERNEL_STDLIB_STACK_CANARIES_STR_${KERNEL_STDLIB_STACK_CANARIES}} - -iKERNEL_STDLIB_MISC_STR = ${iKERNEL_STDLIB_STACK_CANARIES_STR}${iKERNEL_STDLIB_COMPILER_OPT_STR} - -iKERNEL_STDLIB_DIR_NAME = ${vKERNEL_STDLIB}-kernel-${vARCH}-${vCPU}-${vTOOL}${iKERNEL_STDLIB_MISC_STR} - -KERNEL_STDLIB_OUTPUT_DIR ?= ${vBASE}/samples/libc/${iKERNEL_STDLIB_DIR_NAME} - -KERNEL_STDLIB_INCLUDE_DIR = ${vSTDLIB_HDR_PATH} - -iKERNEL_STDLIB_CMDLINE = $(strip \ - OUTPUT_DIR=${KERNEL_STDLIB_OUTPUT_DIR} \ - ARCH=${vARCH} CPU=${vCPU} VXMICRO_TOOL=${vTOOL}\ - OVERRIDE_COMPILER_OPT=${KERNEL_STDLIB_COMPILER_OPT} \ - STACK_CANARIES=${KERNEL_STDLIB_STACK_CANARIES} \ - STDLIB_TYPE=KERNEL \ -) - -vKERNEL_UNDEF_SYMS_TIMESTAMP_y = build_timestamp - -vKERNEL_UNDEF_SYMS = $(strip \ - ${vKERNEL_UNDEF_SYMS_TIMESTAMP_${CONFIG_BUILD_TIMESTAMP}} \ - ${vARCH_UNDEF_SYMS} \ -) diff --git a/make/target/kernel/defs.nkbuild b/make/target/kernel/defs.nkbuild deleted file mode 100644 index 6a0d80edea7..00000000000 --- a/make/target/kernel/defs.nkbuild +++ /dev/null @@ -1,44 +0,0 @@ -# defs.nkbuild - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -vKTYPE = nkernel - -# override values, nanokernel is not VSP-capable -override NUM_NODES = 1 -override NODES = 1 - -include ${vMAKE}/target/kernel/defs.kbuild - -##### -# for help: - -iHELP_EXEC_NAMES = nanokernel diff --git a/make/target/kernel/defs.ukbuild b/make/target/kernel/defs.ukbuild deleted file mode 100644 index 7220333e9cf..00000000000 --- a/make/target/kernel/defs.ukbuild +++ /dev/null @@ -1,96 +0,0 @@ -# defs.ukbuild - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -vKTYPE = ukernel -NODES ?= 1 -NUM_NODES ?= 1 - -# only NODE1 has a boot file -iBOOT_FILE_1 = ${BOOT_FILE} - -##### -# ref_bsp - -iCFG_ORIG_VPF = ${iCFG_ORIG_STEM}.vpf - -##### -# sysgen - -iSYSGEN_OUT = ${vOUT_DIR}/sysgen - -iVXMICRO_H = ${iSYSGEN_OUT}/vxmicro.$h -iKERNEL_MAIN_C = ${iSYSGEN_OUT}/kernel_main.$c - -##### -# extra generated headers -# -iKTYPE_kapp_INC += $(strip \ - ${iSYSGEN_OUT} \ -) -iKTYPE_kapp_SRC += ${iKERNEL_MAIN_C} - -define iPerNodeDep - iKTYPE_kapp_DEP += ${iVXMICRO_H} ${iKERNEL_MAIN_C} - -endef -include ${vMAKE}/target/kernel/defs.kbuild - -##### -# VPF file -# must be after defs.kbuild so we get vHERE and the error does not trigger - -iVPF_BASE = $(wildcard $(or $(strip ${VPFILE}),prj.vpf)) -iVPF = ${vHERE}/${iVPF_BASE} - -##### -# this is located after including defs.kbuild since vOUT_DIR is needed to -# construct the variable names and thus the toolchain definitions must have -# been included first -$(foreach node,${NODES},$(eval $(call iPerNodeDep,${node}))) - -##### -# this is located after including defs.kbuild since ${elf}/${bin} are needed to -# construct the variable names and thus the toolchain definitions must have -# been included first -iALL_${elf}_TARGETS = ${vOUT_DIR}/microkernel.${elf} -iALL_${bin}_TARGETS = ${vOUT_DIR}/microkernel.${bin} -iALL_${strip}_TARGETS = ${vOUT_DIR}/microkernel.${strip} - -define iPerNodeRules -${vOUT_DIR}/microkernel.${elf}:$${iBOOT_FILE_$1} ${vOUT_DIR}/microkernel.${lnk} ${iLIBS} ${iKERNEL_STDLIB_RULE} - -endef - -##### -# for help: - -iHELP_EXEC_NAMES = microkernel diff --git a/make/target/kernel/rules.kbuild b/make/target/kernel/rules.kbuild deleted file mode 100644 index 7128f34ee79..00000000000 --- a/make/target/kernel/rules.kbuild +++ /dev/null @@ -1,122 +0,0 @@ -# rules.kbuild - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -.PHONY: klibs alibs - -alibs: ${iALIBS} - -##### -# KLIB_DIR is set by the kernel designer if the kernel is to be built with -# libraries built externally from the project. In that case, prevent building -# libraries in the kernel project itself. - -ifeq (${KLIB_DIR},) -klibs: ${iKLIBS} -else -klibs: - -@$(HOS_Echo) [klibs] KLIB_DIR is set, cannot build kernel libraries - @$(HOS_false) -endif - -# all rules -ifeq (${vGOAL_NEEDS_TARGET_SETUP},y) - include ${vMAKE}/target/arch/${vARCH}/rules.arch -endif -include ${vMAKE}/target/headers/rules.autoconf -include ${vMAKE}/target/headers/rules.offsets -include ${vMAKE}/target/headers/rules.kver -ifeq (${vGOAL_NEEDS_TARGET_SETUP},y) - include ${vMAKE}/target/toolchain/${vTOOL}/rules.${vTOOL} - include ${vMAKE}/target/toolchain/${vTOOL}/rules.kernel-bin -endif - -${vKLIB_DIR}/configs.c: ${vAUTOCONF_H} | $$(dir $$@).dir - $q${HOS_GenConfigAbssym} -i $< -o $@ - -# generate a custom .c/.s -> .o rule for each source file -iSRC_TYPES = C ASM -$(foreach type,${iSRC_TYPES},\ - $(foreach lib,${KLIBS} ${ALIBS},\ - $(foreach module,${${lib}_${type}_MODULES},\ - $(eval $(call one_${type}_obj_file__rule,${${lib}_${module}}))\ - )\ - )\ -) - -$(foreach klib,${KLIBS},$(eval $(call vars_for_one_klib__rule,${klib}))) -$(foreach alib,${ALIBS},$(eval $(call vars_for_one_kapp__rule,${alib}))) - -$(foreach klib,${KLIBS},$(eval $(call deps_for_one_klib__rule,${klib}))) -$(foreach alib,${ALIBS},$(eval $(call deps_for_one_kapp__rule,${alib}))) - -.PHONY: kernel_stdlib clean_kernel_stdlib -kernel_stdlib: - ${MAKE} -C ${vBASE}/lib/libc/${vKERNEL_STDLIB} ${iKERNEL_STDLIB_CMDLINE} - -clean_kernel_stdlib: - ${MAKE} -C ${vBASE}/lib/libc/${vKERNEL_STDLIB} ${iKERNEL_STDLIB_CMDLINE} pristine - -${iBUILDSPEC}: | $$(dir $$@).dir - $q${HOS_Echo} "BSP =" ${vBSP} > $@ - $q${HOS_Echo} "BSP_VARIANT =" $(or ${vBSP_VARIANT},"N/A") >> $@ - $q${HOS_Echo} "ARCH =" ${vARCH} >> $@ - $q${HOS_Echo} "CPU =" ${vCPU} >> $@ - $q${HOS_Echo} "VXMICRO_TOOL =" ${vTOOL} >> $@ - $q${HOS_Echo} "QEMU_MACHINE =" $(or ${QEMU_MACHINE},"N/A") >> $@ - $q${HOS_Echo} "QEMU_CPU =" $(or ${vQEMU_CPU},"N/A") >> $@ - -##### -# help - -.PHONY: help_kbuild help_klibs help_clean - -help_kbuild: - @${HOS_EchoBlankLine} - @${HOS_Echo} " Build" - @${HOS_Echo} " [default] bin: build project's bin files" - @${HOS_Echo} " elf: build project's ELF files" - @${HOS_Echo} " strip: generate a stripped ELF file" - @${HOS_Echo} " from an ELF image" - -help_klibs: - @${HOS_EchoBlankLine} - @${HOS_Echo} " Build" - @${HOS_Echo} " klibs - build project" - -help_clean: - @${HOS_EchoBlankLine} - @${HOS_Echo} " Clean-up" - @${HOS_Echo} " clean: clean all but keep configuration" - @${HOS_Echo} " pristine: clean all and remove configuration" - @${HOS_Echo} " wipe: alias for pristine" - -sinclude ${iDOT_D} diff --git a/make/target/kernel/rules.kclean b/make/target/kernel/rules.kclean deleted file mode 100644 index 1f00df06f52..00000000000 --- a/make/target/kernel/rules.kclean +++ /dev/null @@ -1,77 +0,0 @@ -# rules.kclean - build system - -# -# Copyright (c) 2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -##### -# cleanup rules -# -# clean: everything but .autoconf files, to keep the configuration -# wipe: EVERYTHING -# pristine: alias for wipe - -.PHONY: clean wipe pristine - -ifneq (${iOUTDIR_EXISTS},) - ifneq (${iOUTDIR_IS_VALID},) - - ifneq (${iFILES_TO_CLEAN},) - clean: - $q${HOS_MakeDir} ${iTRASHBIN} - $q${HOS_Move} ${iFILES_TO_CLEAN} ${iTRASHBIN} - $q${HOS_DelDir} ${iTRASHBIN} - else - clean: - @${HOS_true} - endif - - wipe: - $q${HOS_DelDir} ${vOUT_DIR} - - else - - clean: - @${HOS_Echo} "Cannot clean: '${vOUT_DIR}' is not a valid output directory" - @${HOS_false} - - wipe: clean - - endif - -else - - clean: - @${HOS_true} - - wipe: clean - -endif - -pristine: wipe diff --git a/make/target/kernel/rules.nkbuild b/make/target/kernel/rules.nkbuild deleted file mode 100644 index 4c463fa1175..00000000000 --- a/make/target/kernel/rules.nkbuild +++ /dev/null @@ -1,48 +0,0 @@ -# rules.nkbuild - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -.PHONY: ${bin} ${elf} - -${bin}: ${vOUT_DIR}/nanokernel.${bin} - $(call Build_complete_output) - -${elf}: ${vOUT_DIR}/nanokernel.${elf} - $(call Build_complete_output) - -${strip}: ${vOUT_DIR}/nanokernel.${strip} - $(call Build_complete_output) - -${vOUT_DIR}/nanokernel.${bin}: ${vOUT_DIR}/nanokernel.${elf} - -${vOUT_DIR}/nanokernel.${elf}: ${iLIBS} ${iKLIB_DEP} ${iKERNEL_STDLIB_RULE} - -include ${vMAKE}/target/kernel/rules.kbuild diff --git a/make/target/kernel/rules.ukbuild b/make/target/kernel/rules.ukbuild deleted file mode 100644 index 79ed107dbdf..00000000000 --- a/make/target/kernel/rules.ukbuild +++ /dev/null @@ -1,59 +0,0 @@ -# rules.ukbuild - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -.PHONY: ${elf} ${bin} - -${bin}: ${iALL_${bin}_TARGETS} - $(call Build_complete_output) - -${elf}: ${iALL_${elf}_TARGETS} ${PRJ_REQ} - $(call Build_complete_output) - -${strip}: ${iALL_${strip}_TARGETS} - $(call Build_complete_output) - -$(foreach node,${NODES},$(eval $(call iPerNodeRules,${node}))) - -${iKERNEL_MAIN_C}: ${iVXMICRO_H} - @${HOS_true} - -${iVXMICRO_H}: ${iSYSGEN_OUT}/${iVPF_BASE} ${HOS_SysGen} | $$(dir $$@).dir - $q${HOS_DeleteFiles} $@ - -@${HOS_Echo} '[sysgen] Generating $(notdir $@) from $(notdir $<)' - -@${HOS_Echo} '[sysgen] Check for sysgen error messages if $(notdir $@) not found' - $q${HOS_SysGen} $< $(dir $@) - -${iSYSGEN_OUT}/microkernel.${elf}: ${vOUT_DIR}/microkernel.${elf} | $$(dir $$@).dir - $q${HOS_CopyFile} $< $(dir $@) - -include ${vMAKE}/target/kernel/rules.vpfgen -include ${vMAKE}/target/kernel/rules.kbuild diff --git a/make/target/kernel/rules.vpfgen b/make/target/kernel/rules.vpfgen deleted file mode 100644 index 9a8def20249..00000000000 --- a/make/target/kernel/rules.vpfgen +++ /dev/null @@ -1,58 +0,0 @@ -# rules.vpfgen - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -${iSYSGEN_OUT}/${iVPF_BASE}: ${iVPF} | $$(dir $$@).dir - -@${HOS_Echo} '[vxmicro] Generating [${iVPF_BASE}]' - $q${HOS_Echo} '${HOS_Percent} WARNING. THIS FILE IS AUTOGENERATED. DO NOT MODIFY!' > $@ - $q${HOS_EchoBlankLine} >> $@ - $q${HOS_Echo} '${HOS_Percent} CONFIG NUM_COMMAND_PACKETS NUM_TIMER_PACKETS NUM_TASK_PRIORITIES' >> $@ - $q${HOS_Echo} '${HOS_Percent} =============================================================' >> $@ - $q${HOS_Echo} ' CONFIG ${CONFIG_NUM_COMMAND_PACKETS} ${CONFIG_NUM_TIMER_PACKETS} ${CONFIG_NUM_TASK_PRIORITIES}' >> $@ - $q${HOS_EchoBlankLine} >> $@ - $q${HOS_Echo} '${HOS_Percent} TASKGROUP NAME' >> $@ - $q${HOS_Echo} '${HOS_Percent} ==============' >> $@ - $q${HOS_Echo} ' TASKGROUP EXE' >> $@ - $q${HOS_Echo} ' TASKGROUP SYS' >> $@ - $q${HOS_Echo} ' TASKGROUP FPU' >> $@ - $q${HOS_Echo} ' TASKGROUP SSE' >> $@ - $q${HOS_EchoBlankLine} >> $@ -ifneq (${CONFIG_MAX_NUM_TASK_IRQS},0) - -@${HOS_Echo} '[vxmicro] Adding [task device objects -> ${iVPF_BASE}]' - $q${HOS_EchoBlankLine} >> $@ - $q${HOS_Echo} '${HOS_Percent} Task IRQ objects'>> $@ - $q${HOS_Echo} '${HOS_Percent} EVENT NAME HANDLER'>> $@ - $q${HOS_Echo} '${HOS_Percent} =============================='>> $@ - $q${HOS_mkevents} ${CONFIG_MAX_NUM_TASK_IRQS} >> $@ -endif - $q${HOS_EchoBlankLine} >> $@ - $q${HOS_Cat} ${iCFG_ORIG_VPF} >> $@ - $q${HOS_Cat} $< >> $@ diff --git a/make/target/library/defs.library b/make/target/library/defs.library deleted file mode 100644 index bc6da8ab769..00000000000 --- a/make/target/library/defs.library +++ /dev/null @@ -1,94 +0,0 @@ -# defs.library - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -OUTPUT_DIR ?= outdir - -##### -# user may set these variables -# -# COMPILER_OPT with a compiler opt flag (toolchain-specific) -# STACK_CANARIES with y or n -# - -vOUT_DIR = $(strip ${OUTPUT_DIR}) -iOUT_DIR_OBJ = ${vOUT_DIR}/obj.${LIB_NAME} - -iLIB_NAME = $(strip ${LIB_NAME}) - -iSRC_FROM_PATH = $(strip \ - $(foreach path,${${LIB_NAME}_SRCPATH},$(wildcard ${path}/*.$c)) \ - $(foreach path,${${LIB_NAME}_SRCPATH},$(wildcard ${path}/*.$s)) \ -) - -iSRC_IN_CURDIR = $(strip \ - $(wildcard *.$c) \ - $(wildcard *.$s) \ -) - -iSRC_EXPLICIT = $(strip ${${LIB_NAME}_SRC} ${iSRC_FROM_PATH}) -iSRC = $(or ${iSRC_EXPLICIT},${iSRC_IN_CURDIR}) - -iSRC_C = $(filter %.$c,${iSRC}) -iSRC_ASM = $(filter %.$s,${iSRC}) - -include ${vMAKE}/target/library/defs.objects - -${LIB_NAME}_OBJ = ${iOBJ} - -iINCLUDE_DIR = ${${LIB_NAME}_INCLUDE_DIR} - -include ${vMAKE}/target/env/defs.target - -$(if ${vCPU},,$(error CPU is not set!)) -$(if ${vARCH},,$(error ARCH is not set!)) - -##### -# preempt the variables from the tools - -iHAS_COMPILER_OPT = $(lastword ${OVERRIDE_COMPILER_OPT}) -OVERRIDE_COMPILER_OPT = ${COMPILER_OPT} - -##### -# STDLIB will be set by the library's Makefile if it requires any stdlib -# header files to build. If set, include the defs.stdlib for the desired set -# of standard libraries. -vSTDLIB = $(strip ${STDLIB}) -sinclude ${vMAKE}/target/stdlib/${vSTDLIB}/defs.stdlib - -##### - -sinclude ${vMAKE}/target/toolchain/${vTOOL}/defs.flags.library -include ${vMAKE}/target/toolchain/${vTOOL}/defs.${vTOOL} - -$(foreach src,${iSRC_C} ${iSRC_ASM},\ - $(eval $(call src_to_module__defs,${LIB_NAME},${src},${iOUT_DIR_OBJ}))\ -) diff --git a/make/target/library/defs.objects b/make/target/library/defs.objects deleted file mode 100644 index 6893a06a433..00000000000 --- a/make/target/library/defs.objects +++ /dev/null @@ -1,52 +0,0 @@ -# defs.objects - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -iSRC_TO_OBJ_C = $(patsubst %.$c,%.$o,${iSRC_C}) -iOBJ_C = $(addprefix ${iOUT_DIR_OBJ}/,$(notdir ${iSRC_TO_OBJ_C})) -iMODULES_C = $(notdir $(basename ${iSRC_C})) - -iSRC_TO_OBJ_ASM = $(patsubst %.$s,%.$o,${iSRC_ASM}) -iOBJ_ASM = $(addprefix ${iOUT_DIR_OBJ}/,$(notdir ${iSRC_TO_OBJ_ASM})) -iMODULES_ASM = $(notdir $(basename ${iSRC_ASM})) - -iOBJ = ${iOBJ_C} ${iOBJ_ASM} - -# generate: _ = -# $1: library name -# $2: full path of source file -# $3: output dir -define src_to_module__defs - $1_$$(notdir $$(basename $2)) = $$(notdir $$(basename $2)) $3 $2 - -endef - -iDOT_D += ${iOBJ:.$o=.$d} diff --git a/make/target/library/rules.library b/make/target/library/rules.library deleted file mode 100644 index 80da13aed86..00000000000 --- a/make/target/library/rules.library +++ /dev/null @@ -1,57 +0,0 @@ -# rules.library - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -.PHONY: lib clean pristine -lib: ${vOUT_DIR}/lib${LIB_NAME}.$a - -iOUTDIR_EXISTS = $(wildcard ${vOUT_DIR}) -iOUTDIR_IS_VALID = $(wildcard ${vOUT_DIR}/.dir) -iLIB_DIR_CLEAN_ERR = Cannot remove '${vOUT_DIR}': not a valid output directory -clean: - @$(if ${iOUTDIR_IS_VALID},${HOS_DelDir} ${vOUT_DIR},$(if ${iOUTDIR_EXISTS},$(error ${iLIB_DIR_CLEAN_ERR}),)) - -pristine: clean - -ifeq ($(filter ${MAKECMDGOALS},clean pristine wipe),) -include ${vMAKE}/target/toolchain/${vTOOL}/rules.${vTOOL} - -# generate a custom .c/.s -> .o rule for each source file -iSRC_TYPES = C ASM -$(foreach type,${iSRC_TYPES},\ - $(foreach module,${iMODULES_${type}},\ - $(eval $(call one_${type}_obj_file__rule,${${LIB_NAME}_${module}}))\ - )\ -) - -include ${vOUT_DIR}/.dir -sinclude ${iDOT_D} -endif diff --git a/make/target/make.library b/make/target/make.library deleted file mode 100644 index 077d0d39b0d..00000000000 --- a/make/target/make.library +++ /dev/null @@ -1,41 +0,0 @@ -# make.library - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -include ${vMAKE}/env/sanity_check - -include ${vMAKE}/target/library/defs.library -include ${vMAKE}/target/library/rules.library - -$(if ${iLIB_NAME},,$(error LIB_NAME is not set!)) - -sinclude ${vMAKE}/target/wb-helper/defs.library -include ${vMAKE}/env/rules.wb-helper diff --git a/make/target/make.nkernel b/make/target/make.nkernel deleted file mode 100644 index 0db83d51409..00000000000 --- a/make/target/make.nkernel +++ /dev/null @@ -1,51 +0,0 @@ -# make.nkernel - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -include $(subst \,/,${VXMICRO_BASE})/make/env/sanity_check - -include ${vMAKE}/target/kernel/defs.nkbuild - -ifeq ($(strip $(filter ${MAKECMDGOALS},wipe pristine clean)),) - include ${vMAKE}/target/run/defs.emulation - include ${vMAKE}/target/kernel/rules.nkbuild - include ${vMAKE}/target/run/rules.emulation -endif - -include ${vMAKE}/target/kernel/rules.kclean -include ${vMAKE}/target/kernel/check.nkapp - -.PHONY: help -help: help_kbuild $(foreach run,${RUN},help_${run}) help_clean - @${HOS_EchoBlankLine} - -sinclude ${vMAKE}/target/wb-helper/defs.nkernel -include ${vMAKE}/env/rules.wb-helper diff --git a/make/target/make.nklib b/make/target/make.nklib deleted file mode 100644 index 5eeac6bcba7..00000000000 --- a/make/target/make.nklib +++ /dev/null @@ -1,51 +0,0 @@ -# make.nklib - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -include $(subst \,/,${VXMICRO_BASE})/make/env/sanity_check - -.DEFAULT_GOAL = klibs - -include ${vMAKE}/target/kernel/defs.nkbuild - -ifeq ($(strip $(filter ${MAKECMDGOALS},wipe pristine clean)),) - include ${vMAKE}/target/kernel/rules.nkbuild -endif - -include ${vMAKE}/target/kernel/rules.kclean -include ${vMAKE}/target/kernel/check.nklib - -.PHONY: help -help: help_klibs help_clean - @${HOS_EchoBlankLine} - -sinclude ${vMAKE}/target/wb-helper/defs.nklib -include ${vMAKE}/env/rules.wb-helper diff --git a/make/target/make.ukernel b/make/target/make.ukernel deleted file mode 100644 index b4cb367eb6b..00000000000 --- a/make/target/make.ukernel +++ /dev/null @@ -1,51 +0,0 @@ -# make.ukernel - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -include $(subst \,/,${VXMICRO_BASE})/make/env/sanity_check - -include ${vMAKE}/target/kernel/defs.ukbuild - -ifeq ($(strip $(filter ${MAKECMDGOALS},wipe pristine clean)),) - include ${vMAKE}/target/run/defs.emulation - include ${vMAKE}/target/kernel/rules.ukbuild - include ${vMAKE}/target/run/rules.emulation -endif - -include ${vMAKE}/target/kernel/rules.kclean -include ${vMAKE}/target/kernel/check.ukapp - -.PHONY: help -help: help_kbuild $(foreach run,${RUN},help_${run}) help_clean - @${HOS_EchoBlankLine} - -sinclude ${vMAKE}/target/wb-helper/defs.ukernel -include ${vMAKE}/env/rules.wb-helper diff --git a/make/target/make.uklib b/make/target/make.uklib deleted file mode 100644 index 854895326ac..00000000000 --- a/make/target/make.uklib +++ /dev/null @@ -1,51 +0,0 @@ -# make.uklib - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -include $(subst \,/,${VXMICRO_BASE})/make/env/sanity_check - -.DEFAULT_GOAL = klibs - -include ${vMAKE}/target/kernel/defs.ukbuild - -ifeq ($(strip $(filter ${MAKECMDGOALS},wipe pristine clean)),) - include ${vMAKE}/target/kernel/rules.ukbuild -endif - -include ${vMAKE}/target/kernel/rules.kclean -include ${vMAKE}/target/kernel/check.uklib - -.PHONY: help -help: help_klibs help_clean - @${HOS_EchoBlankLine} - -sinclude ${vMAKE}/target/wb-helper/defs.uklib -include ${vMAKE}/env/rules.wb-helper diff --git a/make/target/run/arch/defs.qemu.arc b/make/target/run/arch/defs.qemu.arc deleted file mode 100644 index 93bc4333932..00000000000 --- a/make/target/run/arch/defs.qemu.arc +++ /dev/null @@ -1 +0,0 @@ -# empty, build system expects a defs.qemu.${vARCH} file for no good reason. diff --git a/make/target/run/arch/defs.qemu.arm b/make/target/run/arch/defs.qemu.arm deleted file mode 100644 index 570a35d5718..00000000000 --- a/make/target/run/arch/defs.qemu.arm +++ /dev/null @@ -1,47 +0,0 @@ -# defs.qemu.arm - ARM-specific QEMU definitions - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# DESCRIPTION - -# File defines: -# vQEMU_CPU - the target cpu -# vQEMU_FLAGS - flags for the QEMU -# vQEMU_TOOLS_INT - flags indicating that QEMU is integrated with host tools - -iQEMU_CPU_CortexM3 = cortex-m3 - -vQEMU_CPU = ${iQEMU_CPU_${vCPU}} - -vQEMU_FLAGS ?= -cpu ${vQEMU_CPU} -machine ${QEMU_MACHINE} -nographic -vQEMU_TOOLS_INT ?= off - -vQEMU_BIN_ARCH = arm diff --git a/make/target/run/arch/defs.qemu.x86 b/make/target/run/arch/defs.qemu.x86 deleted file mode 100644 index b7014ef65a2..00000000000 --- a/make/target/run/arch/defs.qemu.x86 +++ /dev/null @@ -1,56 +0,0 @@ -# defs.qemu.x86 - Intel-specific QEMU definitions - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# DESCRIPTION - -# File defines: -# vQEMU_CPU - the target cpu -# vQEMU_FLAGS - flags for the QEMU -# vQEMU_TOOLS_INT - flags indicating that QEMU is integrated with host tools - -iQEMU_CPU_pentium4 = qemu32 -iQEMU_CPU_minuteia = pentium - -vQEMU_CPU = ${iQEMU_CPU_${vCPU}} -QEMU_BIOS ?= /usr/share/qemu -vQEMU_FLAGS ?= $(strip \ --m 32 -cpu ${vQEMU_CPU} -no-reboot -nographic -display none \ --net none -clock dynticks -no-acpi -balloon none -no-hpet \ --L ${QEMU_BIOS} -bios bios.bin \ --machine type=pc-0.14 \ -) - -vQEMU_TOOLS_INT ?= off - -vQEMU_BIN_ARCH = i386 - -vQEMU_FLAGS += -nodefaults diff --git a/make/target/run/defs.emulation b/make/target/run/defs.emulation deleted file mode 100644 index 84b260302e0..00000000000 --- a/make/target/run/defs.emulation +++ /dev/null @@ -1,38 +0,0 @@ -# defs.emulation - emulation definitions - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# Linux specific definitions -include ${vMAKE}/target/run/defs.emulation.${vHOST} -# definitions for QEMU -include ${vMAKE}/target/run/defs.qemu -# definitions for other emulations -sinclude ${vMAKE}/target/run/defs.extra diff --git a/make/target/run/defs.emulation.x86-linux2 b/make/target/run/defs.emulation.x86-linux2 deleted file mode 100644 index 444796bd554..00000000000 --- a/make/target/run/defs.emulation.x86-linux2 +++ /dev/null @@ -1,34 +0,0 @@ -# defs.emulation.x86-linux2 - common emulator Linux specific definitions - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# DESCRIPTION -# currently empty diff --git a/make/target/run/defs.qemu b/make/target/run/defs.qemu deleted file mode 100644 index 761e0693bf3..00000000000 --- a/make/target/run/defs.qemu +++ /dev/null @@ -1,39 +0,0 @@ -# defs.qemu - platform independent QEMU definitions - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -sinclude ${vMAKE}/target/run/defs.qemu.custom.${VXMICRO_QEMU} -include ${vMAKE}/target/run/defs.qemu.default -include ${vMAKE}/target/run/arch/defs.qemu.${vARCH} - -# The platform specific defines go afterwards and append -# platform specific values to environment variables -include ${vMAKE}/target/run/defs.qemu.${vHOST} diff --git a/make/target/run/defs.qemu.custom.vqemu b/make/target/run/defs.qemu.custom.vqemu deleted file mode 120000 index ab9300f2c6c..00000000000 --- a/make/target/run/defs.qemu.custom.vqemu +++ /dev/null @@ -1 +0,0 @@ -../../../make/vxmicro/make/target/run/defs.qemu.custom.vqemu \ No newline at end of file diff --git a/make/target/run/defs.qemu.custom.yocto b/make/target/run/defs.qemu.custom.yocto deleted file mode 100644 index cb42fdacc1f..00000000000 --- a/make/target/run/defs.qemu.custom.yocto +++ /dev/null @@ -1,37 +0,0 @@ -# defs.qemu.custom.yocto - QEMU definitions for Yocto toolchain - -# -# Copyright (c) 2015 Intel Corporation -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Intel Corporation nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -QEMU_BIN_PATH = ${YOCTO_SDK_INSTALL_DIR}/sysroots/i686-pokysdk-linux/usr/bin -QEMU_BIOS = ${YOCTO_SDK_INSTALL_DIR}/sysroots/i686-pokysdk-linux/usr/share/qemu - - - diff --git a/make/target/run/defs.qemu.default b/make/target/run/defs.qemu.default deleted file mode 100644 index 5f31f052482..00000000000 --- a/make/target/run/defs.qemu.default +++ /dev/null @@ -1,38 +0,0 @@ -# defs.qemu.default - default QEMU definitions - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# set up system to use VQEMU & associated libraries - -vQEMU_NAME ?= qemu-system-${vQEMU_BIN_ARCH}${HOS_exe} -QEMU_BIN_PATH ?= /usr/bin -vQEMU_BIN ?= ${QEMU_BIN_PATH}/${vQEMU_NAME} -QEMU_BIOS ?= /usr/share/qemu/bios.bin diff --git a/make/target/run/defs.qemu.x86-linux2 b/make/target/run/defs.qemu.x86-linux2 deleted file mode 100644 index da44171fff5..00000000000 --- a/make/target/run/defs.qemu.x86-linux2 +++ /dev/null @@ -1,53 +0,0 @@ -# defs.qemu.x86-linux2 - QEMU Linux specific definitions - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# DESCRIPTION -# File defines: -# vQEMU_NAME - name of QEMU executable -# vQEMU_BIN - fully qualified path to QEMU executable -# iQEMU_BANNER - banner to be printed on QEMU start -# iQEMU_CONSOLE - QEMU stdout console - -vQEMU_BIN ?= qemu-system-${vQEMU_BIN_ARCH} - -iQEMU_BANNER = "To exit from QEMU enter: 'CTRL+a, x'" -iQEMU_CONSOLE = mon:stdio - -sinclude ${vMAKE}/target/run/arch/defs.qemu.x86-linux2.${vARCH} - -# stop QEMU simulation -define Qemu_stop - @-if [ -r ${vOUT_DIR}/qemu.pid ]; then \ - kill -9 $$(<${vOUT_DIR}/qemu.pid); \ - rm -f ${vOUT_DIR}/qemu.pid; \ - fi -endef diff --git a/make/target/run/rules.emulation b/make/target/run/rules.emulation deleted file mode 100644 index 0d66f321833..00000000000 --- a/make/target/run/rules.emulation +++ /dev/null @@ -1,44 +0,0 @@ -# rules.emulation - emulation rules - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# Define empty rules for the files "defs.*" and "rules.*". This is done to -# resolve a clash between file names (such as "defs.qemu" and "rules.qemu") -# and rules (such as "%.qemu"). Without these two empty rules, "make" would -# try to rebuild those build files when it encounters rules of the same name. -defs.%: ; -rules.%: ; - -# rules for QEMU -include $(if ${vQEMU_BIN},${vMAKE}/target/run/rules.qemu,) - -# definitions for other emulations -sinclude ${vMAKE}/target/run/rules.extra diff --git a/make/target/run/rules.qemu b/make/target/run/rules.qemu deleted file mode 100644 index 1657bc8f6dc..00000000000 --- a/make/target/run/rules.qemu +++ /dev/null @@ -1,53 +0,0 @@ -# rules.qemu - rules for running on QEMU target - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -ifeq (${vQEMU_BIN},) - $(error defs.qemu must be included before this makefile fragment) -endif - -include ${vMAKE}/target/run/rules.qemu.${vHOST} - -# run the target -%.qemu: ${vOUT_DIR}/%.${elf} - $q${HOS_Echo} [rules.qemu] Booting $< - $q${HOS_Echo} [${vQEMU_BIN} ${vQEMU_FLAGS}] - $q${HOS_Echo} ${iQEMU_BANNER} - $q${vQEMU_BIN} ${vQEMU_FLAGS} -pidfile ${vOUT_DIR}/qemu.pid -kernel $< -serial ${iQEMU_CONSOLE} ${QEMU_EXTRA_FLAGS} - -.PHONY: help_qemu -iQEMU_RUN_STR = $(foreach exec,${iHELP_EXEC_NAMES},${exec}.qemu): run -iQEMU_GDB_STR = $(foreach exec,${iHELP_EXEC_NAMES},${exec}.qemu.gdb): debug with GDB -help_qemu: - @${HOS_EchoBlankLine} - @${HOS_Echo} " QEMU" - @${HOS_Echo} " ${iQEMU_RUN_STR}" - @${HOS_Echo} " ${iQEMU_GDB_STR}" diff --git a/make/target/run/rules.qemu.x86-linux2 b/make/target/run/rules.qemu.x86-linux2 deleted file mode 100644 index 7bb01bc2084..00000000000 --- a/make/target/run/rules.qemu.x86-linux2 +++ /dev/null @@ -1,71 +0,0 @@ -# rules.qemu.x86-linux2 - Linux specific rules for running on QEMU target - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# depend on hidden timestamp since otherwise Makefile traverses link -# to determine the timestamp and $(HOME)/.socatPipeB doesnt exist yet -# this should update symbolic links to the virtual serial line in -# case they are changed -serialLink: ${iSIM_SERIAL_DEVICE} - -# create host communication serial link -# - destroy existing .socatPipe files -# - link host's end of host communication link to .socatPipeB -# (which doesn't yet exist) -# -# note: -# - VxMicro's end of the host link will be .socatPipeA -# - both .socatPipeA and .socatPipeB get created when "socat" is invoked -# -${iSIM_SERIAL_DEVICE}: - $q${HOS_DeleteFiles} $(HOME)/.socatPipe* - $q${HOS_Link} $(HOME)/.socatPipeB $@ - $q${HOS_Touch} $@ - -.gdbinit: - $q${HOS_Echo} target remote localhost:1234 >.gdbinit - $q${HOS_Echo} dir $(VXMICRO_BASE_UNIX)/target/src/kernel >>.gdbinit - -# run the target with GDB -define Qemu_debug - $(Qemu_stop) - @setsid ${HOS_Term} ${vQEMU_BIN} ${vQEMU_FLAGS} -kernel $1 -s -S -serial ${iQEMU_CONSOLE} & - $q${HOS_Sleep} 1 - -endef - -%.qemu.gdb %.gdb: ${vOUT_DIR}/%.${elf} .gdbinit - $(call Qemu_debug,$<) - $q${vGDB} -tui $< - -%.qemu.ddd %.ddd: ${vOUT_DIR}/%.${elf} .gdbinit - $(call Qemu_debug,$<) - ddd --gdb --debugger "${vGDB} $<" & diff --git a/make/target/stdlib/minimal/defs.kernel.stdlib b/make/target/stdlib/minimal/defs.kernel.stdlib deleted file mode 100644 index 98b9d9aff6a..00000000000 --- a/make/target/stdlib/minimal/defs.kernel.stdlib +++ /dev/null @@ -1,33 +0,0 @@ -# defs.kernel.stdlib - build system - -# -# Copyright (c) 2014, Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -vSTDLIB_HDR_PATH ?= ${vBASE}/lib/libc/${vSTDLIB}/include diff --git a/make/target/stdlib/minimal/defs.stdlib b/make/target/stdlib/minimal/defs.stdlib deleted file mode 100644 index 0144f5d5ade..00000000000 --- a/make/target/stdlib/minimal/defs.stdlib +++ /dev/null @@ -1,38 +0,0 @@ -# defs.stdlib - build system - -# -# Copyright (c) 2014, Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -STDLIB_x86_CFLAGS = -STDLIB_arm_CFLAGS = - -STDLIB_CFLAGS ?= $(strip \ - ${STDLIB_${vARCH}_CFLAGS} \ -) diff --git a/make/target/toolchain/common/defs.objects b/make/target/toolchain/common/defs.objects deleted file mode 100644 index 9a8b8503213..00000000000 --- a/make/target/toolchain/common/defs.objects +++ /dev/null @@ -1,130 +0,0 @@ -# defs.objects - build system - -# -# Copyright (c) 2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -iUSE_CCACHE_y = y - -# ccache does not work if cflags are passed through a file: they must be -# passed on the command-line, so force NO_FLAGS_FILES if using it -iNO_FLAGS_FILES = $(or ${iUSE_CCACHE_${VXMICRO_USE_CCACHE}},${VXMICRO_NO_FLAGS_FILES}) - -iOBJ_VAR_EXT_y = $o -iOBJ_VAR_EXT_n = flags -iOBJ_VAR_EXT_ = flags -iOBJ_VAR_EXT = ${iOBJ_VAR_EXT_${iNO_FLAGS_FILES}} - -$(if ${iOBJ_VAR_EXT},,$(error VXMICRO_NO_FLAGS_FILES is set to an invalid value)) - -# $(word 1,$1): basename -# $(word 2,$1): output dir -# $(word 3,$1): source file - -##### -# generate a .o file from a C file - -define one_C_obj_file__rule - -$$(word 2,$1)/$$(word 1,$1).${iOBJ_VAR_EXT}: iLIB_CFLAGS=$${$$(or $${iLIB_NAME},COMMON)_CFLAGS} - -$$(word 2,$1)/$$(word 1,$1).${iOBJ_VAR_EXT}: iSRC_CFLAGS=$$(strip \ - $${$${iLIB_NAME}$$(if $${iLIB_NAME},_,)$$(word 1,$1)_CFLAGS} \ - $${-iinclude}$$(word 2,$1)/$$(word 1,$1).hash \ -) - -$$(word 2,$1)/$$(word 1,$1).${iOBJ_VAR_EXT}: iINC_PATHS=$$(strip \ - $$(foreach path,$${iINCLUDE_DIR},-I $${path}) \ -) - -$$(word 2,$1)/$$(word 1,$1).${iOBJ_VAR_EXT}: iOBJ_FLAGS=$$(strip \ - $${CFLAGS} $${iLIB_CFLAGS} $${iSRC_CFLAGS} $${iTC_SYSINC} $${iINC_PATHS} \ -) - -# Generate the hash file -$$(word 2,$1)/$$(word 1,$1).hash: | $$(word 2,$1)/.dir - -@${HOS_Echo} '[${vTOOL}] Generating [$$(notdir $$@)]' - $q${HOS_GenHash} $$@ $$@ - -ifeq (${iNO_FLAGS_FILES},y) -$$(word 2,$1)/$$(word 1,$1).$o: $$(word 3,$1) $$(word 2,$1)/$$(word 1,$1).hash ${iDEPEND_ON_MAKEFILES} | $$(word 2,$1)/.dir - -@${HOS_Echo} '[${vTOOL}] Compiling [$$(notdir $$<)]' - $q${HOS_ccache} ${vCC} $${iOBJ_FLAGS} $$< -o $$@ - $q${vCC} $${iOBJ_FLAGS} $${iCC_DEP_GEN} $$< $${iCC_DEP_TARGET}$$@ $${iCC_DEP_FILE}$${@:.o=.d} $${iQUIESCE_DOT_D} -else -$$(word 2,$1)/$$(word 1,$1).flags: ${iDEPEND_ON_MAKEFILES} | $$(word 2,$1)/.dir - -@${HOS_Echo} '[${vTOOL}] Preparing [$$(notdir $$@)]' - $qecho $${CFLAGS} $${iLIB_CFLAGS} $${iSRC_CFLAGS} $${iTC_SYSINC} $${iINC_PATHS} > $$@ - -$$(word 2,$1)/$$(word 1,$1).$o: $$(word 3,$1) $$(word 2,$1)/$$(word 1,$1).hash $$(word 2,$1)/$$(word 1,$1).flags | $$(word 2,$1)/.dir - -@${HOS_Echo} '[${vTOOL}] Compiling [$$(notdir $$<)]' - $q${vCC} @$$(word 2,$1)/$$(word 1,$1).flags $$< $${-o} $$@ - $q${vCC} @$$(word 2,$1)/$$(word 1,$1).flags $${iCC_DEP_GEN} $$< $${iCC_DEP_TARGET}$$@ $${iCC_DEP_FILE}$${@:.o=.d} $${iQUIESCE_DOT_D} -endif - -endef - -##### -# generate a .o file from an assembly file - -define one_ASM_obj_file__rule - -$$(word 2,$1)/$$(word 1,$1).${iOBJ_VAR_EXT}: iLIB_ASMFLAGS=$${$$(or $${iLIB_NAME},COMMON)_ASMFLAGS} - -$$(word 2,$1)/$$(word 1,$1).${iOBJ_VAR_EXT}: iSRC_ASMFLAGS=$$(strip \ - $${$${iLIB_NAME}$$(if $${iLIB_NAME},_,)$$(word 1,$1)_ASMFLAGS} \ -) - -$$(word 2,$1)/$$(word 1,$1).${iOBJ_VAR_EXT}: iINC_PATHS=$$(strip \ - $$(foreach path,$${iINCLUDE_DIR},-I $${path}) \ -) - -$$(word 2,$1)/$$(word 1,$1).${iOBJ_VAR_EXT}: iOBJ_FLAGS=$$(strip \ - $${ASMFLAGS} $${iLIB_ASMFLAGS} $${iSRC_ASMFLAGS} $${iINC_PATHS} \ -) - -ifeq (${iNO_FLAGS_FILES},y) -$$(word 2,$1)/$$(word 1,$1).$o: $$(word 3,$1) ${iDEPEND_ON_MAKEFILES} | $$(word 2,$1)/.dir - -@${HOS_Echo} '[${vTOOL}] Assembling [$$(notdir $$<)]' - $q${vAS} $${iOBJ_FLAGS} $${iPP_AS} $$< -o $$@ - $q${vAS} $${iOBJ_FLAGS} $${iCC_DEP_GEN} $$< $${iCC_DEP_TARGET}$$@ $${iCC_DEP_FILE}$${@:.o=.d} $${iQUIESCE_DOT_D} -else -$$(word 2,$1)/$$(word 1,$1).flags: ${iDEPEND_ON_MAKEFILES} | $$(word 2,$1)/.dir - -@${HOS_Echo} '[${vTOOL}] Preparing [$$(notdir $$@)]' - $qecho $${ASMFLAGS} $${iLIB_ASMFLAGS} $${iSRC_ASMFLAGS} $${iPP_AS} $${iINC_PATHS} > $$@ - -$$(word 2,$1)/$$(word 1,$1).$o: $$(word 3,$1) $$(word 2,$1)/$$(word 1,$1).flags | $$(word 2,$1)/.dir - -@${HOS_Echo} '[${vTOOL}] Assembling [$$(notdir $$<)]' - $q${vAS} @$$(word 2,$1)/$$(word 1,$1).flags $$< $${-o} $$@ - $q${vAS} @$$(word 2,$1)/$$(word 1,$1).flags $${iCC_DEP_GEN} $$< $${iCC_DEP_TARGET}$$@ $${iCC_DEP_FILE}$${@:.o=.d} $${iQUIESCE_DOT_D} -endif - -endef - -##### diff --git a/make/target/toolchain/common/rules.objects b/make/target/toolchain/common/rules.objects deleted file mode 100644 index cd1737a8006..00000000000 --- a/make/target/toolchain/common/rules.objects +++ /dev/null @@ -1,77 +0,0 @@ -# rules.objects - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -iQUIESCE_AR_1 = -iQUIESCE_AR_ = >${HOS_DEVNULL_W} 2>${HOS_DEVNULL_W} -iQUIESCE_AR = ${iQUIESCE_AR_${vVERBOSE}} - -iCreate_Library = $q${vAR} ${ARFLAGS} $1 ${iQUIESCE_AR} -iArchive_Library = $q${vAR} ${ARFLAGS} $1 @$(basename $1).arlist ${iQUIESCE_AR} - -${vOUT_DIR}/%.$a: ${vOUT_DIR}/%.arlist | $$(dir $$@).dir - -@${HOS_Echo} '[${vTOOL}] Archiving [$(notdir $@)]' - $(call iCreate_Library,$@) - $(call iArchive_Library,$@) - -ifeq (${vFILE_SUPPORTED},y) - -${vOUT_DIR}/%.arlist: $${$$(subst lib,,$$(notdir $$*))_OBJ} ${iDEPEND_ON_MAKEFILES} | $$(dir $$@).dir - @${HOS_Echo} '[${vTOOL}] Generating [$(notdir $@)]' - $q$(file > $@,${iOBJ}) - -else - -# Some hosts have a low max arg length limit (8191 chars): if $(file ...) is -# available, use it to output object files list to a file; if not, generate -# the file by looping on the list. On some hosts, file access is slow, so this -# is slow, but is only done if the list of object files change, and is not -# worse than looping on 'ar' for each object file. On Linux, file access is -# fast, and this is still pretty fast, so there is no reason to try to speed -# it up and create another implementation. - -# NOTE: the blank line at the end is necessary -define iAdd_One_Obj_To_Arlist - $qecho $2 >> $1 - -endef - -define iCreate_Arlist - @${HOS_EchoBlankLine} > $1 - $(foreach obj,$2,$(call iAdd_One_Obj_To_Arlist,$1,${obj})) - -endef - -${vOUT_DIR}/%.arlist: $${$$(subst lib,,$$(notdir $$*))_OBJ} ${iDEPEND_ON_MAKEFILES} | $$(dir $$@).dir - @${HOS_Echo} '[${vTOOL}] Generating [$(notdir $@)]' - $(call iCreate_Arlist,$@,${iOBJ}) - -endif - -include ${vMAKE}/target/toolchain/common/defs.objects diff --git a/make/target/toolchain/gcc/4.6/defs.flags b/make/target/toolchain/gcc/4.6/defs.flags deleted file mode 100644 index c9108684018..00000000000 --- a/make/target/toolchain/gcc/4.6/defs.flags +++ /dev/null @@ -1,35 +0,0 @@ -# defs.flags - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -# nothing specific with GCC4.6 -iGCC_4.6_CFLAGS = -iGCC_4.6_ASMFLAGS = -iGCC_4.6_LFLAGS = -iGCC_4.6_ARFLAGS = diff --git a/make/target/toolchain/gcc/4.6/rules.gcc b/make/target/toolchain/gcc/4.6/rules.gcc deleted file mode 100644 index faa03bc9b28..00000000000 --- a/make/target/toolchain/gcc/4.6/rules.gcc +++ /dev/null @@ -1,31 +0,0 @@ -# rules.gcc - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -# no GCC4.6-specific rules diff --git a/make/target/toolchain/gcc/4.8/defs.flags b/make/target/toolchain/gcc/4.8/defs.flags deleted file mode 100644 index 8207f987f88..00000000000 --- a/make/target/toolchain/gcc/4.8/defs.flags +++ /dev/null @@ -1,37 +0,0 @@ -# defs.flags - build system - -# Copyright (c) 2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -# nothing specific with GCC4.8 -iGCC_4.8_CFLAGS = -iGCC_4.8_ASMFLAGS = -iGCC_4.8_LFLAGS = -iGCC_4.8_ARFLAGS = - -sinclude ${vMAKE}/target/toolchain/gcc/4.8/defs.flags.variant_${VXMICRO_GCC_VARIANT} diff --git a/make/target/toolchain/gcc/4.8/defs.flags.variant_yocto b/make/target/toolchain/gcc/4.8/defs.flags.variant_yocto deleted file mode 100644 index d93fa8d3e43..00000000000 --- a/make/target/toolchain/gcc/4.8/defs.flags.variant_yocto +++ /dev/null @@ -1,33 +0,0 @@ -# defs.flags.variant_yocto - build system - -# Copyright (c) 2015 Intel Corporation. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -iGCC_4.8_LFLAGS = --build-id=none -rpath-link,$(iGCC_LIBGCC_DIR) - - diff --git a/make/target/toolchain/gcc/4.8/rules.gcc b/make/target/toolchain/gcc/4.8/rules.gcc deleted file mode 100644 index 108368558a4..00000000000 --- a/make/target/toolchain/gcc/4.8/rules.gcc +++ /dev/null @@ -1,33 +0,0 @@ -# rules.gcc - build system - -# -# Copyright (c) 2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# no GCC4.8-specific rules diff --git a/make/target/toolchain/gcc/4.9/defs.flags b/make/target/toolchain/gcc/4.9/defs.flags deleted file mode 100644 index 83bda652b45..00000000000 --- a/make/target/toolchain/gcc/4.9/defs.flags +++ /dev/null @@ -1,35 +0,0 @@ -# defs.flags - build system - -# Copyright (c) 2015 Intel Corporation. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -iGCC_4.9_CFLAGS = -iGCC_4.9_ASMFLAGS = -iGCC_4.9_LFLAGS = -iGCC_4.9_ARFLAGS = -sinclude ${vMAKE}/target/toolchain/gcc/4.9/defs.flags.variant_${VXMICRO_GCC_VARIANT} diff --git a/make/target/toolchain/gcc/4.9/defs.flags.variant_yocto b/make/target/toolchain/gcc/4.9/defs.flags.variant_yocto deleted file mode 100644 index a860d3c6505..00000000000 --- a/make/target/toolchain/gcc/4.9/defs.flags.variant_yocto +++ /dev/null @@ -1,33 +0,0 @@ -# defs.flags.variant_yocto - build system - -# Copyright (c) 2015 Intel Corporation. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -iGCC_4.9_LFLAGS = --build-id=none -rpath-link,$(iGCC_LIBGCC_DIR) - - diff --git a/make/target/toolchain/gcc/4.9/rules.gcc b/make/target/toolchain/gcc/4.9/rules.gcc deleted file mode 100644 index e678a9c665a..00000000000 --- a/make/target/toolchain/gcc/4.9/rules.gcc +++ /dev/null @@ -1,33 +0,0 @@ -# rules.gcc - build system - -# -# Copyright (c) 2015 Intel Corporation. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# no GCC4.9-specific rules diff --git a/make/target/toolchain/gcc/arch/arc/defs.exec b/make/target/toolchain/gcc/arch/arc/defs.exec deleted file mode 100644 index 4b8d9861912..00000000000 --- a/make/target/toolchain/gcc/arch/arc/defs.exec +++ /dev/null @@ -1,42 +0,0 @@ -# defs.exec - build system - -# -# Copyright (c) 2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -iGCC_DEFAULT_SUBDIR ?= ARC/ARC_gcc - -iGCC_TARGET ?= arc-elf32 - -# Arch type to use with objcopy. -OC_ARCH ?= arc -OC_TARGET ?= elf32-${OC_ARCH} - -# path to the compiler auxiliary libraries -iTC_AUX_LIB_DIR ?= $(wildcard $(iGCC_DIR)/lib/gcc/$(iGCC_TARGET)/$(vGCC_VER).*/em) diff --git a/make/target/toolchain/gcc/arch/arc/defs.exec.variant_yocto b/make/target/toolchain/gcc/arch/arc/defs.exec.variant_yocto deleted file mode 100644 index 01bc96ba20b..00000000000 --- a/make/target/toolchain/gcc/arch/arc/defs.exec.variant_yocto +++ /dev/null @@ -1,41 +0,0 @@ -# defs.exec.variant_yocto - build system -# -# Copyright (c) 2015 Intel Corporation. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -iGCC_TARGET ?= arc-poky-elf -vGCC_VER_arc ?= 4.8 - -iGCC_BIN_DIR ?= $(YOCTO_SDK_INSTALL_DIR)/sysroots/i686-pokysdk-linux/usr/bin/ -iGCC_PREFIX ?= $(iGCC_BIN_DIR)/$(iGCC_TARGET)/$(iGCC_TARGET) -iGCC_EXE__USR ?= $(iGCC_PREFIX)-gcc - -iGCC_LIBGCC_DIR ?= $(YOCTO_SDK_INSTALL_DIR)/sysroots/arc-poky-elf/usr/lib/$(iGCC_TARGET)/4.8.3 - - diff --git a/make/target/toolchain/gcc/arch/arc/defs.flags b/make/target/toolchain/gcc/arch/arc/defs.flags deleted file mode 100644 index f26be32ae22..00000000000 --- a/make/target/toolchain/gcc/arch/arc/defs.flags +++ /dev/null @@ -1,47 +0,0 @@ -# defs.flags - build system - -# -# Copyright (c) 2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -iGCC_arc_DEFS = ${-D}VXMICRO_ARCH_arc ${-D}VXMICRO_ARCH=arc - -# section garbage collection -iSECTION_GC_CFLAGS ?= -ffunction-sections -fdata-sections -iSECTION_GC_LFLAGS ?= --gc-sections - -# link time optimization is not enabled by default. Use LTO=on to enable -iLTO_on ?= -flto -iLTO ?= ${iLTO_${LTO}} - -# -mno-sdata is used to prevent generated code from using the GP/r26 register, -# so the sdata section and the __SDATA_BEGIN__ symbol don't need to be defined. -iGCC_arc_CFLAGS = -mARCv2EM -mav2em -mno-sdata ${iGCC_arc_DEFS} ${iSECTION_GC_CFLAGS} ${iLTO} $(iALIGN_STACK) -iGCC_arc_ASMFLAGS = -mARCv2EM -mav2em ${iGCC_arc_DEFS} -iGCC_arc_LFLAGS = -mARCv2EM -marcelf ${iSECTION_GC_LFLAGS} diff --git a/make/target/toolchain/gcc/arch/arm/defs.exec b/make/target/toolchain/gcc/arch/arm/defs.exec deleted file mode 100644 index 899dbb96d3d..00000000000 --- a/make/target/toolchain/gcc/arch/arm/defs.exec +++ /dev/null @@ -1,48 +0,0 @@ -# defs.exec - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -iGCC_DEFAULT_SUBDIR ?= CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI - -iGCC_TARGET ?= arm-none-eabi - -iGCC_LIB_ISA_THUMB2_y = thumb2 -iGCC_LIB_ISA_THUMB_y = thumb -iGCC_LIB_ISA_ARMv6M_y = armv6-m -iGCC_LIB_ISA_ARM_y = no_found # CS does not provide ARM libraries ??? - -iGCC_LIB_ISA = $(strip \ - ${iGCC_LIB_ISA_THUMB2_${CONFIG_ISA_THUMB2}} \ - ${iGCC_LIB_ISA_THUMB_${CONFIG_ISA_THUMB}} \ - ${iGCC_LIB_ISA_ARMv6M_${CONFIG_ISA_ARMv6M}} \ - ${iGCC_LIB_ISA_ARM_${CONFIG_ISA_ARM}} \ -) - -# path to the compiler auxiliary libraries -iTC_AUX_LIB_DIR ?= $(wildcard $(iGCC_DIR)/lib/gcc/$(iGCC_TARGET)/$(vGCC_VER).*)/${iGCC_LIB_ISA} diff --git a/make/target/toolchain/gcc/arch/arm/defs.exec.variant_otc b/make/target/toolchain/gcc/arch/arm/defs.exec.variant_otc deleted file mode 100644 index c7f271eccea..00000000000 --- a/make/target/toolchain/gcc/arch/arm/defs.exec.variant_otc +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) 2015 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -iGCC_TARGET = arm-none-eabi -vGCC_VER_arm = 4.8 - -# path to the compiler auxiliary libraries -iTC_AUX_LIB_DIR ?= $(wildcard $(iGCC_DIR)/lib/gcc/$(iGCC_TARGET)/$(vGCC_VER).*) diff --git a/make/target/toolchain/gcc/arch/arm/defs.exec.variant_xtools b/make/target/toolchain/gcc/arch/arm/defs.exec.variant_xtools deleted file mode 100644 index c7f271eccea..00000000000 --- a/make/target/toolchain/gcc/arch/arm/defs.exec.variant_xtools +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) 2015 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -iGCC_TARGET = arm-none-eabi -vGCC_VER_arm = 4.8 - -# path to the compiler auxiliary libraries -iTC_AUX_LIB_DIR ?= $(wildcard $(iGCC_DIR)/lib/gcc/$(iGCC_TARGET)/$(vGCC_VER).*) diff --git a/make/target/toolchain/gcc/arch/arm/defs.exec.variant_yocto b/make/target/toolchain/gcc/arch/arm/defs.exec.variant_yocto deleted file mode 100644 index 2f78dc14906..00000000000 --- a/make/target/toolchain/gcc/arch/arm/defs.exec.variant_yocto +++ /dev/null @@ -1,39 +0,0 @@ -# defs.exec.variant_yocto - build system - -# Copyright (c) 2015 Intel Corporation. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -iGCC_TARGET ?= arm-poky-eabi -vGCC_VER_arm ?= 4.9 - -iGCC_BIN_DIR ?= $(YOCTO_SDK_INSTALL_DIR)/sysroots/i686-pokysdk-linux/usr/bin/ -iGCC_PREFIX ?= $(iGCC_BIN_DIR)/$(iGCC_TARGET)/$(iGCC_TARGET) -iGCC_EXE__USR ?= $(iGCC_PREFIX)-gcc - -iGCC_LIBGCC_DIR ?= $(YOCTO_SDK_INSTALL_DIR)/sysroots/armv5e-poky-eabi/usr/lib/$(iGCC_TARGET)/4.9.2 - diff --git a/make/target/toolchain/gcc/arch/arm/defs.flags b/make/target/toolchain/gcc/arch/arm/defs.flags deleted file mode 100644 index ce2a77ee67e..00000000000 --- a/make/target/toolchain/gcc/arch/arm/defs.flags +++ /dev/null @@ -1,62 +0,0 @@ -# defs.flags - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -iGCC_arm_DEFS = ${-D}VXMICRO_ARCH_arm ${-D}VXMICRO_ARCH=arm - -# section garbage collection -iSECTION_GC_CFLAGS ?= -ffunction-sections -fdata-sections -iSECTION_GC_LFLAGS ?= --gc-sections - -# link time optimization is not enabled by default. Use LTO=on to enable -iLTO_on ?= -flto -iLTO ?= ${iLTO_${LTO}} - -iGCC_arm_CFLAGS = -mthumb ${iGCC_arm_DEFS} ${iSECTION_GC_CFLAGS} ${iLTO} -iGCC_arm_CXXFLAGS = -mthumb ${iGCC_arm_DEFS} ${iSECTION_GC_CFLAGS} ${iLTO} -iGCC_arm_LFLAGS = ${iSECTION_GC_LFLAGS} - -# '-mthumb' is for the pre-processor, '-Wa,-mthumb' is for the assembler -iGCC_arm_ASMFLAGS = -mthumb -Wa,-mthumb ${iGCC_arm_DEFS} - -# Instruction-Set Architecture (ISA) -iMCPU_CortexM3 = m3 -iMCPU_CortexM4 = m4f -iMCPU ?= -mcpu=cortex-${iMCPU_${vCPU}} -march=armv7-m - -iGCC_${vCPU}_CFLAGS ?= ${iMCPU} -iGCC_${vCPU}_CXXFLAGS ?= ${iMCPU} -iGCC_${vCPU}_ASMFLAGS ?= ${iMCPU} - -# temporary check until we support more ARM CPUs -ifneq (${vCPU},CortexM3) - ifneq (${vCPU},CortexM4) - $(error Toolchain support only enabled for CortexM3/M4 CPUs in the build system) - endif -endif diff --git a/make/target/toolchain/gcc/arch/x86/defs.exec b/make/target/toolchain/gcc/arch/x86/defs.exec deleted file mode 100644 index 1abf9a73828..00000000000 --- a/make/target/toolchain/gcc/arch/x86/defs.exec +++ /dev/null @@ -1,40 +0,0 @@ -# defs.exec - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -iGCC_DEFAULT_SUBDIR ?= CodeSourcery/Sourcery_CodeBench_Lite_for_IA32_ELF - -iGCC_TARGET ?= i686-elf - -# Arch type to use with objcopy. -OC_ARCH ?= i386 -OC_TARGET ?= elf32-${OC_ARCH} - -# path to the compiler auxiliary libraries -iTC_AUX_LIB_DIR ?= $(wildcard $(iGCC_DIR)/lib/gcc/$(iGCC_TARGET)/$(vGCC_VER).*) diff --git a/make/target/toolchain/gcc/arch/x86/defs.exec.variant_ish b/make/target/toolchain/gcc/arch/x86/defs.exec.variant_ish deleted file mode 100644 index 3bfbe83dac5..00000000000 --- a/make/target/toolchain/gcc/arch/x86/defs.exec.variant_ish +++ /dev/null @@ -1,32 +0,0 @@ -# defs.exec.variant_ish - build system - -# Copyright (c) 2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -iGCC_TARGET ?= i486-elf -vGCC_VER_x86 ?= 4.8 diff --git a/make/target/toolchain/gcc/arch/x86/defs.exec.variant_otc b/make/target/toolchain/gcc/arch/x86/defs.exec.variant_otc deleted file mode 100644 index 3c3deb12dd2..00000000000 --- a/make/target/toolchain/gcc/arch/x86/defs.exec.variant_otc +++ /dev/null @@ -1,37 +0,0 @@ -# defs.exec.variant_otc - build system - -# Copyright (c) 2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -ifdef XTOOLS_TOOLCHAIN_TARGET - iGCC_TARGET ?= $(strip ${XTOOLS_TOOLCHAIN_TARGET}) -else - iGCC_TARGET ?= i586-pc-elf -endif - -vGCC_VER_x86 ?= 4.8 diff --git a/make/target/toolchain/gcc/arch/x86/defs.exec.variant_xtools b/make/target/toolchain/gcc/arch/x86/defs.exec.variant_xtools deleted file mode 100644 index 44adb4e6756..00000000000 --- a/make/target/toolchain/gcc/arch/x86/defs.exec.variant_xtools +++ /dev/null @@ -1,37 +0,0 @@ -# defs.exec.variant_xtools - build system - -# Copyright (c) 2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -ifdef XTOOLS_TOOLCHAIN_TARGET - iGCC_TARGET ?= $(strip ${XTOOLS_TOOLCHAIN_TARGET}) -else - iGCC_TARGET ?= i586-pc-elf -endif - -vGCC_VER_x86 ?= 4.8 diff --git a/make/target/toolchain/gcc/arch/x86/defs.exec.variant_yocto b/make/target/toolchain/gcc/arch/x86/defs.exec.variant_yocto deleted file mode 100644 index 430e2ebe0f4..00000000000 --- a/make/target/toolchain/gcc/arch/x86/defs.exec.variant_yocto +++ /dev/null @@ -1,39 +0,0 @@ -# defs.exec.variant_yocto - build system - -# Copyright (c) 2015 Intel Corporation. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -iGCC_TARGET ?= i586-poky-elf -vGCC_VER_x86 ?= 4.9 - -iGCC_BIN_DIR ?= $(YOCTO_SDK_INSTALL_DIR)/sysroots/i686-pokysdk-linux/usr/bin/ -iGCC_PREFIX ?= $(iGCC_BIN_DIR)/$(iGCC_TARGET)/$(iGCC_TARGET) -iGCC_EXE__USR ?= $(iGCC_PREFIX)-gcc - -iGCC_LIBGCC_DIR ?= $(YOCTO_SDK_INSTALL_DIR)/sysroots/$(iGCC_TARGET)/usr/lib/$(iGCC_TARGET)/4.9.2 - diff --git a/make/target/toolchain/gcc/arch/x86/defs.flags b/make/target/toolchain/gcc/arch/x86/defs.flags deleted file mode 100644 index 39ee0d7c674..00000000000 --- a/make/target/toolchain/gcc/arch/x86/defs.flags +++ /dev/null @@ -1,48 +0,0 @@ -# defs.flags - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -iGCC_x86_DEFS = ${-D}VXMICRO_ARCH_x86 ${-D}VXMICRO_ARCH=x86 - -# compiler optimization -iALIGN_STACK ?= $(if $(iDEFPERF_COMPILER_OPT),,-mpreferred-stack-boundary=2) - -# section garbage collection -iSECTION_GC_CFLAGS ?= -ffunction-sections -fdata-sections -iSECTION_GC_LFLAGS ?= --gc-sections - -# link time optimization is not enabled by default. Use LTO=on to enable -iLTO_on ?= -flto -iLTO ?= ${iLTO_${LTO}} - -iGCC_x86_CFLAGS = ${iGCC_x86_DEFS} ${iSECTION_GC_CFLAGS} ${iLTO} $(iALIGN_STACK) -iGCC_x86_ASMFLAGS = ${iGCC_x86_DEFS} -iGCC_x86_LFLAGS = ${iSECTION_GC_LFLAGS} - -include ${vMAKE}/target/toolchain/gcc/arch/x86/defs.flags.${vCPU} diff --git a/make/target/toolchain/gcc/arch/x86/defs.flags.atom_n28xx b/make/target/toolchain/gcc/arch/x86/defs.flags.atom_n28xx deleted file mode 100644 index 71ae18ac106..00000000000 --- a/make/target/toolchain/gcc/arch/x86/defs.flags.atom_n28xx +++ /dev/null @@ -1,43 +0,0 @@ -# defs.flags.atom_n28xx - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -# Instruction-Set Architecture (ISA) -iISA ?= -march=atom -mtune=atom - -# By default, GCC generates floating point that only uses x87 FPU instructions. -# However, if the SSE_FP_MATH kconfig option is enabled then tell the compiler -# it should use scalar SSE instructions for floating point math instead. -iSSE_FP_MATH_y ?= -mfpmath=sse -iSSE_FP_MATH_ ?= -mno-sse -iSSE_FP_MATH_n ?= ${iSSE_FP_MATH_} -iSSE_FP_MATH ?= ${iSSE_FP_MATH_${CONFIG_SSE_FP_MATH}} - -iGCC_${vCPU}_CFLAGS ?= ${iISA} ${iSSE_FP_MATH} -iGCC_${vCPU}_ASMFLAGS ?= ${iISA} diff --git a/make/target/toolchain/gcc/arch/x86/defs.flags.minuteia b/make/target/toolchain/gcc/arch/x86/defs.flags.minuteia deleted file mode 100644 index 0a972de2d6c..00000000000 --- a/make/target/toolchain/gcc/arch/x86/defs.flags.minuteia +++ /dev/null @@ -1,36 +0,0 @@ -# defs.flags.minuteia - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -# Instruction-Set Architecture (ISA) -iISA ?= -march=pentium - -# Minutia does not support floating point of any kind. -iGCC_${vCPU}_CFLAGS ?= ${iISA} -iGCC_${vCPU}_ASMFLAGS ?= ${iISA} diff --git a/make/target/toolchain/gcc/arch/x86/defs.flags.pentium4 b/make/target/toolchain/gcc/arch/x86/defs.flags.pentium4 deleted file mode 100644 index 6d211a058b9..00000000000 --- a/make/target/toolchain/gcc/arch/x86/defs.flags.pentium4 +++ /dev/null @@ -1,43 +0,0 @@ -# defs.flags.pentium4 - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -# Instruction-Set Architecture (ISA) -iISA ?= -march=pentium4 - -# By default, GCC generates floating point that only uses x87 FPU instructions. -# However, if the SSE_FP_MATH kconfig option is enabled then tell the compiler -# it should use scalar SSE instructions for floating point math instead. -iSSE_FP_MATH_y ?= -mfpmath=sse -iSSE_FP_MATH_ ?= -mno-sse -iSSE_FP_MATH_n ?= ${iSSE_FP_MATH_} -iSSE_FP_MATH ?= ${iSSE_FP_MATH_${CONFIG_SSE_FP_MATH}} - -iGCC_${vCPU}_CFLAGS ?= ${iISA} ${iSSE_FP_MATH} -iGCC_${vCPU}_ASMFLAGS ?= ${iISA} diff --git a/make/target/toolchain/gcc/arch/x86/rules.idt b/make/target/toolchain/gcc/arch/x86/rules.idt deleted file mode 100644 index 90f9dca82fe..00000000000 --- a/make/target/toolchain/gcc/arch/x86/rules.idt +++ /dev/null @@ -1,45 +0,0 @@ -# rules.idt - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -################################################################################ -# define steps to modify set the section attributes to noload. -# - -iGCC_SET_SECTION_FLAGS = $(strip \ - --set-section-flags intList=noload \ -) - -define i_noload_gcc - -@$(HOS_Echo) '[${vTOOL}] Setting sections to noload [$(notdir $2)]' - $q${vOC} ${iGCC_SET_SECTION_FLAGS} $1 $2 - -endef diff --git a/make/target/toolchain/gcc/defs.exec b/make/target/toolchain/gcc/defs.exec deleted file mode 100644 index c5461f8e7ab..00000000000 --- a/make/target/toolchain/gcc/defs.exec +++ /dev/null @@ -1,61 +0,0 @@ -# defs.exec - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -sinclude ${iMAKE_GCC}/arch/${vARCH}/defs.exec.variant_${vGCC_VARIANT} -include ${iMAKE_GCC}/arch/${vARCH}/defs.exec -sinclude ${iMAKE_GCC}/defs.gcc.${vHOST}.variant_${vGCC_VARIANT} -include ${iMAKE_GCC}/defs.gcc.${vHOST} # find toolchain installation - -$(if ${iGCC_DIR},,$(error No GCC toolchain installation found!)) - -iGCC_BIN_DIR ?= $(iGCC_DIR)/bin -iGCC_PREFIX ?= ${iGCC_BIN_DIR}/${iGCC_TARGET} - -vCC ?= ${iGCC_PREFIX}-gcc -vCPP ?= ${iGCC_PREFIX}-cpp -vAS ?= ${vCC} -vAR ?= ${iGCC_PREFIX}-ar -vLD ?= ${iGCC_PREFIX}-ld -vOC ?= ${iGCC_PREFIX}-objcopy -vOD ?= ${iGCC_PREFIX}-objdump -vGDB ?= ${iGCC_PREFIX}-gdb -vSTRIP ?= ${iGCC_PREFIX}-strip - -# quiet by default -iQUIESCE_DOT_D = - -# Select the GNU compiler for the pre-processing tool -vPP ?= ${vCPP} - -ifeq (${MAKE_RESTARTS},) - ifeq (${MAKELEVEL},0) - $(call q_info,Using GCC installed in '${iGCC_DIR}') - endif -endif diff --git a/make/target/toolchain/gcc/defs.ext b/make/target/toolchain/gcc/defs.ext deleted file mode 100644 index 75fa3810d52..00000000000 --- a/make/target/toolchain/gcc/defs.ext +++ /dev/null @@ -1,50 +0,0 @@ -# defs.ext - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -include ${vMAKE}/target/env/defs.ext - -# output file extensions -d ?= d -o ?= o -a ?= a -bin ?= bin -elf ?= elf -lnk ?= lnk -strip ?= strip - -# library file prefix -lib ?= lib - -# obsolete ?? -usr ?= usr -mem ?= lnk - -# definition option --D ?= -D diff --git a/make/target/toolchain/gcc/defs.flags b/make/target/toolchain/gcc/defs.flags deleted file mode 100644 index c88d9b044de..00000000000 --- a/make/target/toolchain/gcc/defs.flags +++ /dev/null @@ -1,84 +0,0 @@ -# defs.flags - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -include ${iMAKE_GCC}/arch/${vARCH}/defs.flags -include ${iMAKE_GCC}/${vGCC_VER}/defs.flags - -# vxmicro flags -vDEFAULT_COMPILER_OPT = -Os -iHAS_COMPILER_OPT ?= $(lastword $(CONFIG_COMPILER_OPT)) -iDEFPERF_COMPILER_OPT ?= \ - $(if $(iHAS_COMPILER_OPT),$(if $(filter -Os,$(iHAS_COMPILER_OPT)),,${-D}PERF_OPT),) - -iKERN_STACK_CANARIES ?= $(if $(CONFIG_STACK_CANARIES),-fstack-protector-all,-fno-stack-protector) - -iINCLUDE_AUTOCONF = $(if ${INCLUDE_AUTOCONF},-include ${INCLUDE_AUTOCONF}, ) - -iGCC_VXMICRO_CFLAGS ?= \ - ${vDEFAULT_COMPILER_OPT} $(CONFIG_COMPILER_OPT) $(OVERRIDE_COMPILER_OPT) $(iDEFPERF_COMPILER_OPT) \ - -fno-reorder-functions \ - -fno-asynchronous-unwind-tables -fno-omit-frame-pointer \ - -fno-defer-pop -Wall \ - -Wno-unused-but-set-variable \ - -Wno-main -ffreestanding \ - ${iINCLUDE_AUTOCONF} \ - ${iKERN_STACK_CANARIES} - -iGCC_VXMICRO_ASMFLAGS = ${iDEFPERF_COMPILER_OPT} ${iINCLUDE_AUTOCONF} - -# generic flags -iGCC_GENERIC_CFLAGS ?= ${-c} ${-g} ${iGCC_VXMICRO_CFLAGS} -iGCC_GENERIC_ASMFLAGS ?= ${-c} ${-g} ${iGCC_VXMICRO_ASMFLAGS} -iGCC_GENERIC_LFLAGS ?= -X -N ${iGCC_VXMICRO_LFLAGS} -iGCC_GENERIC_ARFLAGS ?= cr ${iGCC_VXMICRO_ARFLAGS} - -# generic and version-specific -iGCC_BASE_CFLAGS ?= ${iGCC_GENERIC_CFLAGS} ${iGCC_${vGCC_VER}_CFLAGS} -iGCC_BASE_ASMFLAGS ?= ${iGCC_GENERIC_ASMFLAGS} ${iGCC_${vGCC_VER}_ASMFLAGS} -iGCC_BASE_LFLAGS ?= ${iGCC_GENERIC_LFLAGS} ${iGCC_${vGCC_VER}_LFLAGS} -iGCC_BASE_ARFLAGS ?= ${iGCC_GENERIC_ARFLAGS} ${iGCC_${vGCC_VER}_ARFLAGS} - -# architecture/CPU-specific -iGCC_MACH_CFLAGS ?= ${iGCC_${vARCH}_CFLAGS} ${iGCC_${vCPU}_CFLAGS} -iGCC_MACH_ASMFLAGS ?= ${iGCC_${vARCH}_ASMFLAGS} ${iGCC_${vCPU}_ASMFLAGS} -iGCC_MACH_LFLAGS ?= ${iGCC_${vARCH}_LFLAGS} ${iGCC_${vCPU}_LFLAGS} -iGCC_MACH_ARFLAGS ?= ${iGCC_${vARCH}_ARFLAGS} ${iGCC_${vCPU}_ARFLAGS} - -# only set if user did not set his own -CFLAGS ?= ${iGCC_BASE_CFLAGS} ${iGCC_MACH_CFLAGS} ${vCUSTOM_TARGET_DEFS} -ASMFLAGS ?= ${iGCC_BASE_ASMFLAGS} ${iGCC_MACH_ASMFLAGS} ${vCUSTOM_TARGET_DEFS} -LFLAGS ?= ${iGCC_BASE_LFLAGS} ${iGCC_MACH_LFLAGS} -ARFLAGS ?= ${iGCC_BASE_ARFLAGS} ${iGCC_MACH_ARFLAGS} - -# always add extra flags from user and necessary flags -CFLAGS += ${iCTX_CFLAGS} ${EXTRA_CFLAGS} -std=c99 ${STDLIB_CFLAGS} -ASMFLAGS += ${iCTX_ASMFLAGS} ${EXTRA_ASMFLAGS} -xassembler-with-cpp -LFLAGS += ${iCTX_LFLAGS} ${EXTRA_LFLAGS} -ARFLAGS += ${iCTX_ARFLAGS} ${EXTRA_ARFLAGS} diff --git a/make/target/toolchain/gcc/defs.flags.library b/make/target/toolchain/gcc/defs.flags.library deleted file mode 100644 index 1287b280303..00000000000 --- a/make/target/toolchain/gcc/defs.flags.library +++ /dev/null @@ -1,40 +0,0 @@ -# defs.flags - build system - -# Copyright (c) 2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -iSTACK_CANARIES_y = -fstack-protector-all -iSTACK_CANARIES_n = -fno-stack-protector -iSTACK_CANARIES_ = ${iSTACK_CANARIES_n} - -##### -# preempt the variables from the tools - -iMAKE_STACK_CANARIES = ${iSTACK_CANARIES_${STACK_CANARIES}} - -##### diff --git a/make/target/toolchain/gcc/defs.gcc b/make/target/toolchain/gcc/defs.gcc deleted file mode 100644 index c1e967800c7..00000000000 --- a/make/target/toolchain/gcc/defs.gcc +++ /dev/null @@ -1,80 +0,0 @@ -# defs.gcc - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -vGCC_VARIANT = $(strip ${VXMICRO_GCC_VARIANT}) - -iMAKE_GCC = ${vMAKE}/target/toolchain/gcc - -include ${iMAKE_GCC}/defs.exec - -vGCC_VER_x86 ?= 4.6 -vGCC_VER_arm ?= 4.6 -vGCC_VER_arc ?= 4.8 -vGCC_VER = $(or $(strip ${VXMICRO_GCC_VERSION}),${vGCC_VER_${vARCH}}) - -include ${iMAKE_GCC}/defs.ext -include ${iMAKE_GCC}/defs.flags - -# Compile against headers for the compiler's libraries -vTC_LIB_DIR = ${iTC_AUX_LIB_DIR} - -vTC_LIBS = gcc - -iPP_OPT = -E -x assembler-with-cpp -nostdinc -iPP_NO_SPACE = -iPP_AS = -iPP_NOLINENO = -P - -iCC_DEP = -MM -MP -iCC_DEP_GEN = -M -MG -MP -# Both -MT and -MF lines have a space at the end -iCC_DEP_TARGET = -MT -iCC_DEP_FILE = -MF - -iCC_SPLIT_SECTIONS = -ffunction-sections -fdata-sections - -iCC_C99 = -std=c99 - --c = -c --I = -I --D = -D -# this line has a space at the end ("-o ") --o = -o --g = -g --T = -T -# this line has a space at the end ("-include ") --iinclude = -include - -# linker flag for section splitting and removal of unused sections. -iLD_REMOVE_UNUSED_SECTIONS = --gc-sections - -iLINKER_CMD_TOOL = __GCC_LINKER_CMD__ diff --git a/make/target/toolchain/gcc/defs.gcc.x86-linux2 b/make/target/toolchain/gcc/defs.gcc.x86-linux2 deleted file mode 100644 index 3a6a2e5248f..00000000000 --- a/make/target/toolchain/gcc/defs.gcc.x86-linux2 +++ /dev/null @@ -1,46 +0,0 @@ -# defs.gcc.x86-linux2 - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -iGCC_EXE_TEST ?= $(iGCC_TARGET)-gcc - -iGCC_DIR__USR ?= $(strip ${VXMICRO_GCC_DIR}) -iGCC_DIR__HOME ?= ~/${iGCC_DEFAULT_SUBDIR} - -iGCC_EXE__USR ?= ${iGCC_DIR__USR}/bin/${iGCC_EXE_TEST} -iGCC_EXE__HOME ?= ${iGCC_DIR__HOME}/bin/${iGCC_EXE_TEST} -iGCC_EXE__CUSTOM ?= ${iGCC_CUSTOM_DIR}/bin/${iGCC_EXE_TEST} - -iGCC_DIR_USR ?= $(if $(findstring ${iGCC_EXE_TEST},$(wildcard ${iGCC_EXE__USR})),${iGCC_DIR__USR},) -iGCC_DIR_HOME ?= $(if $(findstring ${iGCC_EXE_TEST},$(wildcard ${iGCC_EXE__HOME})),${iGCC_DIR__HOME},) -iGCC_DIR_CUSTOM ?= $(if $(findstring ${iGCC_EXE_TEST},$(wildcard ${iGCC_EXE__CUSTOM})),${iGCC_CUSTOM_DIR},) - -iGCC_DIR ?= $(or ${iGCC_DIR_CUSTOM},${iGCC_DIR_USR},${iGCC_DIR_HOME}) - -$(if ${iGCC_DIR},,$(error No toolchain found!)) diff --git a/make/target/toolchain/gcc/defs.gcc.x86-linux2.variant_ish b/make/target/toolchain/gcc/defs.gcc.x86-linux2.variant_ish deleted file mode 100644 index 63008a5918b..00000000000 --- a/make/target/toolchain/gcc/defs.gcc.x86-linux2.variant_ish +++ /dev/null @@ -1,32 +0,0 @@ -# defs.gcc.x86-linux2.variant_ish - build system - -# Copyright (c) 2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -iGCC_CUSTOM_DIR_x86 = /opt/Intel/Linux -iGCC_CUSTOM_DIR = ${iGCC_CUSTOM_DIR_${vARCH}} diff --git a/make/target/toolchain/gcc/defs.gcc.x86-linux2.variant_otc b/make/target/toolchain/gcc/defs.gcc.x86-linux2.variant_otc deleted file mode 100644 index 6470fb521fa..00000000000 --- a/make/target/toolchain/gcc/defs.gcc.x86-linux2.variant_otc +++ /dev/null @@ -1,38 +0,0 @@ -# defs.gcc.x86-linux2.variant_ish - build system - -# Copyright (c) 2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -ifdef XTOOLS_TOOLCHAIN_PATH - iGCC_CUSTOM_DIR_x86 ?= $(strip ${XTOOLS_TOOLCHAIN_PATH}) -else - iGCC_CUSTOM_DIR_x86 ?= /home/otc_viper/x-tools/ -endif - -iGCC_CUSTOM_DIR = $(iGCC_CUSTOM_DIR_x86)/$(iGCC_TARGET) -#$(error $(iGCC_CUSTOM_DIR) $(vARCH)) diff --git a/make/target/toolchain/gcc/defs.gcc.x86-linux2.variant_xtools b/make/target/toolchain/gcc/defs.gcc.x86-linux2.variant_xtools deleted file mode 100644 index c35c74f5690..00000000000 --- a/make/target/toolchain/gcc/defs.gcc.x86-linux2.variant_xtools +++ /dev/null @@ -1,39 +0,0 @@ -# defs.gcc.x86-linux2.variant_xtools - build system - -# Copyright (c) 2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - - -ifdef XTOOLS_TOOLCHAIN_PATH - iGCC_CUSTOM_DIR_x86 ?= $(strip ${XTOOLS_TOOLCHAIN_PATH}) -else - iGCC_CUSTOM_DIR_x86 ?= /opt/crosstool-ng -endif - -iGCC_CUSTOM_DIR = $(iGCC_CUSTOM_DIR_x86)/$(iGCC_TARGET) -#$(error $(iGCC_CUSTOM_DIR) $(vARCH)) diff --git a/make/target/toolchain/gcc/defs.gcc.x86-linux2.variant_yocto b/make/target/toolchain/gcc/defs.gcc.x86-linux2.variant_yocto deleted file mode 100644 index 74f50d4396e..00000000000 --- a/make/target/toolchain/gcc/defs.gcc.x86-linux2.variant_yocto +++ /dev/null @@ -1,33 +0,0 @@ -# defs.gcc.x86-linux2.variant_yocto - build system - -# Copyright (c) 2015 Intel Corporation. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -iGCC_CUSTOM_DIR_x86 = $(YOCTO_SDK_INSTALL_DIR)/sysroots/i686-pokysdk-linux/usr/bin -iGCC_DIR_CUSTOM = $(iGCC_CUSTOM_DIR_x86)/$(iGCC_TARGET) -iTC_AUX_LIB_DIR = $(iGCC_LIBGCC_DIR) diff --git a/make/target/toolchain/gcc/defs.kernel-bin b/make/target/toolchain/gcc/defs.kernel-bin deleted file mode 100644 index 68c8116f873..00000000000 --- a/make/target/toolchain/gcc/defs.kernel-bin +++ /dev/null @@ -1,42 +0,0 @@ -# defs.kernel-bin - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -# rules for running preprocessor on linker command file -iLINKER_CMD_OPT = $(strip \ - -x assembler-with-cpp \ - -nostdinc -undef -E -P \ - ${-D}VXMICRO_ARCH_${vARCH} \ - ${-D}${iLINKER_CMD_TOOL} \ -) -iLINKER_CMD_INC = -I${vKLIB_DIR}/include -I${vBASE}/include -iFINAL_LINKER_CMD = ${vOUT_DIR}/$(notdir ${LINKER_CMD}) - -iUSR = $(if $(strip $(filter %.${usr},$^)),$(filter %.${usr},$^),${HOS_DEVNULL_R}) -iMEM = $(if $(strip $(filter %.${mem},$^)),$(filter %.${mem},$^),${HOS_DEVNULL_R}) diff --git a/make/target/toolchain/gcc/defs.offsets b/make/target/toolchain/gcc/defs.offsets deleted file mode 100644 index 42956024939..00000000000 --- a/make/target/toolchain/gcc/defs.offsets +++ /dev/null @@ -1,34 +0,0 @@ -# defs.offsets - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -iOFFSETS_CFLAGS = $(strip \ - ${CFLAGS} \ - $(foreach path,${iOFFSETS_INC},-I ${path}) \ -) diff --git a/make/target/toolchain/gcc/rules.gcc b/make/target/toolchain/gcc/rules.gcc deleted file mode 100644 index 204416c6b8a..00000000000 --- a/make/target/toolchain/gcc/rules.gcc +++ /dev/null @@ -1,34 +0,0 @@ -# rules.gcc - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -$(if $(vGCC_VER),,$(error defs.gcc must be included before this makefile fragment)) - -include ${vMAKE}/target/toolchain/common/rules.objects -include ${vMAKE}/target/toolchain/gcc/${vGCC_VER}/rules.gcc diff --git a/make/target/toolchain/gcc/rules.kernel-bin b/make/target/toolchain/gcc/rules.kernel-bin deleted file mode 100644 index e7b4730da53..00000000000 --- a/make/target/toolchain/gcc/rules.kernel-bin +++ /dev/null @@ -1,80 +0,0 @@ -# rules.kernel-bin - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -# kernel binary rules -# Note the use of echo not HOS_Echo since GNU ld needs forward slash paths - -include ${vMAKE}/target/toolchain/gcc/defs.kernel-bin - -${vOUT_DIR}/%.${lnk}: ${iDEPEND_ON_MAKEFILES} | $$(dir $$@).dir - -$q${HOS_Echo} '[${vTOOL}] Preparing [$(notdir $@)]' - $qecho -nostartfiles -nodefaultlibs -nostdlib -static > ${vOUT_DIR}/lflags - $qecho $(foreach flag,${LFLAGS},$(flag) ) >> ${vOUT_DIR}/lflags - $qecho -Map ${vOUT_DIR}/$*.map >> ${vOUT_DIR}/lflags -ifneq ($(strip ${iLTO}),) - $qecho {$iLTO} >> ${vOUT_DIR}/lflags -endif - $qecho -L . $(foreach script,$(filter %.cmd,$^),-T$(subst \,/,$(script))) >> ${vOUT_DIR}/lflags - $qecho -u _OffsetAbsSyms >> ${vOUT_DIR}/lflags - $qecho -u _ConfigAbsSyms >> ${vOUT_DIR}/lflags -ifneq ($(strip ${vKERNEL_UNDEF_SYMS}),) - $qecho $(foreach sym,${vKERNEL_UNDEF_SYMS},-u ${sym} ) >> ${vOUT_DIR}/lflags -endif - $qecho $(foreach path,${LIB_INCLUDE_DIR},-L $(subst \,/,${path}) ) >> ${vOUT_DIR}/lflags - $qecho "-e ${ENTRY}" >> ${vOUT_DIR}/lflags - $qecho --start-group $(foreach alib,${ALL_LIBS},-l${alib}) >> ${vOUT_DIR}/lflags - $qecho ${vKLIB_DIR}/offsets.$o >> ${vOUT_DIR}/lflags - $qecho --end-group>> ${vOUT_DIR}/lflags - $q$(HOS_Cat3Files) ${vOUT_DIR}/lflags ${iUSR} ${iMEM} $@ > ${HOS_DEVNULL_W} - -$q${HOS_DeleteFiles} ${vOUT_DIR}/lflags - -# rule to generate the final linker script (pre-processed) -${iFINAL_LINKER_CMD}: ${LINKER_CMD} ${iOFFSETS_HDR} | $$(dir $$@).dir - $q${vPP} ${iLINKER_CMD_OPT} ${iLINKER_CMD_INC} $< -o $@ - -# rule to make elf files -%.${elf}: ${vOUT_DIR}/$$(notdir $$*).${lnk} ${iBUILDSPEC} ${iFINAL_LINKER_CMD} | $$(dir $$@).dir - -@${HOS_Echo} '[${vTOOL}] Linking [$(notdir $@)]' - $q${vLD} -T ${iFINAL_LINKER_CMD} @$(filter %.${lnk},$^) $(filter %.$o,$^) -o $@ - $(call idtInTxt) -ifeq ($(VXMICRO_HOST_OS),win32) - $q$(HOS_CopyFile) $(HOS_Bin)/exeelf.exe $*.exe > ${HOS_DEVNULL_W} -endif - -# bin-from-elf rule -%.${bin}: %.${elf} | $$(dir $$@).dir - -@${HOS_Echo} '[${vTOOL}] Generating [$(notdir $@)]' - $q${vOD} -S $< >$*.lst - $q${vOC} -S -O binary -R .note -R .comment -R COMMON -R .eh_frame ${EXTRA_OC_FLAGS} $< $@ - -# generate a stripped ELF file from an ELF image -%.${strip}: %.${elf} | $$(dir $$@).dir - -@${HOS_Echo} '[${vTOOL}] Generating [$(notdir $@)]' - $q${vSTRIP} -s -o $@ $< diff --git a/make/target/wb-helper/README b/make/target/wb-helper/README deleted file mode 100644 index f5f089715c6..00000000000 --- a/make/target/wb-helper/README +++ /dev/null @@ -1,21 +0,0 @@ -Directory meant to host files that create the list of setting information -retrieved by Workbench host tools. Add files as needed for different types -of builds: - - defs.kernel - defs.nkernel - defs.ukernel - defs.klib - defs.nklib - defs.uklib - defs.library - -For displaying variables for a specific type of build, the variable -iVARIABLES_TO_DISPLAY should be added to with the list of variables to -display, using the '+=' operator. This allows inheritance between different -types of build: eg. An nkernel build is a kernel build and an nklib build, -which is itself a klib build. This feeds the 'make display_variables' build -rule. - -The files do not have to exist if included via 'sinclude': this is the way -the files are included in the top make. files. diff --git a/make/vxmicro/make/env/defs.check-host b/make/vxmicro/make/env/defs.check-host deleted file mode 100644 index 8682d08d857..00000000000 --- a/make/vxmicro/make/env/defs.check-host +++ /dev/null @@ -1,43 +0,0 @@ -# defs.check-host - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# Verify host settings, and if not set, auto-detect them - -# if WINETEMP exists, we're on Linux -# else if SystemRoot exists, we're on Windows -# else if ${OS} exists and is 'Windows_NT', we're on Windows -# else, call uname -s to verify we're on Linux -# else, error -vHOST_OS_Windows_NT ?= win32 -vHOST_OS_unameLinux ?= linux2 -vHOST_OS_ ?= ${vHOST_OS_uname$(shell uname -s)} -vHOST_OS ?= $(if ${WINETEMP},linux2,$(if ${SystemRoot},win32,${vHOST_OS_${OS}})) diff --git a/make/vxmicro/make/env/defs.host.win32 b/make/vxmicro/make/env/defs.host.win32 deleted file mode 100644 index 0a19f9a8c4c..00000000000 --- a/make/vxmicro/make/env/defs.host.win32 +++ /dev/null @@ -1,47 +0,0 @@ -# defs.host.win32 - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# on Windows NT kernels, assuming x86 is always true, unless running: -# -# - Windows 8 RT on Surface -# - old WinNT on DecAlpha/MIPS -# -# which, I think, can be safely ignored - -vHOST_ARCH_FIND ?= x86 - -# obtain from BASE *and* from CURDIR since they might be of different cases -iDRIVE_BASE := $(strip $(firstword $(subst :, ,${VXMICRO_BASE}))): -vDRIVE_BASE := $(if $(findstring :,${VXMICRO_BASE}),${iDRIVE_BASE},) -vDRIVE_HERE := $(strip $(firstword $(subst :, ,${CURDIR}))): - -vHERE := $(subst ${vDRIVE_HERE},,${CURDIR}) diff --git a/make/vxmicro/make/env/defs.host.x86-win32 b/make/vxmicro/make/env/defs.host.x86-win32 deleted file mode 100644 index ef7a2b39e55..00000000000 --- a/make/vxmicro/make/env/defs.host.x86-win32 +++ /dev/null @@ -1,137 +0,0 @@ -# defs.host.x86-win32 - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -HOS_SlashCnv = $(HOS_Bin)/slashcnv -HOS_exe = .exe - -# i_NATIVE = y is native Windows, = n is Cygwin -# native: either in WB env (WIND_HOME set) or no $MSYSCON var set -# i_NATIVE = $(if $(strip ${WIND_HOME}),y,$(if $(strip ${MSYSCON}),n,y)) -# As cygwin is not yet supported, native Windows will be the default. -i_NATIVE = y -##### -# If there is an sh.exe in the PATH on Windows, make will try to use it -# instead of cmd as the shell, and this breaks the build system. Assigning -# 'cmd' to SHELL breaks Cygwin for sure, but it is not supported and not -# tested. If Cygwin becomes supported, the following lines should be used -# instead. -# -# iSHELL_y = cmd -# iSHELL_n = sh.exe -# SHELL = ${iSHELL_${i_NATIVE}} -# -# Unfortunately, these three lines do not work on make 3.81 for some -# reason, but do work on 3.82. Until 3.82 is shipped with VxMicro, we -# have to assign 'cmd' to SHELL directly like this. - -SHELL = cmd - -##### - -i_DeleteFiles_y = $(HOS_SlashCnv) $(HOS_Bin)/rmfile.bat -i_CopyFile_y = $(HOS_SlashCnv) copy -i_DelDir_y = $(HOS_SlashCnv) $(HOS_Bin)/rmdir.bat -i_Rename_y = $(HOS_SlashCnv) $(HOS_Bin)/rename.bat -i_Move_y = $(HOS_SlashCnv) $(HOS_Bin)/movefiles.bat -i_SubdirsList_y = $(HOS_SlashCnv) @dir '\/b \/ad \/s' -i_SubdirsListMod_y = -i_Cat_y = $(HOS_SlashCnv) type - -i_DeleteFiles_n = rm -f -i_CopyFile_n = cp -i_DelDir_n = rm -rf -i_Rename_n = mv -i_Move_n = mv -i_SubdirsList_n = find -i_SubdirsListMod_n = -type d -i_Cat_n = cat - -HOS_DeleteFiles = ${i_DeleteFiles_${i_NATIVE}} -HOS_CopyFile = ${i_CopyFile_${i_NATIVE}} -HOS_DelDir = ${i_DelDir_${i_NATIVE}} -HOS_Rename = ${i_Rename_${i_NATIVE}} -HOS_Move = ${i_Move_${i_NATIVE}} -HOS_SubdirsList = ${i_SubdirsList_${i_NATIVE}} -HOS_SubdirsListMod = ${i_SubdirsListMod_${i_NATIVE}} -HOS_Cat = ${i_Cat_${i_NATIVE}} - -HOS_Echo = $(HOS_SlashCnv) echo -HOS_EchoBlankLine = $(HOS_SlashCnv) echo. -HOS_Cat3Files = $(HOS_SlashCnv) $(HOS_Bin)/catenate.bat -HOS_MakeDir = $(HOS_SlashCnv) $(HOS_Bin)/makedir.bat -HOS_FileList = $(HOS_SlashCnv) @dir '\/b \/s' -HOS_DirList = $(HOS_SlashCnv) @dir '\/b \/ad' -HOS_Shell = $(HOS_SlashCnv) cmd \/C -HOS_Bin_SysGen = $(HOS_Bin)/generator -HOS_Bin_HostServerCon = $(HOS_Bin)/HostServerCon -HOS_Bin_HostServer = $(HOS_Bin)/HostServer -HOS_SysGen = $(HOS_Bin_SysGen) -HOS_HostServerCon = $(HOS_Bin_HostServerCon) -HOS_HostServer = $(HOS_Bin_HostServer) -HOS_GenOffsetHeader = $(HOS_SlashCnv) $(HOS_Bin)/genOffsetHeader.exe -HOS_GenConfigAbssym = ${HOS_SlashCnv} ${HOS_Bin}/gen_config_abssym.exe -HOS_Write512 = $(HOS_SlashCnv) $(HOS_Bin)/write512 -HOS_MultiCmd = & -HOS_false = cmd /c exit /b 1 -HOS_true = cmd /c exit /b 0 -HOS_Touch = ${HOS_SlashCnv} ${HOS_Bin}/touch.bat -HOS_GenPomsGdtH = $(HOS_Bin)/gen_poms_gdt.exe -HOS_DEC2HEX = $(HOS_Bin)/dec2hex.exe -HOS_GenIdt = $(HOS_SlashCnv) $(HOS_Bin)/genIdt.exe -HOS_Term = cmd /c start cmd /c -HOS_mkevents = $(HOS_SlashCnv) ${HOS_Bin}/mkevents.exe -HOS_Sleep = timeout /t -HOS_Percent = %% - -# for weird rules where a copy is forced and thus the timestamps should not be -# updated if the source of the copy did not get re-generated (no difference -# on Windows) -HOS_CopyFilePreserveTimestamps = ${HOS_CopyFile} - -MAKEFLAGS += -r - -# wrsconfig must be called differently depending on the host OS, -# provide a wrapper as well -HOS__Wrsconfig = $(HOS_SlashCnv) $(HOS_Bin)/wrsconfig -define HOS_Wrsconfig - $q$(HOS__Wrsconfig).bat $(dir $(1)) $(HOS__Wrsconfig).exe $(2) $(1) - -endef - -# in Cygwin, make needs a space after nul under cygwin else ctrl-m is part -# of redirect filename and you get a file called 'nul?' -i_ONESPACE = -HOS_DEVNULL_R = nul${i_ONESPACE} -i_DEVNULL_W_y = nul${i_ONESPACE} -# Cygwin needs a # after /dev/null to redirect cp for some reason -i_DEVNULL_W_n = /dev/null${i_ONESPACE} # -HOS_DEVNULL_W = ${i_DEVNULL_W_${i_NATIVE}} diff --git a/make/vxmicro/make/host/exe_extra.defs b/make/vxmicro/make/host/exe_extra.defs deleted file mode 100644 index 826154660af..00000000000 --- a/make/vxmicro/make/host/exe_extra.defs +++ /dev/null @@ -1,50 +0,0 @@ -# exe_extra.defs - definitions for building a host program - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# add extra host type to the HOST list to be built for -HOST += win32 - -# where the program will be generated -vBIN_DIR_win32 = ${vDEST_win32}/bin - -# executable name -vEXE_NAME_win32 = ${EXE_NAME}.exe - -# executable output path + filename -vEXE_win32 = ${vBIN_DIR_win32}/${EXE_NAME}.exe - -# Link options -vLNK_OPTS_win32 = -liberty - -# location of the libraries -vLIB_DIR_win32 = ${vDEST_win32}/lib/build_tools -vDEPEND_LIBS_win32 = $(foreach lib,${LINKED_LIBS},${vLIB_DIR_win32}/lib${lib}.a) \ No newline at end of file diff --git a/make/vxmicro/make/host/lib_extra.defs b/make/vxmicro/make/host/lib_extra.defs deleted file mode 100644 index 8abdf9eae00..00000000000 --- a/make/vxmicro/make/host/lib_extra.defs +++ /dev/null @@ -1,40 +0,0 @@ -# lib_extra.defs - definitions for building libraries - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# add extra host type to the HOST list to be built for -HOST += win32 - -# where the library will be generated -vLIB_DIR_win32 = ${vDEST_win32}/lib/build_tools - -# library output path + filename -vLIB_win32 = ${vLIB_DIR_win32}/lib${LIB_NAME}.a \ No newline at end of file diff --git a/make/vxmicro/make/host/obj_extra.defs b/make/vxmicro/make/host/obj_extra.defs deleted file mode 100644 index 1ed72a85ebb..00000000000 --- a/make/vxmicro/make/host/obj_extra.defs +++ /dev/null @@ -1,43 +0,0 @@ -# obj_extra.defs - definitions for building object files - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# custom: set if not provided by user -CFLAGS_win32 ?= ${vCFLAGS_COMMON} -DWINDOWS ${EXTRA_CFLAGS} ${EXTRA_CFLAGS_win32} - -# base destination directories -vDEST_win32 = ${VXMICRO_BASE}/host/x86-win32 - -# object file output directories -vOBJDIR_DEP_win32 = win32/.dir - -# lists of object files to generate -vOBJS_win32 = $(patsubst %,win32/%,$(SOURCES:.c=.o)) diff --git a/make/vxmicro/make/host/toolchain_extra.defs b/make/vxmicro/make/host/toolchain_extra.defs deleted file mode 100644 index b4631e3ed95..00000000000 --- a/make/vxmicro/make/host/toolchain_extra.defs +++ /dev/null @@ -1,40 +0,0 @@ -# toolchain_extra.defs - definitions for toolchains - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# compilers -vCC_win32 = $(wildcard /usr/bin/i[3456]86-*mingw32*-gcc) - -# archivers -vAR_win32 = $(wildcard /usr/bin/i[3456]86-*mingw32*-ar) - -# are all the windows tools available ? -$(if $(and ${vCC_win32},${vAR_win32}),,$(error Windows tools are not set!)) diff --git a/make/vxmicro/make/iap/host/defs.host.x86-win32 b/make/vxmicro/make/iap/host/defs.host.x86-win32 deleted file mode 100644 index ac2351053ae..00000000000 --- a/make/vxmicro/make/iap/host/defs.host.x86-win32 +++ /dev/null @@ -1,10 +0,0 @@ -# defs.host.x86-win32 - build system - -# Copyright (c) 2013 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -HOS_IapBin = ${HOS_SlashCnv} ${HOS_Bin} -HOS_CopyTree = $(HOS_SlashCnv) xcopy '\/E \/Q \/Y' diff --git a/make/vxmicro/make/target/arch/x86/rules.idt b/make/vxmicro/make/target/arch/x86/rules.idt deleted file mode 100644 index f5ff5d48bae..00000000000 --- a/make/vxmicro/make/target/arch/x86/rules.idt +++ /dev/null @@ -1,96 +0,0 @@ -# rules.idt - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -################################################################################ -# define steps to modify set the section attributes to noload. -# -# This is a workaround for the Diab compiler which doesn't set the section -# attributes correctly for some of the custom sections defined by VxMicro. -# $1 is the input file and $2 is the output file. -# - -iDIAB_SET_SECTION_FLAGS = $(strip \ - --set-section-flags intList=noload \ - --set-section-flags noinit=noload \ -) - -iXCC_SET_SECTION_FLAGS = $(strip \ - --set-section-flags intList=noload \ -) - -define i_noload_diab - -@$(HOS_Echo) '[Diab] Setting sections to noload [$(notdir $2)]' - $q${vOC} ${iDIAB_SET_SECTION_FLAGS} $1 $2 - -endef - -define i_noload_gcc - -@$(HOS_Echo) '[${vTOOL}] Setting sections to noload [$(notdir $2)]' - $q${vOC} ${iXCC_SET_SECTION_FLAGS} $1 $2 - -endef - -################################################################################ -# define steps to generate and include static IDT -# -# Set a physical address to the intList section -# Linker places intList to a separate program header in the elf -# file. Then intList gets marked as NOLOAD and then removed. -# This operation creates an empty program header, but the -# program header inherits it's addresses from it's last section -- -# intList. -# Most of the bootloaders parse all program headers and first check -# the program header physical address, if it is zero, the virtual -# address is checked. Then a bootloader checks if the address can -# be mapped, even if the length is zero. Thus, the physical address -# of a program header can not be zero. -# - -define idtInTxt - -@$(HOS_Echo) '[${vTOOL}] Creating [Static IDT]' - $q$(vOC) -I ${OC_TARGET} -O binary -j intList $@ ${vOUT_DIR}/isrList.bin - -$q$(HOS_Rename) $@ ${vOUT_DIR}/elf.old - $q$(HOS_GenIdt) -i ${vOUT_DIR}/isrList.bin -n ${CONFIG_IDT_NUM_VECTORS} -o ${vOUT_DIR}/staticIdt.bin - $q$(vOC) -I binary -B ${OC_ARCH} -O ${OC_TARGET} --rename-section .data=staticIdt ${vOUT_DIR}/staticIdt.bin ${vOUT_DIR}/staticIdt.o - -$q$(HOS_DeleteFiles) ${iFINAL_LINKER_CMD} - -@$(HOS_Echo) '[${vTOOL}] Relinking [$(notdir $@)]' - $q${vPP} -DFINAL_LINK ${iLINKER_CMD_OPT} ${iLINKER_CMD_INC} ${LINKER_CMD} -o ${iFINAL_LINKER_CMD} - $q${vLD} -o $@ @$(filter %.${lnk},$^) $(filter %.$o,$^) ${vOUT_DIR}/staticIdt.$o ${-T} ${iFINAL_LINKER_CMD} - $(call i_noload_${vTOOL},$@,${vOUT_DIR}/elf.tmp) - $q$(vOC) -R intList ${vOUT_DIR}/elf.tmp $@ - -@$(HOS_DeleteFiles) ${vOUT_DIR}/staticIdt.* - -@$(HOS_DeleteFiles) ${vOUT_DIR}/isrList.* - -@$(HOS_DeleteFiles) ${vOUT_DIR}/elf.old - -@$(HOS_DeleteFiles) ${vOUT_DIR}/elf.tmp - -endef - diff --git a/make/vxmicro/make/target/run/defs.emulation.x86-win32 b/make/vxmicro/make/target/run/defs.emulation.x86-win32 deleted file mode 100644 index 89269fb6c3f..00000000000 --- a/make/vxmicro/make/target/run/defs.emulation.x86-win32 +++ /dev/null @@ -1,57 +0,0 @@ -# defs.emulation.x86-win32 - common emulator Windows specific definitions - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - - -# DESCRIPTION -# File defines: -# iHOS_getprogpath - function that returns a full program path -# iSIM_SERIAL_DEVICE - device driver used for the host communication -# vSIM_HS_PORT - serial device or pseudo-device used -# for the host communication - -# The executables are expected to reside in either "C:\Program Files\" -# or "C:\Program Files (x86)". These are shortened to "C:\Progra~1\" -# and "C:\Progra~2\" respectively. -iPF1 = C:/Progra~1 -iPF2 = C:/Progra~2 -iPF3 = ${vBASE}/host/${vHOST}/bin - -iPF1_BIN = $(subst \,/,$(wildcard ${iPF1}/$(1))) -iPF2_BIN = $(subst \,/,$(wildcard ${iPF2}/$(1))) -iPF3_BIN = $(subst \,/,$(wildcard ${iPF3}/$(1))) - -# if a program resides either in "C:\Program Files\" or "C:\Program Files (x86)", -# return it's full path -iHOS_getprogpath = $(or ${iPF1_BIN},${iPF2_BIN},${iPF3_BIN}) - -iSIM_SERIAL_DEVICE := $(call iHOS_getprogpath,com0com/com0com.sys) -vSIM_HS_PORT ?= COM8 diff --git a/make/vxmicro/make/target/run/defs.extra b/make/vxmicro/make/target/run/defs.extra deleted file mode 100644 index 4a5d4b8ef98..00000000000 --- a/make/vxmicro/make/target/run/defs.extra +++ /dev/null @@ -1,35 +0,0 @@ -# defs.extra - extra emulation definitions - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# definitions for simics -include ${vMAKE}/target/run/defs.simics - diff --git a/make/vxmicro/make/target/run/defs.qemu.custom.vqemu b/make/vxmicro/make/target/run/defs.qemu.custom.vqemu deleted file mode 100644 index ca3d2600a7c..00000000000 --- a/make/vxmicro/make/target/run/defs.qemu.custom.vqemu +++ /dev/null @@ -1,38 +0,0 @@ -# defs.qemu.custom.default - default QEMU definitions - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -vQEMU_NAME ?= vqemu-${vQEMU_BIN_ARCH}${HOS_exe} -vQEMU_BIN ?= ${VXMICRO_BASE}/host/x86-linux2/bin/vqemu/${vQEMU_NAME} -QEMU_BIOS ?= ${VXMICRO_BASE}/host/src/vqemu/i386/qemu-0.15.1/pc-bios - -iLD_LIBRARY_PATH:=${LD_LIBRARY_PATH} -export LD_LIBRARY_PATH=${VXMICRO_BASE}/host/x86-linux2/lib/vqemu:${iLD_LIBRARY_PATH} diff --git a/make/vxmicro/make/target/run/defs.qemu.default b/make/vxmicro/make/target/run/defs.qemu.default deleted file mode 100644 index 5760011bd91..00000000000 --- a/make/vxmicro/make/target/run/defs.qemu.default +++ /dev/null @@ -1,40 +0,0 @@ -# defs.qemu.default - default QEMU definitions - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# set up system to use VQEMU & associated libraries - -vQEMU_NAME ?= vqemu-${vQEMU_BIN_ARCH}${HOS_exe} -vQEMU_BIN ?= ${VXMICRO_BASE}/host/x86-linux2/bin/vqemu/${vQEMU_NAME} -QEMU_BIOS ?= ${VXMICRO_BASE}/host/src/vqemu/i386/qemu-0.15.1/pc-bios - -iLD_LIBRARY_PATH:=${LD_LIBRARY_PATH} -export LD_LIBRARY_PATH=${VXMICRO_BASE}/host/x86-linux2/lib/vqemu:${iLD_LIBRARY_PATH} diff --git a/make/vxmicro/make/target/run/defs.qemu.x86-win32 b/make/vxmicro/make/target/run/defs.qemu.x86-win32 deleted file mode 100644 index c2c6c2bda35..00000000000 --- a/make/vxmicro/make/target/run/defs.qemu.x86-win32 +++ /dev/null @@ -1,72 +0,0 @@ -# defs.qemu.x86-win32 - QEMU Windows specific definitions - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# DESCRIPTION -# File defines: -# vQEMU_NAME - name of QEMU executable -# vQEMU_BIN - fully qualified path to QEMU executable -# iQEMU_BANNER - banner to be printed on QEMU start -# iQEMU_CONSOLE - QEMU stdout console - -# set up system to use VQEMU & associated libraries - -vQEMU_BIN ?= $(call iHOS_getprogpath,vqemu/${vQEMU_NAME}) - -iLD_LIBRARY_PATH:=${PATH} -export PATH=${VXMICRO_BASE}/host/x86-win32/lib/vqemu:${iLD_LIBRARY_PATH} - -iQEMU_BANNER = "To exit from QEMU enter: 'CTRL+c'" -iQEMU_CONSOLE = mon:file:CON - -# stop QEMU simulation -define Qemu_stop - @-taskkill /F /IM ${vQEMU_NAME} 2>${HOS_DEVNULL_W} -endef - -# run QEMU with host tools -define Qemu_runhost - $(Qemu_stop) - $q${HOS_Term} $1 - $q${HOS_Echo} ${iQEMU_BANNER} - $q${vQEMU_BIN} ${vQEMU_FLAGS} -kernel $< -serial ${iQEMU_CONSOLE} -serial ${vSIM_HS_PORT} - $(Qemu_stop) -endef - -# run QEMU with host tools and gdb -define Qemu_runhostgdb - $(Qemu_stop) - $q${HOS_Term} $1 - $q${HOS_Term} "${vQEMU_BIN} ${vQEMU_FLAGS} -kernel $< -s -S -serial ${iQEMU_CONSOLE} -serial ${vSIM_HS_PORT}" - $q${HOS_Sleep} 1 - $(vGDB) $< - $(Qemu_stop) -endef diff --git a/make/vxmicro/make/target/run/rules.extra b/make/vxmicro/make/target/run/rules.extra deleted file mode 100644 index 41f82c3d441..00000000000 --- a/make/vxmicro/make/target/run/rules.extra +++ /dev/null @@ -1,35 +0,0 @@ -# rules.extra - extra emulation rules - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -# rules for other simics -include ${vMAKE}/target/run/rules.simics - diff --git a/make/vxmicro/make/target/run/rules.qemu.x86-win32 b/make/vxmicro/make/target/run/rules.qemu.x86-win32 deleted file mode 100644 index a334c25805d..00000000000 --- a/make/vxmicro/make/target/run/rules.qemu.x86-win32 +++ /dev/null @@ -1,53 +0,0 @@ -# rules.qemu.x86-wind32 - Windows specific rules for running on QEMU target - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -serialLink: ${iSIM_SERIAL_DEVICE} - -${iSIM_SERIAL_DEVICE}: - @$(HOS_Echo) You do not have com0com so you cannot run the hostserver. - @$(HOS_Echo) You can get it from http:\/\/sourceforge.net\/projects\/com0com - @$(HOS_Echo) and install it into the C:/Program Files/com0com folder or - @$(HOS_Echo) if you install it elsewhere, set COM0COM_DIR - -# on Windows we use echo to avoid problems with slash conversion -.gdbinit: - $q${HOS_Echo} target remote localhost:1234 >.gdbinit - @echo dir ${vBASE}/target/src/kernel >>.gdbinit - @echo dir ${vBASE}/target/src/hostserver >>.gdbinit - -# run the target with GDB -%.qemu.gdb %.gdb: ${vOUT_DIR}/%.${elf} .gdbinit - $(Qemu_stop) - $q${HOS_Term} "${vQEMU_BIN} ${vQEMU_FLAGS} -kernel $< -s -S -serial ${iQEMU_CONSOLE}" - $q${HOS_Sleep} 1 - $q${vGDB} $< - diff --git a/make/vxmicro/make/target/toolchain/Xcc/README b/make/vxmicro/make/target/toolchain/Xcc/README deleted file mode 100644 index faa3045e6d9..00000000000 --- a/make/vxmicro/make/target/toolchain/Xcc/README +++ /dev/null @@ -1,4 +0,0 @@ -This directory contains the common files between GCC and GCC-compliant -compilers. - -Any differences are data-driven via make variables. diff --git a/make/vxmicro/make/target/toolchain/Xcc/defs.Xcc b/make/vxmicro/make/target/toolchain/Xcc/defs.Xcc deleted file mode 100644 index f30d377f6d2..00000000000 --- a/make/vxmicro/make/target/toolchain/Xcc/defs.Xcc +++ /dev/null @@ -1,37 +0,0 @@ -# defs.Xcc - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -iPP_OPT = -E -x assembler-with-cpp -nostdinc -iPP_NO_SPACE = -iPP_AS = -iPP_NOLINENO = -P - -iCC_DEP = -MM -MP -iCC_DEP_GEN = -M -MG -MP -# Both -MT and -MF lines have a space at the end -iCC_DEP_TARGET = -MT -iCC_DEP_FILE = -MF - -iCC_SPLIT_SECTIONS = -ffunction-sections -fdata-sections - -iCC_C99 = -std=c99 - --c = -c --I = -I --D = -D -# this line has a space at the end ("-o ") --o = -o --g = -g --T = -T -# this line has a space at the end ("-include ") --iinclude = -include - -# linker flag for section splitting and removal of unused sections. -iLD_REMOVE_UNUSED_SECTIONS = --gc-sections - -iLINKER_CMD_TOOL = __GCC_LINKER_CMD__ diff --git a/make/vxmicro/make/target/toolchain/Xcc/defs.kernel-bin b/make/vxmicro/make/target/toolchain/Xcc/defs.kernel-bin deleted file mode 100644 index e8a0f653c89..00000000000 --- a/make/vxmicro/make/target/toolchain/Xcc/defs.kernel-bin +++ /dev/null @@ -1,20 +0,0 @@ -# defs.kernel-bin - build system - -# Copyright (c) 2013 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -# rules for running preprocessor on linker command file -iLINKER_CMD_OPT = $(strip \ - -x assembler-with-cpp \ - -nostdinc -undef -E -P \ - ${-D}VXMICRO_ARCH_${vARCH} \ - ${-D}${iLINKER_CMD_TOOL} \ -) -iLINKER_CMD_INC = -I${vKLIB_DIR}/include -I${vBASE}/include -iFINAL_LINKER_CMD = ${vOUT_DIR}/$(notdir ${LINKER_CMD}) - -iUSR = $(if $(strip $(filter %.${usr},$^)),$(filter %.${usr},$^),${HOS_DEVNULL_R}) -iMEM = $(if $(strip $(filter %.${mem},$^)),$(filter %.${mem},$^),${HOS_DEVNULL_R}) diff --git a/make/vxmicro/make/target/toolchain/Xcc/rules.kernel-bin b/make/vxmicro/make/target/toolchain/Xcc/rules.kernel-bin deleted file mode 100644 index 23b0fb3cbea..00000000000 --- a/make/vxmicro/make/target/toolchain/Xcc/rules.kernel-bin +++ /dev/null @@ -1,56 +0,0 @@ -# rules.kernel-bin - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -# kernel binary rules -# Note the use of echo not HOS_Echo since GNU ld needs forward slash paths - -include ${vMAKE}/target/toolchain/Xcc/defs.kernel-bin - -${vOUT_DIR}/%.${lnk}: ${iDEPEND_ON_MAKEFILES} | $$(dir $$@).dir - -$q${HOS_Echo} '[${vTOOL}] Preparing [$(notdir $@)]' - $qecho -nostartfiles -nodefaultlibs -nostdlib -static > ${vOUT_DIR}/lflags - $qecho $(foreach flag,${LFLAGS},-Wl,$(flag) ) >> ${vOUT_DIR}/lflags - $qecho -Wl,-Map,${vOUT_DIR}/$*.map >> ${vOUT_DIR}/lflags -ifneq ($(strip ${iLTO}),) - $qecho {$iLTO} >> ${vOUT_DIR}/lflags -endif - $qecho -L . $(foreach script,$(filter %.cmd,$^),-T$(subst \,/,$(script))) >> ${vOUT_DIR}/lflags - $qecho -u _OffsetAbsSyms >> ${vOUT_DIR}/lflags - $qecho -u _ConfigAbsSyms >> ${vOUT_DIR}/lflags -ifneq ($(strip ${vARCH_UNDEF_SYMS}),) - $qecho $(foreach sym,${vARCH_UNDEF_SYMS},-u ${sym} ) >> ${vOUT_DIR}/lflags -endif - $qecho $(foreach path,${LIB_INCLUDE_DIR},-L $(subst \,/,${path}) ) >> ${vOUT_DIR}/lflags - $qecho -Wl,--start-group $(foreach alib,${ALL_LIBS},-l${alib}) >> ${vOUT_DIR}/lflags - $qecho ${vKLIB_DIR}/offsets.$o >> ${vOUT_DIR}/lflags - $q$(HOS_Cat3Files) ${vOUT_DIR}/lflags ${iUSR} ${iMEM} $@ > ${HOS_DEVNULL_W} - -$q${HOS_DeleteFiles} ${vOUT_DIR}/lflags - -# rule to generate the final linker script (pre-processed) -${iFINAL_LINKER_CMD}: ${LINKER_CMD} ${iOFFSETS_HDR} | $$(dir $$@).dir - $q${vPP} ${iLINKER_CMD_OPT} ${iLINKER_CMD_INC} $< -o $@ - -# rule to make elf files -%.${elf}: ${vOUT_DIR}/$$(notdir $$*).${lnk} ${iBUILDSPEC} ${iFINAL_LINKER_CMD} | $$(dir $$@).dir - -@${HOS_Echo} '[${vTOOL}] Linking [$(notdir $@)]' - $q${vLD} -o $@ @$(filter %.${lnk},$^) $(filter %.$o,$^) -T ${iFINAL_LINKER_CMD} - $(call idtInTxt) -ifeq ($(VXMICRO_HOST_OS),win32) - $q$(HOS_CopyFile) $(HOS_Bin)/exeelf.exe $*.exe > ${HOS_DEVNULL_W} -endif - -# bin-from-elf rule -%.${bin}: %.${elf} | $$(dir $$@).dir - -@${HOS_Echo} '[${vTOOL}] Generating [$(notdir $@)]' - $q${vOD} -S $< >$*.lst - $q${vOC} -S -O binary -R .note -R .comment -R COMMON -R .eh_frame ${EXTRA_OC_FLAGS} $< $@ - -# generate a stripped ELF file from an ELF image -%.${strip}: %.${elf} | $$(dir $$@).dir - -@${HOS_Echo} '[${vTOOL}] Generating [$(notdir $@)]' - $q${vSTRIP} -s -o $@ $< diff --git a/make/vxmicro/make/target/toolchain/diab/arch/arm/defs.exec b/make/vxmicro/make/target/toolchain/diab/arch/arm/defs.exec deleted file mode 100644 index 2d43195aa1b..00000000000 --- a/make/vxmicro/make/target/toolchain/diab/arch/arm/defs.exec +++ /dev/null @@ -1,14 +0,0 @@ -# defs.exec - build system - -# Copyright (c) 2014 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -# Arch type to use with objcopy. -OC_ARCH ?= littlearm -OC_TARGET ?= elf32-${OC_ARCH}-vxworks - -vOC ?= ${iWRS_UTIL_DIR}/objcopyarm -vSTRIP ?= ${iWRS_UTIL_DIR}/striparm diff --git a/make/vxmicro/make/target/toolchain/diab/arch/arm/defs.flags b/make/vxmicro/make/target/toolchain/diab/arch/arm/defs.flags deleted file mode 100644 index 7d8f92892f6..00000000000 --- a/make/vxmicro/make/target/toolchain/diab/arch/arm/defs.flags +++ /dev/null @@ -1,41 +0,0 @@ -# defs.flags - build system - -# Copyright (c) 2014 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -iDIAB_arm_DEFS = ${-D}VXMICRO_ARCH_arm ${-D}VXMICRO_ARCH=arm - -# section garbage collection -iSECTION_GC_CFLAGS ?= ${iCC_SPLIT_SECTIONS} -iSECTION_GC_LFLAGS ?= ${iLD_REMOVE_UNUSED_SECTIONS} - -# link time optimization is not enabled by default. Use LTO=on to enable -iLTO_on ?= -flto -iLTO ?= ${iLTO_${LTO}} - -iDiab_arm_opt_flags = - -# ARM specific warnings to ignore. -IDIAB_arm_IGNORE_CFLAGS_CODES ?= - -iDIAB_arm_CFLAGS = ${iDIAB_arm_DEFS} ${iSECTION_GC_CFLAGS} ${iLTO} -ei${iDIAB_arm_IGNORE_CFLAGS_CODES} ${iDiab_arm_opt_flags} -iDIAB_arm_ASMFLAGS = ${iDIAB_arm_DEFS} -iDIAB_arm_LFLAGS = ${iSECTION_GC_LFLAGS} -limpl - -# Instruction-Set Architecture (ISA) - -iDIAB_ISA_CPU_CortexM4 = ARMCORTEXM4 -iDIAB_ISA_CPU_CortexM3 = ARMCORTEXM3 -iDIAB_ISA_CPU = ${iDIAB_ISA_CPU_${vCPU}} - -iISA = -t${iDIAB_ISA_CPU}${iDIAB_ENDIANNESS}${iDIAB_FLOAT}:cross - -iDIAB_${vCPU}_CFLAGS ?= ${iISA} -iDIAB_${vCPU}_ASMFLAGS ?= ${iISA} - -# the linker tags these sections with PROGBITS, so they end up in the -# image: strip them -vDIAB_ARCH_LINK_OC_OPT = -R bss -R noinit -R scp -R scs diff --git a/make/vxmicro/make/target/toolchain/diab/arch/arm/defs.target b/make/vxmicro/make/target/toolchain/diab/arch/arm/defs.target deleted file mode 100644 index 4416cc6fd97..00000000000 --- a/make/vxmicro/make/target/toolchain/diab/arch/arm/defs.target +++ /dev/null @@ -1,16 +0,0 @@ -# defs.target - build system - -# Copyright (c) 2014 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -# ARM Thumb-2, little endian, no FP on M3, FP on M4 - -iDIAB_ISA = ARMT2 -iDIAB_ENDIANNESS = L - -iDIAB_FLOAT_CortexM4 = H -iDIAB_FLOAT_CortexM3 = N -iDIAB_FLOAT = ${iDIAB_FLOAT_${vCPU}} diff --git a/make/vxmicro/make/target/toolchain/diab/arch/x86/defs.exec b/make/vxmicro/make/target/toolchain/diab/arch/x86/defs.exec deleted file mode 100644 index 95d0f59d110..00000000000 --- a/make/vxmicro/make/target/toolchain/diab/arch/x86/defs.exec +++ /dev/null @@ -1,14 +0,0 @@ -# defs.exec - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -# Arch type to use with objcopy. -OC_ARCH ?= i386 -OC_TARGET ?= elf32-${OC_ARCH}-vxworks - -vOC ?= ${iWRS_UTIL_DIR}/objcopypentium -vSTRIP ?= ${iWRS_UTIL_DIR}/strippentium diff --git a/make/vxmicro/make/target/toolchain/diab/arch/x86/defs.flags b/make/vxmicro/make/target/toolchain/diab/arch/x86/defs.flags deleted file mode 100644 index c276edbc993..00000000000 --- a/make/vxmicro/make/target/toolchain/diab/arch/x86/defs.flags +++ /dev/null @@ -1,38 +0,0 @@ -# defs.flags - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -iDIAB_x86_DEFS = ${-D}VXMICRO_ARCH_x86 ${-D}VXMICRO_ARCH=x86 - -# section garbage collection -iSECTION_GC_CFLAGS ?= ${iCC_SPLIT_SECTIONS} -iSECTION_GC_LFLAGS ?= ${iLD_REMOVE_UNUSED_SECTIONS} - -# link time optimization is not enabled by default. Use LTO=on to enable -iLTO_on ?= -flto -iLTO ?= ${iLTO_${LTO}} - -iDiab_x86_opt_flags = $(if $(iDEFPERF_COMPILER_OPT),-Xalign-functions=4,-Xalign-functions=1) - -# Intel specific warnings to ignore. -# 1656 prevents the compiler from warning if the EBX/BX register is being marked -# as scratch. Some Intel opcodes (CPUID for example) trash the EBX register so -# inline assembler routines that use these types of opcodes must mark the EBX -# register as being scratch. -iDIAB_x86_IGNORE_CFLAGS_CODES ?= 1656 - -iDIAB_x86_CFLAGS = ${iDIAB_x86_DEFS} ${iSECTION_GC_CFLAGS} ${iLTO} -ei${iDIAB_x86_IGNORE_CFLAGS_CODES} ${iDiab_x86_opt_flags} -iDIAB_x86_ASMFLAGS = ${iDIAB_x86_DEFS} -iDIAB_x86_LFLAGS = ${iSECTION_GC_LFLAGS} - -# Instruction-Set Architecture (ISA) -iISA ?= -t${iDIAB_ISA}${iDIAB_ENDIANNESS}${iDIAB_FLOAT}:cross - -# Note: DIAB does not support SSE instructions. - -iDIAB_${vCPU}_CFLAGS ?= ${iISA} -iDIAB_${vCPU}_ASMFLAGS ?= ${iISA} diff --git a/make/vxmicro/make/target/toolchain/diab/arch/x86/defs.target b/make/vxmicro/make/target/toolchain/diab/arch/x86/defs.target deleted file mode 100644 index 6c84bf6a83c..00000000000 --- a/make/vxmicro/make/target/toolchain/diab/arch/x86/defs.target +++ /dev/null @@ -1,19 +0,0 @@ -# defs.target - build system - -# Copyright (c) 2014 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -iDIAB_ISA = X86 -iDIAB_ENDIANNESS = L - -# Minutia does not support floating point of any kind. -iDIAB_FLOAT_minuteia = N - -# these support float, but note that Diab does not generate SSE instructions -iDIAB_FLOAT_atom_n28xx = H -iDIAB_FLOAT_pentium4 = H - -iDIAB_FLOAT = ${iDIAB_FLOAT_${vCPU}} diff --git a/make/vxmicro/make/target/toolchain/diab/arch/x86/rules.idt b/make/vxmicro/make/target/toolchain/diab/arch/x86/rules.idt deleted file mode 100644 index 6a3772a8d8f..00000000000 --- a/make/vxmicro/make/target/toolchain/diab/arch/x86/rules.idt +++ /dev/null @@ -1,50 +0,0 @@ -# rules.idt - build system - -# -# Copyright (c) 2013-2014 Wind River Systems, Inc. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1) Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2) Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# 3) Neither the name of Wind River Systems nor the names of its contributors -# may be used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -# - -################################################################################ -# define steps to modify set the section attributes to noload. -# -# This is a workaround for the Diab compiler which doesn't set the section -# attributes correctly for some of the custom sections defined by VxMicro. -# $1 is the input file and $2 is the output file. -# - -iDIAB_SET_SECTION_FLAGS = $(strip \ - --set-section-flags intList=noload \ - --set-section-flags noinit=noload \ -) - -define i_noload_diab - -@$(HOS_Echo) '[Diab] Setting sections to noload [$(notdir $2)]' - $q${vOC} ${iDIAB_SET_SECTION_FLAGS} $1 $2 - -endef diff --git a/make/vxmicro/make/target/toolchain/diab/defs.diab b/make/vxmicro/make/target/toolchain/diab/defs.diab deleted file mode 100644 index 669a2c24d36..00000000000 --- a/make/vxmicro/make/target/toolchain/diab/defs.diab +++ /dev/null @@ -1,59 +0,0 @@ -# defs.diab - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -VXMICRO_DIAB_VERSION ?= $(patsubst diab-%,%,$(notdir ${WIND_DIAB_PATH})) -vDIAB_VER = $(strip ${VXMICRO_DIAB_VERSION}) - -ifeq (${WIND_HOME},) - $(error Diab requires WIND_HOME to be set) -endif - -vWRS_BASE = $(subst \,/,$(strip ${WIND_HOME})) - -iMAKE_DIAB = ${vMAKE}/target/toolchain/diab - -include ${iMAKE_DIAB}/defs.ext -include ${iMAKE_DIAB}/defs.exec -include ${iMAKE_DIAB}/defs.target -include ${iMAKE_DIAB}/defs.flags - -include ${vMAKE}/target/stdlib/defs.stdlib - -# Compile against headers for the compiler's libraries -vTC_LIB_DIR = ${iDIAB_DIR}/${iDIAB_ISA}${iDIAB_ENDIANNESS} - -vTC_LIBS = impl impfp - -iPP_OPT = -iPP_NO_SPACE = -Xcpp-no-space -iPP_AS = -Xpreprocess-assembly ${iPP_NO_SPACE} -iPP_NOLINENO = -Xpreprocessor-lineno-off - -iCC_DEP = -Xmake-dependency=9 -w -iCC_DEP_GEN = -Xmake-dependency=9 -Xincfile-missing-ignore -w -iCC_DEP_TARGET = -Xmake-dependency-target= -iCC_DEP_FILE = -Xmake-dependency-savefile= - -iCC_SPLIT_SECTIONS = -Xsection-split=3 - -iCC_C99 = -Xdialect-c99 - --c = -c --I = -I --D = -D -# this line has a space at the end ("-o ") --o = -o -# -g3 used to prevent disabling optimizations such as inlining. -# The '-Xoptimized-debug-off' option can be used to disable optimizations -# that interfere with debugging. --g = -g3 - -# linker flag for section splitting and removal of unused sections. -iLD_REMOVE_UNUSED_SECTIONS = -Xremove-unused-sections - -iLINKER_CMD_TOOL = __DIAB_LINKER_CMD__ diff --git a/make/vxmicro/make/target/toolchain/diab/defs.diab.host b/make/vxmicro/make/target/toolchain/diab/defs.diab.host deleted file mode 100644 index 7fbff385114..00000000000 --- a/make/vxmicro/make/target/toolchain/diab/defs.diab.host +++ /dev/null @@ -1,25 +0,0 @@ -# defs.diab.host - build system - -# Copyright (c) 2014 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -iDIAB_WRS_SUBDIR_DEFAULT = compilers - -iDIAB_DIR__USR ?= $(strip $(subst \,/,${VXMICRO_DIAB_DIR}/diab-${vDIAB_VER})) -iDIAB_DIR__WRS ?= $(subst \,/,${vWRS_BASE}/${iDIAB_WRS_SUBDIR_DEFAULT}/diab-${vDIAB_VER}) - -iDIAB_BIN_DIR__USR ?= ${iDIAB_DIR__USR}/${iDIAB_HOST_SUBDIR} -iDIAB_BIN_DIR__WRS ?= ${iDIAB_DIR__WRS}/${iDIAB_HOST_SUBDIR} - -iDIAB_EXE__USR ?= ${iDIAB_BIN_DIR__USR}/${iDIAB_EXE_TEST} -iDIAB_EXE__WRS ?= ${iDIAB_BIN_DIR__WRS}/${iDIAB_EXE_TEST} - -iDIAB_DIR_USR ?= $(if $(findstring ${iDIAB_EXE_TEST},$(wildcard ${iDIAB_EXE__USR})),${iDIAB_DIR__USR},) -iDIAB_DIR_WRS ?= $(if $(findstring ${iDIAB_EXE_TEST},$(wildcard ${iDIAB_EXE__WRS})),${iDIAB_DIR__WRS},) - -iDIAB_DIR ?= $(or ${iDIAB_DIR_USR},${iDIAB_DIR_WRS}) - -iDIAB_BIN_DIR ?= $(iDIAB_DIR)/${iDIAB_HOST_SUBDIR} diff --git a/make/vxmicro/make/target/toolchain/diab/defs.diab.x86-linux2 b/make/vxmicro/make/target/toolchain/diab/defs.diab.x86-linux2 deleted file mode 100644 index 593db6b310f..00000000000 --- a/make/vxmicro/make/target/toolchain/diab/defs.diab.x86-linux2 +++ /dev/null @@ -1,15 +0,0 @@ -# defs.diab.x86-linux2 - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -iDIAB_EXE_TEST = dcc -iDIAB_HOST_SUBDIR = LINUX386/bin -iDIAB_WRS_DEFAULT = ~/WindRiver - -vGDB ?= gdb - -include ${iMAKE_DIAB}/defs.diab.host diff --git a/make/vxmicro/make/target/toolchain/diab/defs.diab.x86-win32 b/make/vxmicro/make/target/toolchain/diab/defs.diab.x86-win32 deleted file mode 100644 index 3d17e610bbd..00000000000 --- a/make/vxmicro/make/target/toolchain/diab/defs.diab.x86-win32 +++ /dev/null @@ -1,15 +0,0 @@ -# defs.diab.x86-win32 - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -iDIAB_EXE_TEST = dcc.exe -iDIAB_HOST_SUBDIR = WIN32/bin -iDIAB_WRS_DEFAULT = C:\WindRiver - -vGDB ?= ${vBASE}/host/${vHOST}/bin/gdb/gdb - -include ${iMAKE_DIAB}/defs.diab.host diff --git a/make/vxmicro/make/target/toolchain/diab/defs.exec b/make/vxmicro/make/target/toolchain/diab/defs.exec deleted file mode 100644 index ef5335a8b5e..00000000000 --- a/make/vxmicro/make/target/toolchain/diab/defs.exec +++ /dev/null @@ -1,35 +0,0 @@ -# defs.exec - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -include ${iMAKE_DIAB}/arch/${vARCH}/defs.exec -include ${iMAKE_DIAB}/defs.diab.${vHOST} # find toolchain installation - -$(if ${iDIAB_DIR},,$(error No DIAB toolchain installation found!)) - -iWRS_UTIL_DIR = ${vWRS_BASE}/vxworks-7/host/binutils/${vHOST}/bin - -vCC ?= ${iDIAB_BIN_DIR}/dcc # C Compiler -vCPP ?= ${iDIAB_BIN_DIR}/dcc -P ${iISA} # C Pre-Processor -vAS ?= ${iDIAB_BIN_DIR}/dcc # Assembler, through the compiler frontend to get pre-processing -vAR ?= ${iDIAB_BIN_DIR}/dar # Archiver -vLD ?= ${iDIAB_BIN_DIR}/dld # Loader - -# objcopy and strip are arch-specific and defined in ${vARCH}/defs.exec - -# quiet by default -iQUIESCE_DOT_D = - -# Select the DIAB compiler for the pre-processing tool -# This is useful for IAP projects -vPP ?= ${vCPP} - -ifeq (${MAKE_RESTARTS},) - ifeq (${MAKELEVEL},0) - $(call q_info,Using DIAB installed in '${iDIAB_DIR}') - endif -endif diff --git a/make/vxmicro/make/target/toolchain/diab/defs.ext b/make/vxmicro/make/target/toolchain/diab/defs.ext deleted file mode 100644 index ce151335fd6..00000000000 --- a/make/vxmicro/make/target/toolchain/diab/defs.ext +++ /dev/null @@ -1,25 +0,0 @@ -# defs.ext - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -include ${vMAKE}/target/env/defs.ext - -# output file extensions -d ?= d -o ?= o -a ?= a -bin ?= bin -elf ?= elf -lnk ?= lnk -strip ?= strip - -# library file prefix -lib ?= lib - -# obsolete ?? -usr ?= usr -mem ?= lnk diff --git a/make/vxmicro/make/target/toolchain/diab/defs.flags b/make/vxmicro/make/target/toolchain/diab/defs.flags deleted file mode 100644 index e627b1e098f..00000000000 --- a/make/vxmicro/make/target/toolchain/diab/defs.flags +++ /dev/null @@ -1,86 +0,0 @@ -# defs.flags - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -include ${iMAKE_DIAB}/arch/${vARCH}/defs.flags -sinclude ${iMAKE_DIAB}/${vDIAB_VER}/defs.flags - -# vxmicro flags -vDEFAULT_COMPILER_OPT = -XO -Xsize-opt -iHAS_COMPILER_OPT ?= $(lastword $(CONFIG_COMPILER_OPT)) -iDEFPERF_COMPILER_OPT ?= \ - $(if $(iHAS_COMPILER_OPT),$(if $(filter -Xsize-opt,$(iHAS_COMPILER_OPT)),,${-D}PERF_OPT),) - -iCOMPILER_OPTIONS = $(or $(CONFIG_COMPILER_OPT),${vDEFAULT_COMPILER_OPT}) -iFINAL_COMPILER_OPTIONS = $(or $(OVERRIDE_COMPILER_OPT),$(iCOMPILER_OPTIONS)) -iINCLUDE_AUTOCONF = $(if ${INCLUDE_AUTOCONF},-i=${INCLUDE_AUTOCONF}, ) - -iDIAB_VXMICRO_CFLAGS ?= \ - $(iFINAL_COMPILER_OPTIONS) $(iDEFPERF_COMPILER_OPT) \ - -Xsemi-is-newline -Xkill-opt=0x800000 \ - ${iINCLUDE_AUTOCONF} - -iDIAB_VXMICRO_ASMFLAGS = ${iDEFPERF_COMPILER_OPT} -W a,-Xsemi-is-newline -W a,-Xlabel-colon -W a,-g ${iINCLUDE_AUTOCONF} - -# -# Ignore the following diagnostic messages -# -# #1643 - narrowing or signed-to-unsigned type conversion found: int to -# unsigned short/char. This warning is generated in several VxMicro modules. -# Each case has been determined to not be a problem. -# -# #2273 - suspicious truncation of a 32-bit value when assigned to a 64-bit -# integral type (potential portability problem). -# -# #4193 - zero used for undefined preprocessing macro. -# -# #4951 - return type of main must be an int. In VxMicro, the return value -# from main() is ignored. As such, its return value in the sample projects -# has been set to 'void'. -# -# #5318 - function declared with "noreturn" does return. The DIAB compiler -# can not properly detect that many places in the VxMicro code are unreachable -# and consequently those routines might not legitimately return. -# -# #5387 - explicit conversion of a 64-bit integral type to a smaller integral -# type (potential portability problem). Disabled as this warning occurs when -# the variable is explicitly typecasted. -# -# #5388 - conversion from pointer to integral type has potential portability -# problem. If not disabled, this warning is generated when a pointer is -# converted to an integer even if it was explicitly typecasted. -iDIAB_IGNORE_CFLAGS ?= 1643,2273,4193,4951,5318,5387,5388 - -# generic flags -iDIAB_GENERIC_CFLAGS ?= ${-c} ${-g} ${iDIAB_VXMICRO_CFLAGS} -ei${iDIAB_IGNORE_CFLAGS} -iDIAB_GENERIC_ASMFLAGS ?= ${-c} ${-g} ${iDIAB_VXMICRO_ASMFLAGS} -iDIAB_GENERIC_LFLAGS ?= -X -N ${iDIAB_VXMICRO_LFLAGS} -Xrescan-libraries -Xrescan-restart -Xemulate-gnu-vma-lma -iDIAB_GENERIC_ARFLAGS ?= cr ${iDIAB_VXMICRO_ARFLAGS} - -# generic and version-specific -iDIAB_BASE_CFLAGS ?= ${iDIAB_GENERIC_CFLAGS} ${iDIAB_${vDIAB_VER}_CFLAGS} -iDIAB_BASE_ASMFLAGS ?= ${iDIAB_GENERIC_ASMFLAGS} ${iDIAB_${vDIAB_VER}_ASMFLAGS} -iDIAB_BASE_LFLAGS ?= ${iDIAB_GENERIC_LFLAGS} ${iDIAB_${vDIAB_VER}_LFLAGS} -iDIAB_BASE_ARFLAGS ?= ${iDIAB_GENERIC_ARFLAGS} ${iDIAB_${vDIAB_VER}_ARFLAGS} - -# architecture/CPU-specific -iDIAB_MACH_CFLAGS ?= ${iDIAB_${vARCH}_CFLAGS} ${iDIAB_${vCPU}_CFLAGS} -iDIAB_MACH_ASMFLAGS ?= ${iDIAB_${vARCH}_ASMFLAGS} ${iDIAB_${vCPU}_ASMFLAGS} -iDIAB_MACH_LFLAGS ?= ${iDIAB_${vARCH}_LFLAGS} ${iDIAB_${vCPU}_LFLAGS} -iDIAB_MACH_ARFLAGS ?= ${iDIAB_${vARCH}_ARFLAGS} ${iDIAB_${vCPU}_ARFLAGS} - -# only set if user did not set his own -CFLAGS ?= ${iDIAB_BASE_CFLAGS} ${iDIAB_MACH_CFLAGS} ${vCUSTOM_TARGET_DEFS} -ASMFLAGS ?= ${iDIAB_BASE_ASMFLAGS} ${iDIAB_MACH_ASMFLAGS} ${vCUSTOM_TARGET_DEFS} -LFLAGS ?= ${iDIAB_BASE_LFLAGS} ${iDIAB_MACH_LFLAGS} -ARFLAGS ?= ${iDIAB_BASE_ARFLAGS} ${iDIAB_MACH_ARFLAGS} - -# always add extra flags from user and necessary flags -CFLAGS += ${iCTX_CFLAGS} ${EXTRA_CFLAGS} ${iCC_C99} ${STDLIB_CFLAGS} -ASMFLAGS += ${iCTX_ASMFLAGS} ${EXTRA_ASMFLAGS} -LFLAGS += ${iCTX_LFLAGS} ${EXTRA_LFLAGS} -ARFLAGS += ${iCTX_ARFLAGS} ${EXTRA_ARFLAGS} diff --git a/make/vxmicro/make/target/toolchain/diab/defs.kernel-bin b/make/vxmicro/make/target/toolchain/diab/defs.kernel-bin deleted file mode 100644 index feaeaa75aff..00000000000 --- a/make/vxmicro/make/target/toolchain/diab/defs.kernel-bin +++ /dev/null @@ -1,21 +0,0 @@ -# defs.kernel-bin - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -# rules for running preprocessor on linker command file -iLINKER_CMD_OPT = $(strip \ - -undef ${iPP_OPT} \ - ${iPP_NOLINENO} \ - ${-D}VXMICRO_ARCH_${vARCH} \ - ${-D}${iLINKER_CMD_TOOL} \ -) - -iLINKER_CMD_INC = ${-I}${vKLIB_DIR}/include ${-I}${vBASE}/include -iFINAL_LINKER_CMD = ${vOUT_DIR}/$(notdir ${LINKER_CMD}) - -iUSR = $(if $(strip $(filter %.${usr},$^)),$(filter %.${usr},$^),${HOS_DEVNULL_R}) -iMEM = $(if $(strip $(filter %.${mem},$^)),$(filter %.${mem},$^),${HOS_DEVNULL_R}) diff --git a/make/vxmicro/make/target/toolchain/diab/defs.offsets b/make/vxmicro/make/target/toolchain/diab/defs.offsets deleted file mode 100644 index 0b068cf70fe..00000000000 --- a/make/vxmicro/make/target/toolchain/diab/defs.offsets +++ /dev/null @@ -1,13 +0,0 @@ -# defs.offsets - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -iOFFSETS_CFLAGS = $(strip \ - ${CFLAGS} \ - $(foreach path,${iOFFSETS_INC},${-I} ${path}) \ - ${iTC_SYSINC} \ -) diff --git a/make/vxmicro/make/target/toolchain/diab/defs.target b/make/vxmicro/make/target/toolchain/diab/defs.target deleted file mode 100644 index 6c13fc25f55..00000000000 --- a/make/vxmicro/make/target/toolchain/diab/defs.target +++ /dev/null @@ -1,9 +0,0 @@ -# defs.target - build system - -# Copyright (c) 2014 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -include ${iMAKE_DIAB}/arch/${vARCH}/defs.target diff --git a/make/vxmicro/make/target/toolchain/diab/rules.diab b/make/vxmicro/make/target/toolchain/diab/rules.diab deleted file mode 100644 index d690e70a496..00000000000 --- a/make/vxmicro/make/target/toolchain/diab/rules.diab +++ /dev/null @@ -1,12 +0,0 @@ -# rules.diab - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -$(if $(vDIAB_VER),,$(error defs.diab must be included before this makefile fragment)) - -include ${vMAKE}/target/toolchain/common/rules.objects -sinclude ${iMAKE_DIAB}/${vDIAB_VER}/rules.diab diff --git a/make/vxmicro/make/target/toolchain/diab/rules.kernel-bin b/make/vxmicro/make/target/toolchain/diab/rules.kernel-bin deleted file mode 100644 index 87586b784ff..00000000000 --- a/make/vxmicro/make/target/toolchain/diab/rules.kernel-bin +++ /dev/null @@ -1,66 +0,0 @@ -# rules.kernel-bin - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -# kernel binary rules -# Note the use of echo not HOS_Echo to generate forward slashes even on Windows - -include ${vMAKE}/target/toolchain/diab/defs.kernel-bin - -iKENTRY_y = __kphys -iKENTRY_ = __start -iKENTRY = ${iKENTRY_${CONFIG_MM_POMS}} - -${vOUT_DIR}/%.${lnk}: ${iDEPEND_ON_MAKEFILES} | $$(dir $$@).dir - -$q${HOS_Echo} '[${vTOOL}] Preparing [$(notdir $@)]' - $qecho $(foreach flag,${LFLAGS},$(flag) ) >> ${vOUT_DIR}/lflags - $qecho -Bstatic -e ${iKENTRY} ${iISA} >> ${vOUT_DIR}/lflags -# $qecho -Wl,-Map,${vOUT_DIR}/$*.map >> ${vOUT_DIR}/lflags -ifneq ($(strip ${iLTO}),) - $qecho {$iLTO} >> ${vOUT_DIR}/lflags -endif - $qecho -u _OffsetAbsSyms >> ${vOUT_DIR}/lflags - $qecho -u _ConfigAbsSyms >> ${vOUT_DIR}/lflags -ifneq ($(strip ${vARCH_UNDEF_SYMS}),) - $qecho $(foreach sym,${vARCH_UNDEF_SYMS},-u ${sym} ) >> ${vOUT_DIR}/lflags -endif - $qecho $(foreach path,${LIB_INCLUDE_DIR},-L $(subst \,/,${path}) ) >> ${vOUT_DIR}/lflags - $qecho $(foreach alib,${ALL_LIBS},-l${alib}) >> ${vOUT_DIR}/lflags - $qecho -lg >> ${vOUT_DIR}/lflags - $qecho ${vKLIB_DIR}/offsets.$o >> ${vOUT_DIR}/lflags - $q$(HOS_Cat3Files) ${vOUT_DIR}/lflags ${iUSR} ${iMEM} $@ > ${HOS_DEVNULL_W} - -$q${HOS_DeleteFiles} ${vOUT_DIR}/lflags - -# rule to generate the final linker script (pre-processed) -${iFINAL_LINKER_CMD}: ${LINKER_CMD} ${iOFFSETS_HDR} | $$(dir $$@).dir - $q${vPP} ${iLINKER_CMD_OPT} ${iLINKER_CMD_INC} $< -o $@ - -# rule to make elf files - -%.${elf}: ${vOUT_DIR}/$$(notdir $$*).${lnk} ${iBUILDSPEC} ${iFINAL_LINKER_CMD} | $$(dir $$@).dir - -@${HOS_Echo} '[${vTOOL}] Linking [$(notdir $@)]' - $q${vLD} -o $@ -@@$(filter %.${lnk},$^) $(filter %.$o,$^) ${iFINAL_LINKER_CMD} - $(call idtInTxt) -ifeq ($(VXMICRO_HOST_OS),win32) - $q$(HOS_CopyFile) $(HOS_Bin)/exeelf.exe $*.exe > ${HOS_DEVNULL_W} -endif - -iKERNEL_LINK_OC_OPT = $(strip \ - -S -O binary \ - -R .note -R .comment -R COMMON -R .eh_frame \ - ${vDIAB_ARCH_LINK_OC_OPT} \ -) - -# bin-from-elf rule -%.${bin}: %.${elf} | $$(dir $$@).dir - -@${HOS_Echo} '[${vTOOL}] Generating [$(notdir $@)]' - $q${vOC} ${iKERNEL_LINK_OC_OPT} ${EXTRA_OC_FLAGS} $< $@ - -# generate a stripped ELF file from an ELF image -%.${strip}: %.${elf} | $$(dir $$@).dir - -@${HOS_Echo} '[${vTOOL}] Generating [$(notdir $@)]' - $q${vSTRIP} -s -o $@ $< diff --git a/make/vxmicro/make/target/toolchain/gcc/defs.gcc.x86-win32 b/make/vxmicro/make/target/toolchain/gcc/defs.gcc.x86-win32 deleted file mode 100644 index 694f0f98309..00000000000 --- a/make/vxmicro/make/target/toolchain/gcc/defs.gcc.x86-win32 +++ /dev/null @@ -1,34 +0,0 @@ -# defs.gcc.x86-win32 - build system - -# Copyright (c) 2013-2014 Wind River Systems, Inc. - -# The right to copy, distribute, modify or otherwise make use -# of this software may be licensed only pursuant to the terms -# of an applicable Wind River license agreement. - -iGCC_EXE_TEST ?= $(iGCC_TARGET)-gcc.exe - -# Code Sourcery compiler installation can be under either "Program Files" or -# "Program Files (x86)" depending if the version of Windows is 32/64-bit -# On 32-bit, "Program Files" is Progra~1; on 64-bit, "Program Files (x86)" is -# Progra~2. - -iGCC_DIR__USR ?= $(strip $(subst \,/,${VXMICRO_GCC_DIR})) -iGCC_DIR__PF1 ?= $(subst \,/,C:\Progra~1\${iGCC_DEFAULT_SUBDIR}) -iGCC_DIR__PF2 ?= $(subst \,/,C:\Progra~2\${iGCC_DEFAULT_SUBDIR}) -iGCC_DIR_CUSTOM__PF1 ?= $(subst \,/,C:\Progra~1\${iGCC_CUSTOM_DIR}) -iGCC_DIR_CUSTOM__PF2 ?= $(subst \,/,C:\Progra~2\${iGCC_CUSTOM_DIR}) - -iGCC_EXE__USR ?= ${iGCC_DIR__USR}/bin/${iGCC_EXE_TEST} -iGCC_EXE__PF1 ?= ${iGCC_DIR__PF1}/bin/${iGCC_EXE_TEST} -iGCC_EXE__PF2 ?= ${iGCC_DIR__PF2}/bin/${iGCC_EXE_TEST} -iGCC_EXE_CUSTOM__PF1 ?= ${iGCC_DIR_CUSTOM__PF1}/bin/${iGCC_EXE_TEST} -iGCC_EXE_CUSTOM__PF2 ?= ${iGCC_DIR_CUSTOM__PF2}/bin/${iGCC_EXE_TEST} - -iGCC_DIR_USR ?= $(if $(findstring ${iGCC_EXE_TEST},$(wildcard ${iGCC_EXE__USR})),${iGCC_DIR__USR},) -iGCC_DIR_PF1 ?= $(if $(findstring ${iGCC_EXE_TEST},$(wildcard ${iGCC_EXE__PF1})),${iGCC_DIR__PF1},) -iGCC_DIR_PF2 ?= $(if $(findstring ${iGCC_EXE_TEST},$(wildcard ${iGCC_EXE__PF2})),${iGCC_DIR__PF2},) -iGCC_DIR_CUSTOM_PF1 ?= $(if $(findstring ${iGCC_EXE_TEST},$(wildcard ${iGCC_EXE_CUSTOM__PF1})),${iGCC_DIR_CUSTOM__PF1},) -iGCC_DIR_CUSTOM_PF2 ?= $(if $(findstring ${iGCC_EXE_TEST},$(wildcard ${iGCC_EXE_CUSTOM__PF2})),${iGCC_DIR_CUSTOM__PF2},) - -iGCC_DIR ?= $(or ${iGCC_DIR_CUSTOM_PF1},${iGCC_DIR_CUSTOM_PF2},${iGCC_DIR_USR},${iGCC_DIR_PF1},${iGCC_DIR_PF2}) diff --git a/make/vxmicro/target/include/linker-tool-diab.h b/make/vxmicro/target/include/linker-tool-diab.h deleted file mode 100644 index 180d766911e..00000000000 --- a/make/vxmicro/target/include/linker-tool-diab.h +++ /dev/null @@ -1,71 +0,0 @@ -/* linker-tool-diab.h - diab toolchain linker defs */ - -/* - * Copyright (c) 2013-2014, Wind River Systems, Inc. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1) Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * - * 2) Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * 3) Neither the name of Wind River Systems nor the names of its contributors - * may be used to endorse or promote products derived from this software without - * specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - - -/* -DESCRIPTION -This header file defines the necessary macros used by the linker script for -use with the Diab linker. -*/ - -#ifndef __LINKER_TOOL_DIAB_H -#define __LINKER_TOOL_DIAB_H - -/* see linker-tool-gcc.h for description of these macros */ - -#define GROUP_START(where) GROUP : { -#define GROUP_END(where) } > where - -#define GROUP_LINK_IN(where) - -#define GROUP_FOLLOWS_AT(where) - -#define SECTION_PROLOGUE(name, options, align) \ - name options align : - -#define SECTION_AT_PROLOGUE(name, options, align, addr) \ - name LOAD(addr) options align : - -/* GCC-isms */ -#define LONG(x) STORE(x, 4) -#define LENGTH(x) SIZEOF(x) - -/* - * Diab linker does not drop empty sections, so we have to make sure the - * pgalign section is not aligned on 4K when the MMU is off, and thus the - * section is unused. - */ - #define PGALIGN_ALIGN(x) - -#define COMMON_SYMBOLS *[COMMON] - -#endif /* !__LINKER_TOOL_DIAB_H */