mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-10-02 14:23:19 +08:00
[bsp][nxp][imx] move imx BSPs into nxp/imx folder
This commit is contained in:
@@ -197,16 +197,14 @@ jobs:
|
||||
- "nxp/lpc/lpc54114-lite"
|
||||
- "nxp/lpc/lpc176x"
|
||||
#- "nxp/lpc/lpc43xx/M4"
|
||||
- "imx6sx/cortex-a9"
|
||||
- "imxrt/imxrt1052-atk-commander"
|
||||
- "imxrt/imxrt1052-fire-pro"
|
||||
- "imxrt/imxrt1052-nxp-evk"
|
||||
- "imxrt/imxrt1052-seeed-ArchMix"
|
||||
- "imxrt/imxrt1060-nxp-evk"
|
||||
- "imxrt/imxrt1064-nxp-evk"
|
||||
- "imxrt/imxrt1021-nxp-evk"
|
||||
- "frdm-k64f"
|
||||
- "xplorer4330/M4"
|
||||
- "nxp/imx/imx6sx/cortex-a9"
|
||||
- "nxp/imx/imxrt/imxrt1052-atk-commander"
|
||||
- "nxp/imx/imxrt/imxrt1052-fire-pro"
|
||||
- "nxp/imx/imxrt/imxrt1052-nxp-evk"
|
||||
- "nxp/imx/imxrt/imxrt1052-seeed-ArchMix"
|
||||
- "nxp/imx/imxrt/imxrt1060-nxp-evk"
|
||||
- "nxp/imx/imxrt/imxrt1064-nxp-evk"
|
||||
- "nxp/imx/imxrt/imxrt1021-nxp-evk"
|
||||
- "nxp/mcx/mcxn/frdm-mcxn947"
|
||||
- "nxp/mcx/mcxa/frdm-mcxa153"
|
||||
- "renesas/ebf_qi_min_6m5"
|
||||
@@ -219,6 +217,8 @@ jobs:
|
||||
- "renesas/ra8m1-ek"
|
||||
- "renesas/ra8d1-ek"
|
||||
- "renesas/ra8d1-vision-board"
|
||||
- "frdm-k64f"
|
||||
- "xplorer4330/M4"
|
||||
- RTT_BSP: "gd32_n32_apm32"
|
||||
RTT_TOOL_CHAIN: "sourcery-arm"
|
||||
SUB_RTT_BSP:
|
||||
|
||||
@@ -1,195 +0,0 @@
|
||||
#-------------------------------------------------------------------------------
|
||||
# Copyright (c) 2012 Freescale Semiconductor, Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification,
|
||||
# are permitted provided that the following conditions are met:
|
||||
#
|
||||
# o Redistributions of source code must retain the above copyright notice, this list
|
||||
# of conditions and the following disclaimer.
|
||||
#
|
||||
# o 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.
|
||||
#
|
||||
# o Neither the name of Freescale Semiconductor, Inc. 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.
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Root paths
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
# At this point, the path to this makefile was just appended to MAKEFILE_LIST. We make
|
||||
# use of this to get the root directory of the SDK. This variable is exported to child
|
||||
# instances of make.
|
||||
this_makefile := $(firstword $(MAKEFILE_LIST))
|
||||
export SDK_ROOT := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))../)
|
||||
|
||||
# The rest of the paths are defined in a separate makefile for easy access.
|
||||
include $(SDK_ROOT)/mk/paths.mk
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Utility
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
# Kludge to create a variable equal to a single space.
|
||||
empty :=
|
||||
space := $(empty) $(empty)
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# OS
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
# Get the OS name. Known values are "Linux", "CYGWIN_NT-5.1", and "Darwin".
|
||||
os_name := $(shell uname -s)
|
||||
|
||||
# Set to 1 if running on cygwin.
|
||||
is_cygwin := $(and $(findstring CYGWIN,$(os_name)),1)
|
||||
|
||||
# Set to 1 if running on redhat.
|
||||
is_redhat := $(shell if [ -f /etc/redhat-release ]; then echo 1 ; fi)
|
||||
|
||||
# Disable parallel builds for cygwin since they hang.
|
||||
ifeq "$(is_cygwin)" "1"
|
||||
.NOTPARALLEL:
|
||||
endif
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Logging options
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
# Enable color output by default.
|
||||
BUILD_SDK_COLOR ?= 1
|
||||
|
||||
# Normally, commands in recipes are prefixed with '@' so the command itself
|
||||
# is not echoed by make. But if VERBOSE is defined (set to anything non-empty),
|
||||
# then the '@' is removed from recipes. The 'at' variable is used to control
|
||||
# this. Similarly, 'silent_make' is used to pass the -s option to child make
|
||||
# invocations when not in VERBOSE mode.
|
||||
ifeq "$(VERBOSE)" "1"
|
||||
at :=
|
||||
silent_make :=
|
||||
else
|
||||
at := @
|
||||
silent_make := -s
|
||||
endif
|
||||
|
||||
# These colors must be printed with the printf command. echo won't handle the
|
||||
# escape sequences.
|
||||
color_default = \033[00m
|
||||
color_bold = \033[01m
|
||||
color_red = \033[31m
|
||||
color_green = \033[32m
|
||||
color_yellow = \033[33m
|
||||
color_blue = \033[34m
|
||||
color_magenta = \033[35m
|
||||
color_cyan = \033[36m
|
||||
color_orange = \033[38;5;172m
|
||||
color_light_blue = \033[38;5;039m
|
||||
color_gray = \033[38;5;008m
|
||||
color_purple = \033[38;5;097m
|
||||
|
||||
ifeq "$(BUILD_SDK_COLOR)" "1"
|
||||
color_build := $(color_light_blue)
|
||||
color_c := $(color_green)
|
||||
color_cxx := $(color_green)
|
||||
color_cpp := $(color_orange)
|
||||
color_asm := $(color_magenta)
|
||||
color_ar := $(color_yellow)
|
||||
color_link := $(color_purple)
|
||||
endif
|
||||
|
||||
# Used in printmessage if the color args are not present.
|
||||
color_ :=
|
||||
|
||||
# Use in recipes to print color messages if printing to a terminal. If
|
||||
# BUILD_SDK_COLOR is not set to 1, this reverts to a simple uncolorized printf.
|
||||
# A newline is added to the end of the printed message.
|
||||
#
|
||||
# Arguments:
|
||||
# 1 - name of the color variable (see above), minus the "color_" prefix
|
||||
# 2 - first colorized part of the message
|
||||
# 3 - first uncolorized part of the message
|
||||
# 4 - color name for second colorized message
|
||||
# 5 - second colorized message
|
||||
# 6 - second uncolorized part of the message
|
||||
# 7 - uncolorized prefix on the whole line; this is last because it is expected to be used rarely
|
||||
#
|
||||
# All arguments are optional.
|
||||
#
|
||||
# Use like:
|
||||
# $(call printmessage,cyan,Building, remainder of the message...)
|
||||
ifeq "$(BUILD_SDK_COLOR)" "1"
|
||||
define printmessage
|
||||
if [ -t 1 ]; then printf "$(7)$(color_$(1))$(2)$(color_default)$(3)$(color_$(4))$(5)$(color_default)$(6)\n" ; \
|
||||
else printf "$(7)$(2)$(3)$(5)$(6)\n" ; fi
|
||||
endef
|
||||
else
|
||||
define printmessage
|
||||
printf "$(7)$(2)$(3)$(5)$(6)\n" ; fi
|
||||
endef
|
||||
endif
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Compiler and tools
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
# For all the paths built below, we assume that the Mentor CodeSourcery release of gcc is
|
||||
# being used. Other distributions of gcc may work, but have not been tested.
|
||||
|
||||
# Set compiler version defaults.
|
||||
CROSS_COMPILE = arm-none-eabi-
|
||||
|
||||
# Strip off the trailing '-', resulting in arm-none-eabi
|
||||
CROSS_COMPILE_STRIP := $(CROSS_COMPILE:%-=%)
|
||||
|
||||
# Build tool names.
|
||||
CC = $(CROSS_COMPILE)gcc
|
||||
CXX = $(CROSS_COMPILE)g++
|
||||
LD = $(CROSS_COMPILE)ld
|
||||
AS = $(CROSS_COMPILE)as
|
||||
AR = $(CROSS_COMPILE)ar
|
||||
OBJCOPY = $(CROSS_COMPILE)objcopy
|
||||
|
||||
# Ask the compiler for its version
|
||||
CC_VERSION := $(shell $(CC) -dumpversion)
|
||||
|
||||
# Get the compiler directory. We have to go through this sillyness in order to support
|
||||
# paths with spaces in their names, such as under Cygwin where the CodeSourcery compiler
|
||||
# is normally installed under C:\Program Files\.
|
||||
CC_PREFIX := $(shell dirname "`which $(CC)`")/..
|
||||
|
||||
# Standard library include paths.
|
||||
LIBGCC_LDPATH = $(CC_PREFIX)/lib/gcc/$(CROSS_COMPILE_STRIP)/$(CC_VERSION)/$(CC_LIB_POST)
|
||||
LIBC_LDPATH = $(CC_PREFIX)/$(CROSS_COMPILE_STRIP)/lib/$(CC_LIB_POST)
|
||||
|
||||
# System header file include paths.
|
||||
CC_INCLUDE = $(CC_PREFIX)/lib/gcc/$(CROSS_COMPILE_STRIP)/$(CC_VERSION)/include
|
||||
CC_INCLUDE_FIXED = $(CC_PREFIX)/lib/gcc/$(CROSS_COMPILE_STRIP)/$(CC_VERSION)/include-fixed
|
||||
LIBC_INCLUDE = $(CC_PREFIX)/$(CROSS_COMPILE_STRIP)/include
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Target and board configuration
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
include $(SDK_ROOT)/mk/config.mk
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Compiler flags
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
include $(SDK_ROOT)/mk/flags.mk
|
||||
|
||||
@@ -1,99 +0,0 @@
|
||||
#-------------------------------------------------------------------------------
|
||||
# Copyright (c) 2012 Freescale Semiconductor, Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification,
|
||||
# are permitted provided that the following conditions are met:
|
||||
#
|
||||
# o Redistributions of source code must retain the above copyright notice, this list
|
||||
# of conditions and the following disclaimer.
|
||||
#
|
||||
# o 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.
|
||||
#
|
||||
# o Neither the name of Freescale Semiconductor, Inc. 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.
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Target and board configuration
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
# Handle lower-case versions of the config variables. These are really meant to ease
|
||||
# manual invocation of make via the command line.
|
||||
ifdef target
|
||||
TARGET = $(target)
|
||||
endif
|
||||
ifdef board
|
||||
BOARD = $(board)
|
||||
endif
|
||||
ifdef boardrev
|
||||
BOARD_REVISION = $(boardrev)
|
||||
endif
|
||||
|
||||
# Target
|
||||
ifeq "$(TARGET)" "mx6dq"
|
||||
DEFINES += -DCHIP_MX6DQ
|
||||
CPU = cortex-a9
|
||||
else ifeq "$(TARGET)" "mx6sdl"
|
||||
DEFINES += -DCHIP_MX6SDL
|
||||
CPU = cortex-a9
|
||||
else ifeq "$(TARGET)" "mx6sl"
|
||||
DEFINES += -DCHIP_MX6SL
|
||||
CPU = cortex-a9
|
||||
else ifdef TARGET
|
||||
$(error Unknown target $(TARGET))
|
||||
endif
|
||||
|
||||
# Board
|
||||
ifeq "$(BOARD)" "evb"
|
||||
DEFINES += -DBOARD_EVB
|
||||
else ifeq "$(BOARD)" "evk"
|
||||
DEFINES += -DBOARD_EVK
|
||||
else ifeq "$(BOARD)" "sabre_ai"
|
||||
DEFINES += -DBOARD_SABRE_AI
|
||||
else ifeq "$(BOARD)" "smart_device"
|
||||
DEFINES += -DBOARD_SMART_DEVICE
|
||||
else ifdef BOARD
|
||||
$(error Unknown board $(BOARD))
|
||||
endif
|
||||
|
||||
# Board revision, defaults to a if not specified.
|
||||
ifndef BOARD_REVISION
|
||||
BOARD_REVISION = a
|
||||
BOARD_REVISION_IS_DEFAULT = yes
|
||||
endif
|
||||
ifeq "$(BOARD_REVISION)" "c"
|
||||
DEFINES +=-DBOARD_REV_C
|
||||
else ifeq "$(BOARD_REVISION)" "b"
|
||||
DEFINES +=-DBOARD_REV_B
|
||||
else ifeq "$(BOARD_REVISION)" "a"
|
||||
DEFINES +=-DBOARD_REV_A
|
||||
else ifdef BOARD_REVISION
|
||||
$(error Unknown board revision $(BOARD_REVISION))
|
||||
endif
|
||||
|
||||
# Only define this variable if a board is specified.
|
||||
ifdef BOARD
|
||||
BOARD_WITH_REV := $(BOARD)_rev_$(BOARD_REVISION)
|
||||
endif
|
||||
|
||||
# Set this define to 1 if we want to build thumb binaries, or 0 for ARM.
|
||||
USE_THUMB ?= 0
|
||||
|
||||
# Enable debug build by default.
|
||||
DEBUG ?= 1
|
||||
|
||||
@@ -1,157 +0,0 @@
|
||||
#-------------------------------------------------------------------------------
|
||||
# Copyright (c) 2012 Freescale Semiconductor, Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification,
|
||||
# are permitted provided that the following conditions are met:
|
||||
#
|
||||
# o Redistributions of source code must retain the above copyright notice, this list
|
||||
# of conditions and the following disclaimer.
|
||||
#
|
||||
# o 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.
|
||||
#
|
||||
# o Neither the name of Freescale Semiconductor, Inc. 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.
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Compiler flags
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
# Generate debug information.
|
||||
# Add '-O0' at the end of this line to turn off optimizations. This can make
|
||||
# debugging (especially asm) much easier but it greatly increases the size of
|
||||
# the code and reduces performance.
|
||||
CDEBUG = -g -O0 -DDEBUG=1
|
||||
|
||||
# Turns on all -O2 except size increasers.
|
||||
# Any CDEBUG settings will come after this and can be used to override.
|
||||
COMMON_FLAGS += -Os
|
||||
COMMON_FLAGS += -mno-unaligned-access
|
||||
|
||||
# Turn on dead code elimination.
|
||||
COMMON_FLAGS += -fdce
|
||||
|
||||
# Enables all warnings and treat them as errors except those preceded with -Wno-
|
||||
C_FLAGS_WARNINGS = -Wall -Werror -Wno-uninitialized -Wno-strict-aliasing -Wno-unused-function -fdiagnostics-show-option
|
||||
C_FLAGS_WARNINGS += -Wno-unused-but-set-variable -Wno-format
|
||||
|
||||
# Turn on all warnings.
|
||||
COMMON_FLAGS += $(C_FLAGS_WARNINGS)
|
||||
|
||||
# Don't use common symbols. This is usually done in kernels. Makes
|
||||
# code size slightly larger and increases performance.
|
||||
COMMON_FLAGS += -fno-common
|
||||
|
||||
# Use a freestanding build environment. Standard for kernels, implies
|
||||
# std library may not exist.
|
||||
COMMON_FLAGS += -ffreestanding -fno-builtin
|
||||
|
||||
# Don't ever link anything against shared libs.
|
||||
COMMON_FLAGS += -static
|
||||
|
||||
# Don't link against the system std library or compiler libraries.
|
||||
# Everything we link against MUST be specified with -I/-L explicitly.
|
||||
#COMMON_FLAGS += -nostdinc -nostdlib
|
||||
|
||||
# Set the C standard to C99 with GNU extensions.
|
||||
# Use traditional GNU inline function semantics.
|
||||
C99_FLAGS = -std=gnu99 -fgnu89-inline
|
||||
|
||||
# Generate code specifically for ARMv7-A, cortex-ax CPU.
|
||||
# Use the ARM Procedure Call Standard.
|
||||
ARM_FLAGS = -march=armv7-a -mcpu=$(CPU) -mtune=$(CPU) -mapcs
|
||||
|
||||
ifeq "$(USE_THUMB)" "1"
|
||||
# Generate thumb2 instructions (mixed 16/32-bit).
|
||||
ARM_FLAGS += -mthumb
|
||||
# Allow mixed ARM and thumb code. All C code will generate thumb instructions
|
||||
# but there is hand-written asm that requires ARM.
|
||||
ARM_FLAGS += -mthumb-interwork
|
||||
# Indicate that we're using thumb.
|
||||
ARM_FLAGS += -DUSE_THUMB
|
||||
CC_LIB_POST = thumb2
|
||||
else
|
||||
# Generate ARM-only code.
|
||||
ARM_FLAGS += -marm
|
||||
CC_LIB_POST =
|
||||
endif
|
||||
|
||||
# Use NEON SIMD instructions for floating point. Alternatively can specify
|
||||
# VFP which gives IEEE 754-compliance (unlike NEON which can have errors).
|
||||
ARM_FLAGS += -mfpu=neon
|
||||
# Specify these options with NEON.
|
||||
ARM_FLAGS += -ftree-vectorize
|
||||
ARM_FLAGS += -fno-math-errno
|
||||
ARM_FLAGS += -funsafe-math-optimizations
|
||||
ARM_FLAGS += -fno-signed-zeros
|
||||
# Use float-abi=softfp for soft floating point api with HW instructions.
|
||||
# Alternatively, float-abi=hard for hw float instructions and pass float args in float regs.
|
||||
ARM_FLAGS += -mfloat-abi=softfp
|
||||
|
||||
# Build common flags shared by C and C++.
|
||||
COMMON_FLAGS += $(ARM_FLAGS)
|
||||
|
||||
# Add debug flags for debug builds.
|
||||
ifeq "$(DEBUG)" "1"
|
||||
COMMON_FLAGS += $(CDEBUG)
|
||||
endif
|
||||
|
||||
# C flags. Set C99 mode.
|
||||
CFLAGS += $(COMMON_FLAGS)
|
||||
CFLAGS += $(C99_FLAGS)
|
||||
|
||||
# C++ flags. Disable exceptions and RTTI.
|
||||
CXXFLAGS += $(COMMON_FLAGS)
|
||||
CXXFLAGS += -fno-exceptions -fno-rtti
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Include paths
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
# Link against libc and libgcc. Specify paths to libc in newlib build
|
||||
# directory. Need to specify libgcc since our linker does not link
|
||||
# against anything, even compiler libs because of -nostdlib.
|
||||
LDADD += -lm -lstdc++ -lc -lgcc
|
||||
|
||||
# These include paths have to be quoted because they may contain spaces,
|
||||
# particularly under cygwin.
|
||||
LDINC += -L '$(LIBGCC_LDPATH)' -L '$(LIBC_LDPATH)'
|
||||
|
||||
# Indicate gcc and newlib std includes as -isystem so gcc tags and
|
||||
# treats them as system directories.
|
||||
SYSTEM_INC = \
|
||||
-isystem '$(CC_INCLUDE)' \
|
||||
-isystem '$(CC_INCLUDE_FIXED)' \
|
||||
-isystem '$(LIBC_INCLUDE)'
|
||||
|
||||
INCLUDES += \
|
||||
-I$(SDK_ROOT)/sdk \
|
||||
-I$(SDK_ROOT)/sdk/include \
|
||||
-I$(SDK_ROOT)/sdk/include/$(TARGET) \
|
||||
-I$(SDK_ROOT)/sdk/drivers \
|
||||
-I$(SDK_ROOT)/sdk/common \
|
||||
-I$(SDK_ROOT)/sdk/core \
|
||||
-I$(SDK_ROOT)/sdk/utility \
|
||||
-I$(BOARD_ROOT) \
|
||||
-I$(SDK_ROOT)/board/$(TARGET)/common \
|
||||
-I$(SDK_ROOT)/board/common \
|
||||
-I$(LWIP_ROOT)/lwip/src/include \
|
||||
-I$(LWIP_ROOT)/lwip/src/include/ipv4 \
|
||||
-I$(LWIP_ROOT)/lwip/src/include/ipv6 \
|
||||
-I$(LWIP_ROOT)/mx6/include
|
||||
|
||||
@@ -1,74 +0,0 @@
|
||||
#-------------------------------------------------------------------------------
|
||||
# Copyright (c) 2012 Freescale Semiconductor, Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification,
|
||||
# are permitted provided that the following conditions are met:
|
||||
#
|
||||
# o Redistributions of source code must retain the above copyright notice, this list
|
||||
# of conditions and the following disclaimer.
|
||||
#
|
||||
# o 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.
|
||||
#
|
||||
# o Neither the name of Freescale Semiconductor, Inc. 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.
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Root paths
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
# Build root directory paths.
|
||||
SDK_LIB_ROOT = $(SDK_ROOT)/sdk
|
||||
APPS_ROOT = $(SDK_ROOT)/apps
|
||||
BOARD_ROOT = $(SDK_ROOT)/board/$(TARGET)/$(BOARD)
|
||||
LWIP_ROOT = $(SDK_ROOT)/lwip
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Output file paths
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
# Build output directory paths.
|
||||
#
|
||||
# All output goes under the top-level 'output' directory. Libraries are not board-specific,
|
||||
# but apps are. Everything is chip-specific. Objects for both libs and apps are placed in
|
||||
# an 'obj' directory under either the app or lib output directory.
|
||||
#
|
||||
# Libs: output/<chip>/lib/lib<foo>.a
|
||||
# Lib objs: output/<chip>/lib/obj/<foo>/...
|
||||
#
|
||||
# Apps: output/<chip>/<app>/<board>/<app>.elf
|
||||
# App objs: output/<chip>/<app>/<board>/obj/...
|
||||
#
|
||||
OUTPUT_ROOT = $(SDK_ROOT)/output/$(TARGET)
|
||||
|
||||
LIBS_ROOT = $(OUTPUT_ROOT)/lib
|
||||
LIB_OBJS_ROOT = $(LIBS_ROOT)/obj/$(TARGET_LIB_NAME)
|
||||
|
||||
# Put app build products in their own dir.
|
||||
APP_OUTPUT_ROOT = $(OUTPUT_ROOT)/$(APP_NAME)/$(BOARD_WITH_REV)
|
||||
APP_OBJS_ROOT = $(APP_OUTPUT_ROOT)/obj
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Standard library paths
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
LIBSDK = $(LIBS_ROOT)/libsdk.a
|
||||
LIBBOARD = $(LIBS_ROOT)/libboard_$(BOARD_WITH_REV).a
|
||||
LIBLWIP = $(LIBS_ROOT)/liblwip.a
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<component_viewer schemaVersion="0.1" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="Component_Viewer.xsd">
|
||||
|
||||
<component name="EventRecorderStub" version="1.0.0"/> <!--name and version of the component-->
|
||||
<events>
|
||||
</events>
|
||||
|
||||
</component_viewer>
|
||||
@@ -1,16 +0,0 @@
|
||||
mainmenu "RT-Thread Configuration"
|
||||
|
||||
config RTT_DIR
|
||||
string
|
||||
option env="RTT_ROOT"
|
||||
default "../../.."
|
||||
|
||||
config PKGS_DIR
|
||||
string
|
||||
option env="PKGS_ROOT"
|
||||
default "packages"
|
||||
|
||||
source "$RTT_DIR/Kconfig"
|
||||
source "$PKGS_DIR/Kconfig"
|
||||
source "../libraries/Kconfig"
|
||||
source "board/Kconfig"
|
||||
@@ -1,16 +0,0 @@
|
||||
mainmenu "RT-Thread Configuration"
|
||||
|
||||
config RTT_DIR
|
||||
string
|
||||
option env="RTT_ROOT"
|
||||
default "../../.."
|
||||
|
||||
config PKGS_DIR
|
||||
string
|
||||
option env="PKGS_ROOT"
|
||||
default "packages"
|
||||
|
||||
source "$RTT_DIR/Kconfig"
|
||||
source "$PKGS_DIR/Kconfig"
|
||||
source "../libraries/Kconfig"
|
||||
source "board/Kconfig"
|
||||
@@ -1,16 +0,0 @@
|
||||
mainmenu "RT-Thread Configuration"
|
||||
|
||||
config RTT_DIR
|
||||
string
|
||||
option env="RTT_ROOT"
|
||||
default "../../.."
|
||||
|
||||
config PKGS_DIR
|
||||
string
|
||||
option env="PKGS_ROOT"
|
||||
default "packages"
|
||||
|
||||
source "$RTT_DIR/Kconfig"
|
||||
source "$PKGS_DIR/Kconfig"
|
||||
source "../libraries/Kconfig"
|
||||
source "board/Kconfig"
|
||||
@@ -1,16 +0,0 @@
|
||||
mainmenu "RT-Thread Configuration"
|
||||
|
||||
config RTT_DIR
|
||||
string
|
||||
option env="RTT_ROOT"
|
||||
default "../../.."
|
||||
|
||||
config PKGS_DIR
|
||||
string
|
||||
option env="PKGS_ROOT"
|
||||
default "packages"
|
||||
|
||||
source "$RTT_DIR/Kconfig"
|
||||
source "$PKGS_DIR/Kconfig"
|
||||
source "../libraries/Kconfig"
|
||||
source "board/Kconfig"
|
||||
@@ -1,16 +0,0 @@
|
||||
mainmenu "RT-Thread Configuration"
|
||||
|
||||
config RTT_DIR
|
||||
string
|
||||
option env="RTT_ROOT"
|
||||
default "../../.."
|
||||
|
||||
config PKGS_DIR
|
||||
string
|
||||
option env="PKGS_ROOT"
|
||||
default "packages"
|
||||
|
||||
source "$RTT_DIR/Kconfig"
|
||||
source "$PKGS_DIR/Kconfig"
|
||||
source "../libraries/Kconfig"
|
||||
source "board/Kconfig"
|
||||
@@ -1,16 +0,0 @@
|
||||
mainmenu "RT-Thread Configuration"
|
||||
|
||||
config RTT_DIR
|
||||
string
|
||||
option env="RTT_ROOT"
|
||||
default "../../.."
|
||||
|
||||
config PKGS_DIR
|
||||
string
|
||||
option env="PKGS_ROOT"
|
||||
default "packages"
|
||||
|
||||
source "$RTT_DIR/Kconfig"
|
||||
source "$PKGS_DIR/Kconfig"
|
||||
source "../libraries/Kconfig"
|
||||
source "board/Kconfig"
|
||||
@@ -8,10 +8,7 @@ config BSP_DIR
|
||||
config RTT_DIR
|
||||
string
|
||||
option env="RTT_ROOT"
|
||||
default "../../.."
|
||||
|
||||
# you can change the RTT_ROOT default "../.." to your rtthread_root,
|
||||
# example: default "F:/git_repositories/rt-thread"
|
||||
default "../../../../.."
|
||||
|
||||
config PKGS_DIR
|
||||
string
|
||||
@@ -5,7 +5,7 @@ import rtconfig
|
||||
if os.getenv('RTT_ROOT'):
|
||||
RTT_ROOT = os.getenv('RTT_ROOT')
|
||||
else:
|
||||
RTT_ROOT = os.path.join(os.getcwd(), '..', '..', '..')
|
||||
RTT_ROOT = os.path.join(os.getcwd(), '..', '..', '..', '..', '..')
|
||||
|
||||
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
|
||||
from building import *
|
||||
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user