Bladeren bron

[bsp][nxp][imx] move imx BSPs into nxp/imx folder

Meco Man 1 jaar geleden
bovenliggende
commit
2b7a4ea7a3
100 gewijzigde bestanden met toevoegingen van 12 en 894 verwijderingen
  1. 10 10
      .github/workflows/bsp_buildings.yml
  2. 0 195
      bsp/imx6sx/iMX6_Platform_SDK/mk/common.mk
  3. 0 99
      bsp/imx6sx/iMX6_Platform_SDK/mk/config.mk
  4. 0 157
      bsp/imx6sx/iMX6_Platform_SDK/mk/flags.mk
  5. 0 74
      bsp/imx6sx/iMX6_Platform_SDK/mk/paths.mk
  6. 0 249
      bsp/imx6sx/iMX6_Platform_SDK/mk/targets.mk
  7. 0 9
      bsp/imxrt/imxrt1052-fire-pro/EventRecorderStub.scvd
  8. 0 16
      bsp/imxrt/imxrt1052-seeed-ArchMix/Kconfig
  9. 0 16
      bsp/imxrt/imxrt1060-nxp-evk/Kconfig
  10. 0 16
      bsp/imxrt/imxrt1061-forlinx-OK1061-S/Kconfig
  11. 0 16
      bsp/imxrt/imxrt1064-nxp-evk/Kconfig
  12. 0 16
      bsp/imxrt/libraries/templates/imxrt1050xxx/Kconfig
  13. 0 16
      bsp/imxrt/libraries/templates/imxrt1064xxx/Kconfig
  14. 0 0
      bsp/nxp/imx/imx6sx/README.md
  15. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/.config
  16. 1 4
      bsp/nxp/imx/imx6sx/cortex-a9/Kconfig
  17. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/SConscript
  18. 1 1
      bsp/nxp/imx/imx6sx/cortex-a9/SConstruct
  19. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/applications/SConscript
  20. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/applications/main.c
  21. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/SConscript
  22. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/audmux_iomux_config.c
  23. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/ccm_iomux_config.c
  24. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/dcic_iomux_config.c
  25. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/ecspi1_iomux_config.c
  26. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/ecspi_iomux_config.c
  27. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/eim_iomux_config.c
  28. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/enet_iomux_config.c
  29. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/epit_iomux_config.c
  30. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/esai_iomux_config.c
  31. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/flexcan1_iomux_config.c
  32. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/flexcan2_iomux_config.c
  33. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/flexcan_iomux_config.c
  34. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/gpio1_iomux_config.c
  35. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/gpio2_iomux_config.c
  36. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/gpio4_iomux_config.c
  37. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/gpio5_iomux_config.c
  38. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/gpio6_iomux_config.c
  39. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/gpio_iomux_config.c
  40. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/gpmi_iomux_config.c
  41. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/i2c2_iomux_config.c
  42. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/i2c3_iomux_config.c
  43. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/i2c_iomux_config.c
  44. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/iomux_config.c
  45. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/ipu1_iomux_config.c
  46. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/ipu_iomux_config.c
  47. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/mlb_iomux_config.c
  48. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/mmdc_iomux_config.c
  49. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/pwm3_iomux_config.c
  50. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/pwm4_iomux_config.c
  51. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/pwm_iomux_config.c
  52. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/sjc_iomux_config.c
  53. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/spdif_iomux_config.c
  54. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/uart2_iomux_config.c
  55. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/uart3_iomux_config.c
  56. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/uart4_iomux_config.c
  57. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/uart_iomux_config.c
  58. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/usdhc1_iomux_config.c
  59. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/usdhc3_iomux_config.c
  60. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/usdhc_iomux_config.c
  61. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/wdog1_iomux_config.c
  62. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/board/wdog_iomux_config.c
  63. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/cpu/SConscript
  64. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/cpu/armv7.h
  65. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/cpu/context_gcc.S
  66. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/cpu/cortexA9_gcc.S
  67. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/cpu/cp15.h
  68. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/cpu/cp15_gcc.S
  69. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/cpu/cpu.c
  70. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/cpu/interrupt.c
  71. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/cpu/mmu.c
  72. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/cpu/pmu.c
  73. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/cpu/pmu.h
  74. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/cpu/stack.c
  75. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/cpu/start_gcc.S
  76. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/cpu/trap.c
  77. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/cpu/vector_gcc.S
  78. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/drivers/SConscript
  79. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/drivers/board.c
  80. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/drivers/board.h
  81. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/drivers/emac_drv.c
  82. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/drivers/emac_drv.h
  83. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/drivers/serial.c
  84. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/drivers/serial.h
  85. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/imx6.lds
  86. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/rtconfig.h
  87. 0 0
      bsp/nxp/imx/imx6sx/cortex-a9/rtconfig.py
  88. 0 0
      bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/Doxyfile
  89. 0 0
      bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/LICENSE.txt
  90. 0 0
      bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/Makefile
  91. 0 0
      bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/README.pdf
  92. 0 0
      bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/SConscript
  93. 0 0
      bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/apps/common/basic_sdk_app.ld.S
  94. 0 0
      bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/apps/common/ivt.c
  95. 0 0
      bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/apps/common/platform_init.c
  96. 0 0
      bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/apps/common/platform_init.h
  97. 0 0
      bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/apps/common/print_clock_info.c
  98. 0 0
      bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/apps/common/print_clock_info.h
  99. 0 0
      bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/apps/common/print_version.c
  100. 0 0
      bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/apps/common/print_version.h

