mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
initial support for Blackfin processors
[Peter: don't allow MMU on bfin] Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
febe322d27
commit
871db074b1
1
Makefile
1
Makefile
@ -263,6 +263,7 @@ endif
|
|||||||
KERNEL_ARCH:=$(shell echo "$(ARCH)" | sed -e "s/-.*//" \
|
KERNEL_ARCH:=$(shell echo "$(ARCH)" | sed -e "s/-.*//" \
|
||||||
-e s/i.86/i386/ -e s/sun4u/sparc64/ \
|
-e s/i.86/i386/ -e s/sun4u/sparc64/ \
|
||||||
-e s/arm.*/arm/ -e s/sa110/arm/ \
|
-e s/arm.*/arm/ -e s/sa110/arm/ \
|
||||||
|
-e s/bfin/blackfin/ \
|
||||||
-e s/parisc64/parisc/ \
|
-e s/parisc64/parisc/ \
|
||||||
-e s/powerpc64/powerpc/ \
|
-e s/powerpc64/powerpc/ \
|
||||||
-e s/ppc.*/powerpc/ -e s/mips.*/mips/ \
|
-e s/ppc.*/powerpc/ -e s/mips.*/mips/ \
|
||||||
|
@ -75,6 +75,10 @@ config BR2_TARGET_UBOOT_FORMAT_KWB
|
|||||||
depends on BR2_arm
|
depends on BR2_arm
|
||||||
bool "u-boot.kwb (Marvell)"
|
bool "u-boot.kwb (Marvell)"
|
||||||
|
|
||||||
|
config BR2_TARGET_UBOOT_FORMAT_LDR
|
||||||
|
depends on BR2_bfin
|
||||||
|
bool "u-boot.ldr"
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config BR2_TARGET_UBOOT_TOOL_MKIMAGE
|
config BR2_TARGET_UBOOT_TOOL_MKIMAGE
|
||||||
|
@ -31,6 +31,8 @@ U_BOOT_CAT:=$(BZCAT)
|
|||||||
ifeq ($(BR2_TARGET_UBOOT_FORMAT_KWB),y)
|
ifeq ($(BR2_TARGET_UBOOT_FORMAT_KWB),y)
|
||||||
U_BOOT_BIN:=u-boot.kwb
|
U_BOOT_BIN:=u-boot.kwb
|
||||||
U_BOOT_MAKE_OPT:=$(U_BOOT_BIN)
|
U_BOOT_MAKE_OPT:=$(U_BOOT_BIN)
|
||||||
|
else ifeq ($(BR2_TARGET_UBOOT_FORMAT_LDR),y)
|
||||||
|
U_BOOT_BIN:=u-boot.ldr
|
||||||
else
|
else
|
||||||
U_BOOT_BIN:=u-boot.bin
|
U_BOOT_BIN:=u-boot.bin
|
||||||
endif
|
endif
|
||||||
|
@ -115,7 +115,7 @@ choice
|
|||||||
|
|
||||||
config BR2_LINUX_KERNEL_UIMAGE
|
config BR2_LINUX_KERNEL_UIMAGE
|
||||||
bool "uImage"
|
bool "uImage"
|
||||||
depends on BR2_arm || BR2_armeb || BR2_powerpc || BR2_avr32 || BR2_sh || BR2_sh64
|
depends on BR2_arm || BR2_armeb || BR2_bfin || BR2_powerpc || BR2_avr32 || BR2_sh || BR2_sh64
|
||||||
|
|
||||||
config BR2_LINUX_KERNEL_BZIMAGE
|
config BR2_LINUX_KERNEL_BZIMAGE
|
||||||
bool "bzImage"
|
bool "bzImage"
|
||||||
|
@ -31,7 +31,12 @@ LINUX26_MAKE_FLAGS = \
|
|||||||
LINUX26_VERSION_PROBED = $(shell $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) --no-print-directory -s kernelrelease)
|
LINUX26_VERSION_PROBED = $(shell $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) --no-print-directory -s kernelrelease)
|
||||||
|
|
||||||
ifeq ($(BR2_LINUX_KERNEL_UIMAGE),y)
|
ifeq ($(BR2_LINUX_KERNEL_UIMAGE),y)
|
||||||
|
ifeq ($(KERNEL_ARCH),blackfin)
|
||||||
|
# a uImage, but with a different file name
|
||||||
|
LINUX26_IMAGE_NAME=vmImage
|
||||||
|
else
|
||||||
LINUX26_IMAGE_NAME=uImage
|
LINUX26_IMAGE_NAME=uImage
|
||||||
|
endif
|
||||||
LINUX26_DEPENDENCIES+=$(MKIMAGE)
|
LINUX26_DEPENDENCIES+=$(MKIMAGE)
|
||||||
else ifeq ($(BR2_LINUX_KERNEL_BZIMAGE),y)
|
else ifeq ($(BR2_LINUX_KERNEL_BZIMAGE),y)
|
||||||
LINUX26_IMAGE_NAME=bzImage
|
LINUX26_IMAGE_NAME=bzImage
|
||||||
|
@ -14,6 +14,8 @@ config BR2_armeb
|
|||||||
config BR2_avr32
|
config BR2_avr32
|
||||||
bool "avr32"
|
bool "avr32"
|
||||||
select BR2_SOFT_FLOAT
|
select BR2_SOFT_FLOAT
|
||||||
|
config BR2_bfin
|
||||||
|
bool "bfin"
|
||||||
config BR2_i386
|
config BR2_i386
|
||||||
bool "i386"
|
bool "i386"
|
||||||
config BR2_m68k
|
config BR2_m68k
|
||||||
@ -127,6 +129,20 @@ config BR2_ARM_OABI
|
|||||||
bool "OABI"
|
bool "OABI"
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "Target ABI"
|
||||||
|
depends on BR2_bfin
|
||||||
|
default BR2_BFIN_FLAT
|
||||||
|
config BR2_BFIN_FDPIC
|
||||||
|
bool "FDPIC"
|
||||||
|
config BR2_BFIN_FLAT
|
||||||
|
bool "FLAT"
|
||||||
|
config BR2_BFIN_FLAT_SEP_DATA
|
||||||
|
bool "FLAT (Separate data)"
|
||||||
|
config BR2_BFIN_SHARED_FLAT
|
||||||
|
bool "Shared FLAT"
|
||||||
|
endchoice
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Target Architecture Variant"
|
prompt "Target Architecture Variant"
|
||||||
depends on BR2_mips || BR2_mipsel
|
depends on BR2_mips || BR2_mipsel
|
||||||
@ -444,6 +460,7 @@ config BR2_ARCH
|
|||||||
default "arm" if BR2_arm
|
default "arm" if BR2_arm
|
||||||
default "armeb" if BR2_armeb
|
default "armeb" if BR2_armeb
|
||||||
default "avr32" if BR2_avr32
|
default "avr32" if BR2_avr32
|
||||||
|
default "bfin" if BR2_bfin
|
||||||
default "i386" if BR2_x86_i386
|
default "i386" if BR2_x86_i386
|
||||||
default "i486" if BR2_x86_i486
|
default "i486" if BR2_x86_i486
|
||||||
default "i586" if BR2_x86_i586
|
default "i586" if BR2_x86_i586
|
||||||
@ -485,7 +502,7 @@ config BR2_ARCH
|
|||||||
|
|
||||||
config BR2_ENDIAN
|
config BR2_ENDIAN
|
||||||
string
|
string
|
||||||
default "LITTLE" if BR2_arm || BR2_i386 || BR2_mipsel || \
|
default "LITTLE" if BR2_arm || BR2_bfin || BR2_i386 || BR2_mipsel || \
|
||||||
BR2_sh3 || BR2_sh4 || BR2_x86_64 || BR2_sh64
|
BR2_sh3 || BR2_sh4 || BR2_x86_64 || BR2_sh64
|
||||||
default "BIG" if BR2_armeb || BR2_avr32 || BR2_m68k || BR2_mips || \
|
default "BIG" if BR2_armeb || BR2_avr32 || BR2_m68k || BR2_mips || \
|
||||||
BR2_powerpc || BR2_sh2a_nofpueb || BR2_sh2eb || \
|
BR2_powerpc || BR2_sh2a_nofpueb || BR2_sh2eb || \
|
||||||
|
@ -68,7 +68,7 @@ config BR2_NEEDS_GETTEXT_IF_LOCALE
|
|||||||
|
|
||||||
config BR2_USE_MMU
|
config BR2_USE_MMU
|
||||||
bool "Enable MMU support" if BR2_arm || BR2_armeb || BR2_mips || BR2_mipsel || BR2_sh || BR2_xtensa
|
bool "Enable MMU support" if BR2_arm || BR2_armeb || BR2_mips || BR2_mipsel || BR2_sh || BR2_xtensa
|
||||||
default y
|
default y if !BR2_bfin
|
||||||
help
|
help
|
||||||
If your target has a MMU, you should say Y here. If you
|
If your target has a MMU, you should say Y here. If you
|
||||||
are unsure, just say Y.
|
are unsure, just say Y.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user