Commit 5ddb904a authored by Maxim Grigoriev's avatar Maxim Grigoriev Committed by Peter Korsgaard
Browse files

target/; xtensa support



Part of #163.

Signed-off-by: default avatarMaxim Grigoriev <maxim2405@gmail.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent cd0b1ce3
Loading
Loading
Loading
Loading
+35 −0
Original line number Diff line number Diff line
@@ -43,6 +43,8 @@ config BR2_sparc64
	bool "sparc64"
config BR2_x86_64
	bool "x86_64"
config BR2_xtensa
	bool "xtensa"
endchoice

#
@@ -394,6 +396,38 @@ config BR2_ia64_itanium2
	bool "itanium 2"
endchoice

choice
	prompt "Target Architecture Variant"
	depends on BR2_xtensa
	default BR2_xtensa_dc232b
	help
	  Specific CPU variant to use

config BR2_xtensa_custom
	bool "Custom Xtensa processor configuration"
config BR2_xtensa_dc232a
	bool "dc232a - Diamond 232L Standard Core Rev.A (LE)"
config BR2_xtensa_dc232b
	bool "dc232b - Diamond 232L Standard Core Rev.B (LE)"
#config BR2_xtensa_s5000
#	bool "s5000 - Stretch S5000"
endchoice

config BR2_xtensa_custom_name
	string "Custom Xtensa processor configuration name"
	depends on BR2_xtensa_custom
	default ""
	help
	  Name given to a custom Xtensa processor configuration.
	  This is used to select the correct overlay.

config BR2_xtensa_core_name
	string
	default BR2_xtensa_custom_name	if BR2_xtensa_custom
	default "dc232a"		if BR2_xtensa_dc232a
	default "dc232b"		if BR2_xtensa_dc232b
#	default "s5000"			if BR2_xtensa_s5000

choice
	prompt "Target Architecture Variant"
	depends on BR2_powerpc
@@ -496,6 +530,7 @@ config BR2_ARCH
	default "x86_64"	if BR2_x86_64_opteron
	default "x86_64"	if BR2_x86_64_opteron_sse3
	default "x86_64"	if BR2_x86_64_barcelona
	default "xtensa"	if BR2_xtensa


config BR2_ENDIAN
+1 −0
Original line number Diff line number Diff line
@@ -62,6 +62,7 @@ include target/generic/Makefile.in
include target/device/Makefile.in
include target/x86/Makefile.in
include target/powerpc/Makefile.in
include target/xtensa/Makefile.in

ifeq ($(BR2_TARGET_UBOOT),y)
include target/u-boot/Makefile.in
+1 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ source "target/device/Atmel/Config.in"
source "target/device/KwikByte/Config.in"
source "target/device/valka/Config.in"
source "target/device/x86/Config.in"
source "target/device/xtensa/Config.in"

# This must be last
source "target/generic/Config.in"
+21 −0
Original line number Diff line number Diff line
menuconfig	BR2_TARGET_XTENSA
	bool "Device and Board Support for Xtensa and Diamond cores"
	depends on BR2_xtensa
	default y
	help
	  Lists development boards with support for the Xtensa architecture.

if BR2_TARGET_XTENSA
comment "Tensilica Xtensa/Diamond based Device Support"
	depends on BR2_xtensa

config BR2_TARGET_XTENSA_XTAV60
	bool "XTAV60/200 board (Avnet LX60 or LX200 plus Tensilica IP)"
	depends on BR2_xtensa
	default y
	help
	  The XTAV60 or XTAV200 board, which is an Avnet LX60 or LX200
	  emulation board programmed with an FPGA bitstream obtained
	  from Tensilica.

endif
+14 −0
Original line number Diff line number Diff line
ifeq ($(strip $(BR2_TARGET_XTENSA_XTAV60)),y)
# UCLIBC_CONFIG_FILE:=target/device/xtensa/xtav60/uClibc.config
# BR2_PACKAGE_BUSYBOX_CONFIG:=target/device/xtensa/xtav60/busybox.config
TARGET_SKELETON_PATCH:=target/device/xtensa
endif

#  Custom device table patch used when targeting ISS:
OLD_TARGET_DEVICE_TABLE := $(TARGET_DEVICE_TABLE)
TARGET_DEVICE_TABLE := target/device/xtensa/device_table.txt
makedevs:
	@echo "Applying patch to $(TARGET_DEVICE_TABLE)"
	cp -f $(OLD_TARGET_DEVICE_TABLE) $(TARGET_DEVICE_TABLE)
	patch -p1 -g 0 < target/device/xtensa/device_table.diff
Loading