+ 10 - 10
.github/workflows/bsp_buildings.yml

@@ -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:             

+ 0 - 195
bsp/imx6sx/iMX6_Platform_SDK/mk/common.mk

@@ -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
-

+ 0 - 99
bsp/imx6sx/iMX6_Platform_SDK/mk/config.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
-

+ 0 - 157
bsp/imx6sx/iMX6_Platform_SDK/mk/flags.mk

@@ -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
-

+ 0 - 74
bsp/imx6sx/iMX6_Platform_SDK/mk/paths.mk

@@ -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
-
-

+ 0 - 249
bsp/imx6sx/iMX6_Platform_SDK/mk/targets.mk

@@ -1,249 +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.
-#-------------------------------------------------------------------------------
-
-#-------------------------------------------------------------------------------
-# Sources and objects
-#-------------------------------------------------------------------------------
-
-# Select our object root depending on whether we're building an app or lib.
-ifneq "$(APP_NAME)" ""
-OBJS_ROOT = $(APP_OBJS_ROOT)
-else
-OBJS_ROOT = $(LIB_OBJS_ROOT)
-endif
-
-# Strip sources.
-SOURCES := $(strip $(SOURCES))
-
-# Convert sources list to absolute paths and root-relative paths.
-SOURCES_ABS := $(foreach s,$(SOURCES),$(abspath $(s)))
-SOURCES_REL := $(subst $(SDK_ROOT)/,,$(SOURCES_ABS))
-
-# Get a list of unique directories containing the source files.
-SOURCE_DIRS_ABS := $(sort $(foreach f,$(SOURCES_ABS),$(dir $(f))))
-SOURCE_DIRS_REL := $(subst $(SDK_ROOT)/,,$(SOURCE_DIRS_ABS))
-
-OBJECTS_DIRS := $(addprefix $(OBJS_ROOT)/,$(SOURCE_DIRS_REL))
-
-# Filter source files list into separate source types.
-C_SOURCES = $(filter %.c,$(SOURCES_REL))
-CXX_SOURCES = $(filter %.cpp,$(SOURCES_REL))
-ASM_s_SOURCES = $(filter %.s,$(SOURCES_REL))
-ASM_S_SOURCES = $(filter %.S,$(SOURCES_REL))
-
-# Convert sources to objects.
-OBJECTS_C := $(addprefix $(OBJS_ROOT)/,$(C_SOURCES:.c=.o))
-OBJECTS_CXX := $(addprefix $(OBJS_ROOT)/,$(CXX_SOURCES:.cpp=.o))
-OBJECTS_ASM := $(addprefix $(OBJS_ROOT)/,$(ASM_s_SOURCES:.s=.o))
-OBJECTS_ASM_S := $(addprefix $(OBJS_ROOT)/,$(ASM_S_SOURCES:.S=.o))
-
-PREBUILT_OBJECTS = $(addprefix $(SDK_ROOT)/,$(filter %.o,$(SOURCES_REL)))
-
-# Complete list of all object files.
-OBJECTS_ALL := $(sort $(OBJECTS_C) $(OBJECTS_CXX) $(OBJECTS_ASM) $(OBJECTS_ASM_S) $(PREBUILT_OBJECTS))
-
-#-------------------------------------------------------------------------------
-# Target library
-#-------------------------------------------------------------------------------
-
-# Library where app objects are archived, if used.
-LIBAPP = $(APP_OUTPUT_ROOT)/lib$(APP_NAME).a
-
-# Build the target lib path from the lib name.
-ifneq "$(TARGET_LIB_NAME)" ""
-TARGET_LIB ?= $(LIBS_ROOT)/lib$(TARGET_LIB_NAME).a
-else ifeq "$(ARCHIVE_APP_OBJECTS)" "1"
-TARGET_LIB ?= $(LIBAPP)
-endif
-
-# Construct full path name to application output ELF file.
-ifneq "$(APP_NAME)" ""
-APP_ELF ?= $(APP_OUTPUT_ROOT)/$(APP_NAME).elf
-endif
-
-# Select the output target.
-ifneq "$(TARGET_LIB)" ""
-# Only use the target lib if there are actually objects to put into it.
-ifneq "$(strip $(OBJECTS_ALL))" ""
-archive_or_objs = $(TARGET_LIB)($(OBJECTS_ALL))
-endif
-else
-archive_or_objs = $(OBJECTS_ALL)
-endif
-
-#-------------------------------------------------------------------------------
-# Default target
-#-------------------------------------------------------------------------------
-
-# Note that prerequisite order is important here. The subdirectories must be built first, or you
-# may end up with files in the current directory not getting added to libraries. This would happen
-# if subdirs modified the library file after local files were compiled but before they were added
-# to the library.
-.PHONY: all
-all : $(SUBDIRS) $(archive_or_objs) $(APP_ELF)
-
-# Recipe to create the output object file directories.
-$(OBJECTS_DIRS) :
-	$(at)mkdir -p $@
-
-# Everything depends upon the current makefile.
-$(OBJECTS_ALL) $(APP_ELF): $(this_makefile)
-
-# Object files depend on the directories where they will be created.
-#
-# The dirs are made order-only prerequisites (by being listed after the '|') so they won't cause
-# the objects to be rebuilt, as the modification date on a directory changes whenver its contents
-# change. This would cause the objects to always be rebuilt if the dirs were normal prerequisites.
-$(OBJECTS_ALL): | $(OBJECTS_DIRS)
-
-#-------------------------------------------------------------------------------
-# Pattern rules for compilation
-#-------------------------------------------------------------------------------
-# We cd into the source directory before calling the appropriate compiler. This must be done
-# on a single command line since make calls individual recipe lines in separate shells, so
-# '&&' is used to chain the commands.
-#
-# Generate make dependencies while compiling using the -MMD option, which excludes system headers.
-# If system headers are included, there are path problems on cygwin. The -MP option creates empty
-# targets for each header file so that a rebuild will be forced if the file goes missing, but
-# no error will occur.
-
-# Compile C sources.
-$(OBJS_ROOT)/%.o: $(SDK_ROOT)/%.c
-	@$(call printmessage,c,Compiling, $(subst $(SDK_ROOT)/,,$<))
-	$(at)cd $(dir $<) && $(CC) $(CFLAGS) $(SYSTEM_INC) $(INCLUDES) $(DEFINES) -MMD -MF $(basename $@).d -MP -o $@ -c $<
-
-# Compile C++ sources.
-$(OBJS_ROOT)/%.o: $(SDK_ROOT)/%.cpp
-	@$(call printmessage,cxx,Compiling, $(subst $(SDK_ROOT)/,,$<))
-	$(at)cd $(dir $<) && $(CXX) $(CXXFLAGS) $(SYSTEM_INC) $(INCLUDES) $(DEFINES) -MMD -MF $(basename $@).d -MP -o $@ -c $<
-
-# For .S assembly files, first run through the C preprocessor then assemble.
-$(OBJS_ROOT)/%.o: $(SDK_ROOT)/%.S
-	@$(call printmessage,asm,Assembling, $(subst $(SDK_ROOT)/,,$<))
-	$(at)cd $(dir $<) \
-	&& $(CPP) -D__LANGUAGE_ASM__ $(INCLUDES) $(DEFINES) -o $(basename $@).s $< \
-	&& $(AS) $(ASFLAGS) $(INCLUDES) -MD $(OBJS_ROOT)/$*.d -o $@ $(basename $@).s
-
-# Assembler sources.
-$(OBJS_ROOT)/%.o: $(SDK_ROOT)/%.s
-	@$(call printmessage,asm,Assembling, $(subst $(SDK_ROOT)/,,$<))
-	$(at)cd $(dir $<) && $(AS) $(ASFLAGS) $(INCLUDES) -MD $(basename $@).d -o $@ $<
-
-# Add objects to the target library.
-#
-# We use mkdir to explicitly ensure that the archive's directory exists before calling
-# the ar tool. The dir can't be made a dependancy because make will try to add it to the
-# archive.
-#
-# flock is used to protect the archive file from multiple processes trying to write to it
-# simultaneously, in case we're using parallel processes.
-#
-# The log message is disabled in order to reduce clutter in the build log, since you will get
-# one message for every file that is archived.
-$(TARGET_LIB)(%): %
-#	@$(call printmessage,ar,Archiving, $(?F) in $(@F))
-	$(at)mkdir -p $(dir $(@))
-	$(at)flock $(@).lock $(AR) -rucs $@ $?
-
-#-------------------------------------------------------------------------------
-# Subdirs
-#-------------------------------------------------------------------------------
-
-# Recursively execute make in each of the subdirectories.
-# Subdirs are double-colon rules to allow additional recipes to be added to them.
-# This is used by the top-level makefile to print a message when starting to build
-# the sdk library.
-.PHONY: $(SUBDIRS)
-$(SUBDIRS)::
-	@$(MAKE) $(silent_make) -r -C $@
-
-#-------------------------------------------------------------------------------
-# Linking
-#-------------------------------------------------------------------------------
-
-# Only link the application if LINK_APP is defined.
-ifeq "$(LINK_APP)" "1"
-
-# If app objects are being archived into a library, we don't need to specify the
-# actual .o files on the linker command line.
-ifeq "$(ARCHIVE_APP_OBJECTS)" "1"
-app_objs = $(TARGET_LIB)
-else
-app_objs = $(OBJECTS_ALL) $(TARGET_LIB)
-endif
-
-app_bin = $(basename $(APP_ELF)).bin
-app_map = $(basename $(APP_ELF)).map
-
-# Preprocess the linker script if it has an ".S" extension.
-ifeq "$(filter %.S,$(LD_FILE))" ""
-the_ld_file = $(LD_FILE)
-else
-rel_ld_file = $(basename $(subst $(SDK_ROOT)/,,$(abspath $(LD_FILE))))
-the_ld_file = $(addprefix $(OBJS_ROOT)/,$(rel_ld_file))
-the_ld_file_dir = $(dir $(the_ld_file))
-
-# Rule to preprocess the ld file. The ld file's parent directory is made an order-only
-# prerequisite so it cannot by itself cause this recipe to be invoked.
-$(the_ld_file): $(LD_FILE) | $(the_ld_file_dir)
-	@$(call printmessage,cpp,Preprocessing, $(subst $(SDK_ROOT)/,,$<))
-	$(at)cd $(dir $<) && $(CC) -E -P $(INCLUDES) $(DEFINES) -o $@ $<
-endif
-
-# Link the application.
-# Wrap the link objects in start/end group so that ld re-checks each
-# file for dependencies.  Otherwise linking static libs can be a pain
-# since order matters.
-$(APP_ELF): $(SUBDIRS) $(app_objs) $(the_ld_file) $(LIBRARIES) $(APP_LIBS)
-	@$(call printmessage,link,Linking, $(APP_NAME))
-	$(at)$(LD) -Bstatic -nostartfiles -nostdlib $(LDFLAGS) \
-	      -T $(the_ld_file) \
-	      $(LDINC) \
-	      --start-group \
-	      $(app_objs) \
-	      $(LIBRARIES) \
-	      $(APP_LIBS) \
-	      $(LDADD) \
-	      --end-group \
-	      -o $@ \
-	      -Map $(app_map) --cref
-	$(at)$(OBJCOPY) --gap-fill 0x00 -I elf32-little -O binary $@ $(app_bin)
-	@echo "Output ELF:" ; echo "  $(APP_ELF)"
-	@echo "Output binary:" ; echo "  $(app_bin)"
-
-else
-# Empty target to prevent an error. Needed because $(APP_ELF) is a prereq for the 'all' target.
-$(APP_ELF): ;
-endif
-
-# Include dependency files.
--include $(OBJECTS_ALL:.o=.d)
-

