mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 19:52:27 +02:00
add preliminary coldfire v4e support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16538 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
ec8eb27331
commit
dccbe704f2
26
include/site/m68k-linux
Normal file
26
include/site/m68k-linux
Normal file
@ -0,0 +1,26 @@
|
||||
ac_cv_c_littleendian=${ac_cv_c_littleendian=no}
|
||||
ac_cv_c_bigendian=${ac_cv_c_bigendian=yes}
|
||||
|
||||
ac_cv_sizeof___int64=0
|
||||
ac_cv_sizeof_char=1
|
||||
ac_cv_sizeof_int=4
|
||||
ac_cv_sizeof_int16_t=2
|
||||
ac_cv_sizeof_int32_t=4
|
||||
ac_cv_sizeof_int64_t=8
|
||||
ac_cv_sizeof_long_int=4
|
||||
ac_cv_sizeof_long_long=8
|
||||
ac_cv_sizeof_long=4
|
||||
ac_cv_sizeof_off_t=4
|
||||
ac_cv_sizeof_short_int=2
|
||||
ac_cv_sizeof_short=2
|
||||
ac_cv_sizeof_size_t=4
|
||||
ac_cv_sizeof_u_int16_t=2
|
||||
ac_cv_sizeof_u_int32_t=4
|
||||
ac_cv_sizeof_u_int64_t=8
|
||||
ac_cv_sizeof_uint16_t=2
|
||||
ac_cv_sizeof_uint32_t=4
|
||||
ac_cv_sizeof_uint64_t=8
|
||||
ac_cv_sizeof_unsigned_int=4
|
||||
ac_cv_sizeof_unsigned_long=4
|
||||
ac_cv_sizeof_unsigned_short=2
|
||||
ac_cv_sizeof_void_p=4
|
5
include/site/m68k-openwrt-linux-gnu
Normal file
5
include/site/m68k-openwrt-linux-gnu
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
. $TOPDIR/include/site/m68k-linux
|
||||
. $TOPDIR/include/site/linux-gnu
|
||||
|
5
include/site/m68k-openwrt-linux-uclibc
Normal file
5
include/site/m68k-openwrt-linux-uclibc
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
. $TOPDIR/include/site/m68k-linux
|
||||
. $TOPDIR/include/site/linux-gnu
|
||||
|
@ -162,6 +162,7 @@ ifeq ($(DUMP),1)
|
||||
endif
|
||||
DEFAULT_CFLAGS_i386=-O2 -pipe -march=i486 -funit-at-a-time
|
||||
DEFAULT_CFLAGS_x86_64=-O2 -pipe -march=athlon64 -funit-at-a-time
|
||||
DEFAULT_CFLAGS_m68k=-Os -pipe -mcfv4e -funit-at-a-time
|
||||
DEFAULT_CFLAGS_mips=-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time
|
||||
DEFAULT_CFLAGS_mipsel=$(DEFAULT_CFLAGS_mips)
|
||||
DEFAULT_CFLAGS_mips64=-Os -pipe -mips64 -mtune=mips64 -mabi=64 -funit-at-a-time
|
||||
|
@ -74,7 +74,7 @@ endef
|
||||
define Package/libgcc
|
||||
$(call Package/gcc/Default)
|
||||
TITLE:=GCC support library
|
||||
DEPENDS+=@!TARGET_avr32
|
||||
DEPENDS+=@!(TARGET_avr32||TARGET_coldfire)
|
||||
endef
|
||||
|
||||
define Package/libssp
|
||||
|
@ -61,6 +61,10 @@ config i386
|
||||
config i686
|
||||
bool
|
||||
|
||||
config m68k
|
||||
select BIG_ENDIAN
|
||||
bool
|
||||
|
||||
config mips
|
||||
select BIG_ENDIAN
|
||||
bool
|
||||
|
23
target/linux/coldfire/Makefile
Normal file
23
target/linux/coldfire/Makefile
Normal file
@ -0,0 +1,23 @@
|
||||
#
|
||||
# Copyright (C) 2009 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
ARCH:=m68k
|
||||
BOARD:=coldfire
|
||||
BOARDNAME:=Freescale Coldfire v4e
|
||||
FEATURES:=squashfs broken
|
||||
|
||||
LINUX_VERSION:=2.6.25.20
|
||||
LINUX_KARCH:=m68k
|
||||
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
||||
define Target/Description
|
||||
Build firmware images for ColdFire v4e boards
|
||||
endef
|
||||
|
||||
$(eval $(call BuildTarget))
|
109
target/linux/coldfire/config-default
Normal file
109
target/linux/coldfire/config-default
Normal file
@ -0,0 +1,109 @@
|
||||
# CONFIG_8139TOO is not set
|
||||
# CONFIG_ADVANCED is not set
|
||||
# CONFIG_AMIGA is not set
|
||||
# CONFIG_APOLLO is not set
|
||||
CONFIG_ARCH_DISCONTIGMEM_ENABLE=y
|
||||
# CONFIG_ARCH_HAS_ILOG2_U32 is not set
|
||||
# CONFIG_ARCH_HAS_ILOG2_U64 is not set
|
||||
CONFIG_ARCH_SUPPORTS_AOUT=y
|
||||
# CONFIG_ARCH_SUPPORTS_MSI is not set
|
||||
# CONFIG_ATARI is not set
|
||||
CONFIG_BASE_SMALL=0
|
||||
# CONFIG_BINFMT_AOUT is not set
|
||||
CONFIG_BITREVERSE=y
|
||||
# CONFIG_BOOTPARAM is not set
|
||||
CONFIG_BOUNCE=y
|
||||
CONFIG_CFV4E=y
|
||||
CONFIG_CLASSIC_RCU=y
|
||||
CONFIG_COLDFIRE=y
|
||||
# CONFIG_COLDFIRE_EDMA is not set
|
||||
# CONFIG_COLDFIRE_WATCHDOG is not set
|
||||
# CONFIG_DEBUG_BUGVERBOSE is not set
|
||||
CONFIG_DISCONTIGMEM=y
|
||||
CONFIG_DISCONTIGMEM_MANUAL=y
|
||||
CONFIG_FEC_548x=y
|
||||
CONFIG_FEC_548x_AUTO_NEGOTIATION=y
|
||||
CONFIG_FEC_548x_ENABLE_FEC2=y
|
||||
# CONFIG_FLATMEM_MANUAL is not set
|
||||
# CONFIG_GENERIC_CLOCKEVENTS is not set
|
||||
CONFIG_GENERIC_IOMAP=y
|
||||
# CONFIG_GENERIC_TIME is not set
|
||||
# CONFIG_GEN_RTC is not set
|
||||
CONFIG_HAS_DMA=y
|
||||
CONFIG_HAS_IOMEM=y
|
||||
CONFIG_HAS_IOPORT=y
|
||||
CONFIG_HAVE_IDE=y
|
||||
# CONFIG_HAVE_KPROBES is not set
|
||||
# CONFIG_HAVE_KRETPROBES is not set
|
||||
# CONFIG_HAVE_OPROFILE is not set
|
||||
# CONFIG_HP300 is not set
|
||||
CONFIG_HW_RANDOM=y
|
||||
# CONFIG_I2C is not set
|
||||
# CONFIG_IDE is not set
|
||||
CONFIG_INITRAMFS_SOURCE=""
|
||||
# CONFIG_LEDS_ALIX is not set
|
||||
# CONFIG_M5445X is not set
|
||||
# CONFIG_M5475AFE is not set
|
||||
# CONFIG_M5475BFE is not set
|
||||
# CONFIG_M5475CFE is not set
|
||||
# CONFIG_M5475DFE is not set
|
||||
# CONFIG_M5475EFE is not set
|
||||
# CONFIG_M5475FFE is not set
|
||||
# CONFIG_M547X is not set
|
||||
CONFIG_M547X_8X=y
|
||||
# CONFIG_M5485AFE is not set
|
||||
# CONFIG_M5485BFE is not set
|
||||
CONFIG_M5485CFE=y
|
||||
# CONFIG_M5485DFE is not set
|
||||
# CONFIG_M5485EFE is not set
|
||||
# CONFIG_M5485FFE is not set
|
||||
CONFIG_M548X=y
|
||||
# CONFIG_M68020 is not set
|
||||
# CONFIG_M68030 is not set
|
||||
# CONFIG_M68040 is not set
|
||||
# CONFIG_M68060 is not set
|
||||
CONFIG_M68K=y
|
||||
# CONFIG_M68KFPU_EMU is not set
|
||||
# CONFIG_MAC is not set
|
||||
CONFIG_MCD_DMA=y
|
||||
CONFIG_MCFCLK=200000000
|
||||
CONFIG_MCF_USER_HALT=y
|
||||
# CONFIG_MEMSTICK is not set
|
||||
CONFIG_MMU_CFV4E=y
|
||||
CONFIG_MTD_CFI_ADV_OPTIONS=y
|
||||
# CONFIG_MTD_CFI_GEOMETRY is not set
|
||||
CONFIG_MTD_CFI_INTELEXT=y
|
||||
# CONFIG_NATSEMI is not set
|
||||
# CONFIG_NE2K_PCI is not set
|
||||
CONFIG_NEED_MULTIPLE_NODES=y
|
||||
# CONFIG_NETDEV_1000 is not set
|
||||
# CONFIG_NET_VENDOR_3COM is not set
|
||||
CONFIG_NODES_SHIFT=3
|
||||
CONFIG_NOR_FLASH_BASE=0xE0000000
|
||||
# CONFIG_NO_DMA is not set
|
||||
# CONFIG_NO_IOPORT is not set
|
||||
CONFIG_PCI_LEGACY=y
|
||||
CONFIG_PCI=y
|
||||
# CONFIG_PCIPCWATCHDOG is not set
|
||||
# CONFIG_PROC_HARDWARE is not set
|
||||
# CONFIG_Q40 is not set
|
||||
# CONFIG_R6040 is not set
|
||||
CONFIG_RESOURCES_64BIT=y
|
||||
# CONFIG_SCSI_DMA is not set
|
||||
CONFIG_SDRAM_BASE=0x00000000
|
||||
CONFIG_SDRAM_SIZE=0x04000000
|
||||
# CONFIG_SERIAL_8250_DETECT_IRQ is not set
|
||||
CONFIG_SERIAL_8250_EXTENDED=y
|
||||
# CONFIG_SERIAL_8250_MANY_PORTS is not set
|
||||
# CONFIG_SERIAL_8250_RSA is not set
|
||||
CONFIG_SERIAL_8250_SHARE_IRQ=y
|
||||
# CONFIG_SERIAL_COLDFIRE is not set
|
||||
# CONFIG_SERIAL_MCF is not set
|
||||
CONFIG_SLABINFO=y
|
||||
# CONFIG_SUN3 is not set
|
||||
# CONFIG_SUN3X is not set
|
||||
CONFIG_TIME_LOW_RES=y
|
||||
CONFIG_UID16=y
|
||||
# CONFIG_VGASTATE is not set
|
||||
# CONFIG_VIA_RHINE is not set
|
||||
# CONFIG_VME is not set
|
29
target/linux/coldfire/image/Makefile
Normal file
29
target/linux/coldfire/image/Makefile
Normal file
@ -0,0 +1,29 @@
|
||||
#
|
||||
# Copyright (C) 2009 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/image.mk
|
||||
|
||||
JFFS2_BLOCKSIZE=128k
|
||||
|
||||
define Image/Prepare
|
||||
endef
|
||||
|
||||
define Image/BuildKernel
|
||||
endef
|
||||
|
||||
define Image/Build
|
||||
$(call Image/Build/$(1),$(1))
|
||||
endef
|
||||
|
||||
define Image/Build/jffs2-128k
|
||||
endef
|
||||
|
||||
define Image/Build/squashfs
|
||||
$(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildImage))
|
51053
target/linux/coldfire/patches/001-cf.patch
Normal file
51053
target/linux/coldfire/patches/001-cf.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -8,6 +8,7 @@ choice
|
||||
default GCC_VERSION_4_2_4 if TARGET_ppc44x
|
||||
default GCC_VERSION_4_3_3 if TARGET_ps3_petitboot
|
||||
default GCC_VERSION_4_3_3 if TARGET_etrax
|
||||
default GCC_VERSION_4_3_3 if TARGET_coldfire
|
||||
default GCC_VERSION_4_1_2
|
||||
help
|
||||
Select the version of gcc you wish to use.
|
||||
|
@ -50,4 +50,5 @@ if !TOOLCHAINOPTS
|
||||
config GCC_VERSION_4_3_3
|
||||
default y if TARGET_ps3_petitboot
|
||||
default y if TARGET_etrax
|
||||
default y if TARGET_coldfire
|
||||
endif
|
||||
|
5
toolchain/uClibc/config-0.9.30+nptl/m68k
Normal file
5
toolchain/uClibc/config-0.9.30+nptl/m68k
Normal file
@ -0,0 +1,5 @@
|
||||
ARCH_BIG_ENDIAN=y
|
||||
TARGET_ARCH="m68k"
|
||||
TARGET_SUBARCH=""
|
||||
TARGET_m68k=y
|
||||
UCLIBC_HAS_LONG_DOUBLE_MATH=y
|
5
toolchain/uClibc/config-0.9.30.1/m68k
Normal file
5
toolchain/uClibc/config-0.9.30.1/m68k
Normal file
@ -0,0 +1,5 @@
|
||||
ARCH_BIG_ENDIAN=y
|
||||
TARGET_ARCH="m68k"
|
||||
TARGET_SUBARCH=""
|
||||
TARGET_m68k=y
|
||||
UCLIBC_HAS_LONG_DOUBLE_MATH=y
|
Loading…
Reference in New Issue
Block a user