+ 0 - 9
bsp/imxrt/imxrt1052-fire-pro/EventRecorderStub.scvd

@@ -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>

+ 0 - 16
bsp/imxrt/imxrt1052-seeed-ArchMix/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"

+ 0 - 16
bsp/imxrt/imxrt1060-nxp-evk/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"

+ 0 - 16
bsp/imxrt/imxrt1061-forlinx-OK1061-S/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"

+ 0 - 16
bsp/imxrt/imxrt1064-nxp-evk/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"

+ 0 - 16
bsp/imxrt/libraries/templates/imxrt1050xxx/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"

+ 0 - 16
bsp/imxrt/libraries/templates/imxrt1064xxx/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"

+ 0 - 0
bsp/imx6sx/README.md → bsp/nxp/imx/imx6sx/README.md


+ 0 - 0
bsp/imx6sx/cortex-a9/.config → bsp/nxp/imx/imx6sx/cortex-a9/.config


+ 1 - 4
bsp/imx6sx/cortex-a9/Kconfig → bsp/nxp/imx/imx6sx/cortex-a9/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

+ 0 - 0
bsp/imx6sx/cortex-a9/SConscript → bsp/nxp/imx/imx6sx/cortex-a9/SConscript


+ 1 - 1
bsp/imx6sx/cortex-a9/SConstruct → bsp/nxp/imx/imx6sx/cortex-a9/SConstruct

@@ -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 *

+ 0 - 0
bsp/imx6sx/cortex-a9/applications/SConscript → bsp/nxp/imx/imx6sx/cortex-a9/applications/SConscript


+ 0 - 0
bsp/imx6sx/cortex-a9/applications/main.c → bsp/nxp/imx/imx6sx/cortex-a9/applications/main.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/SConscript → bsp/nxp/imx/imx6sx/cortex-a9/board/SConscript


+ 0 - 0
bsp/imx6sx/cortex-a9/board/audmux_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/audmux_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/ccm_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/ccm_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/dcic_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/dcic_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/ecspi1_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/ecspi1_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/ecspi_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/ecspi_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/eim_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/eim_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/enet_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/enet_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/epit_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/epit_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/esai_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/esai_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/flexcan1_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/flexcan1_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/flexcan2_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/flexcan2_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/flexcan_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/flexcan_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/gpio1_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/gpio1_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/gpio2_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/gpio2_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/gpio4_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/gpio4_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/gpio5_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/gpio5_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/gpio6_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/gpio6_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/gpio_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/gpio_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/gpmi_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/gpmi_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/i2c2_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/i2c2_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/i2c3_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/i2c3_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/i2c_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/i2c_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/ipu1_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/ipu1_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/ipu_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/ipu_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/mlb_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/mlb_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/mmdc_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/mmdc_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/pwm3_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/pwm3_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/pwm4_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/pwm4_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/pwm_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/pwm_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/sjc_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/sjc_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/spdif_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/spdif_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/uart2_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/uart2_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/uart3_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/uart3_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/uart4_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/uart4_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/uart_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/uart_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/usdhc1_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/usdhc1_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/usdhc3_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/usdhc3_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/usdhc_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/usdhc_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/wdog1_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/wdog1_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/board/wdog_iomux_config.c → bsp/nxp/imx/imx6sx/cortex-a9/board/wdog_iomux_config.c


+ 0 - 0
bsp/imx6sx/cortex-a9/cpu/SConscript → bsp/nxp/imx/imx6sx/cortex-a9/cpu/SConscript


+ 0 - 0
bsp/imx6sx/cortex-a9/cpu/armv7.h → bsp/nxp/imx/imx6sx/cortex-a9/cpu/armv7.h


+ 0 - 0
bsp/imx6sx/cortex-a9/cpu/context_gcc.S → bsp/nxp/imx/imx6sx/cortex-a9/cpu/context_gcc.S


+ 0 - 0
bsp/imx6sx/cortex-a9/cpu/cortexA9_gcc.S → bsp/nxp/imx/imx6sx/cortex-a9/cpu/cortexA9_gcc.S


+ 0 - 0
bsp/imx6sx/cortex-a9/cpu/cp15.h → bsp/nxp/imx/imx6sx/cortex-a9/cpu/cp15.h


+ 0 - 0
bsp/imx6sx/cortex-a9/cpu/cp15_gcc.S → bsp/nxp/imx/imx6sx/cortex-a9/cpu/cp15_gcc.S


+ 0 - 0
bsp/imx6sx/cortex-a9/cpu/cpu.c → bsp/nxp/imx/imx6sx/cortex-a9/cpu/cpu.c


+ 0 - 0
bsp/imx6sx/cortex-a9/cpu/interrupt.c → bsp/nxp/imx/imx6sx/cortex-a9/cpu/interrupt.c


+ 0 - 0
bsp/imx6sx/cortex-a9/cpu/mmu.c → bsp/nxp/imx/imx6sx/cortex-a9/cpu/mmu.c


+ 0 - 0
bsp/imx6sx/cortex-a9/cpu/pmu.c → bsp/nxp/imx/imx6sx/cortex-a9/cpu/pmu.c


+ 0 - 0
bsp/imx6sx/cortex-a9/cpu/pmu.h → bsp/nxp/imx/imx6sx/cortex-a9/cpu/pmu.h


+ 0 - 0
bsp/imx6sx/cortex-a9/cpu/stack.c → bsp/nxp/imx/imx6sx/cortex-a9/cpu/stack.c


+ 0 - 0
bsp/imx6sx/cortex-a9/cpu/start_gcc.S → bsp/nxp/imx/imx6sx/cortex-a9/cpu/start_gcc.S


+ 0 - 0
bsp/imx6sx/cortex-a9/cpu/trap.c → bsp/nxp/imx/imx6sx/cortex-a9/cpu/trap.c


+ 0 - 0
bsp/imx6sx/cortex-a9/cpu/vector_gcc.S → bsp/nxp/imx/imx6sx/cortex-a9/cpu/vector_gcc.S


+ 0 - 0
bsp/imx6sx/cortex-a9/drivers/SConscript → bsp/nxp/imx/imx6sx/cortex-a9/drivers/SConscript


+ 0 - 0
bsp/imx6sx/cortex-a9/drivers/board.c → bsp/nxp/imx/imx6sx/cortex-a9/drivers/board.c


+ 0 - 0
bsp/imx6sx/cortex-a9/drivers/board.h → bsp/nxp/imx/imx6sx/cortex-a9/drivers/board.h


+ 0 - 0
bsp/imx6sx/cortex-a9/drivers/emac_drv.c → bsp/nxp/imx/imx6sx/cortex-a9/drivers/emac_drv.c


+ 0 - 0
bsp/imx6sx/cortex-a9/drivers/emac_drv.h → bsp/nxp/imx/imx6sx/cortex-a9/drivers/emac_drv.h


+ 0 - 0
bsp/imx6sx/cortex-a9/drivers/serial.c → bsp/nxp/imx/imx6sx/cortex-a9/drivers/serial.c


+ 0 - 0
bsp/imx6sx/cortex-a9/drivers/serial.h → bsp/nxp/imx/imx6sx/cortex-a9/drivers/serial.h


+ 0 - 0
bsp/imx6sx/cortex-a9/imx6.lds → bsp/nxp/imx/imx6sx/cortex-a9/imx6.lds


+ 0 - 0
bsp/imx6sx/cortex-a9/rtconfig.h → bsp/nxp/imx/imx6sx/cortex-a9/rtconfig.h


+ 0 - 0
bsp/imx6sx/cortex-a9/rtconfig.py → bsp/nxp/imx/imx6sx/cortex-a9/rtconfig.py


+ 0 - 0
bsp/imx6sx/iMX6_Platform_SDK/Doxyfile → bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/Doxyfile


+ 0 - 0
bsp/imx6sx/iMX6_Platform_SDK/LICENSE.txt → bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/LICENSE.txt


+ 0 - 0
bsp/imx6sx/iMX6_Platform_SDK/Makefile → bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/Makefile


+ 0 - 0
bsp/imx6sx/iMX6_Platform_SDK/README.pdf → bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/README.pdf


+ 0 - 0
bsp/imx6sx/iMX6_Platform_SDK/SConscript → bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/SConscript


+ 0 - 0
bsp/imx6sx/iMX6_Platform_SDK/apps/common/basic_sdk_app.ld.S → bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/apps/common/basic_sdk_app.ld.S


+ 0 - 0
bsp/imx6sx/iMX6_Platform_SDK/apps/common/ivt.c → bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/apps/common/ivt.c


+ 0 - 0
bsp/imx6sx/iMX6_Platform_SDK/apps/common/platform_init.c → bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/apps/common/platform_init.c


+ 0 - 0
bsp/imx6sx/iMX6_Platform_SDK/apps/common/platform_init.h → bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/apps/common/platform_init.h


+ 0 - 0
bsp/imx6sx/iMX6_Platform_SDK/apps/common/print_clock_info.c → bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/apps/common/print_clock_info.c


+ 0 - 0
bsp/imx6sx/iMX6_Platform_SDK/apps/common/print_clock_info.h → bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/apps/common/print_clock_info.h


+ 0 - 0
bsp/imx6sx/iMX6_Platform_SDK/apps/common/print_version.c → bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/apps/common/print_version.c


+ 0 - 0
bsp/imx6sx/iMX6_Platform_SDK/apps/common/print_version.h → bsp/nxp/imx/imx6sx/iMX6_Platform_SDK/apps/common/print_version.h


Some files were not shown because too many files changed in this diff