build: unify arm target cflags
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38211 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
b2e35bbd7b
commit
49104b5843
|
@ -217,7 +217,16 @@ ifeq ($(DUMP),1)
|
|||
endif
|
||||
ifneq ($(findstring arm,$(ARCH)),)
|
||||
CPU_TYPE ?= xscale
|
||||
CPU_CFLAGS_arm920t = -march=armv4t -mtune=arm920t
|
||||
CPU_CFLAGS_arm926ej-s = -march=armv5te -mtune=arm926ej-s
|
||||
CPU_CFLAGS_arm1136j-s = -march=armv6 -mtune=arm1136j-s
|
||||
CPU_CFLAGS_arm1176jzf-s = -march=armv6 -mtune=arm1176jzf-s
|
||||
CPU_CFLAGS_cortex-a9 = -march=armv7-a -mtune=cortex-a9
|
||||
CPU_CFLAGS_fa526 = -march=armv4 -mtune=fa526
|
||||
CPU_CFLAGS_mpcore = -march=armv6k -mtune=mpcore
|
||||
CPU_CFLAGS_xscale = march=armv5te -mtune=xscale
|
||||
CPU_CFLAGS_vfp = -mfpu=vfp -mfloat-abi=softfp
|
||||
CPU_CFLAGS_vfp3 = -mfpu=vfp3-d16 -mfloat-abi=softfp
|
||||
endif
|
||||
ifeq ($(ARCH),sparc)
|
||||
CPU_TYPE = sparc
|
||||
|
|
|
@ -11,7 +11,7 @@ BOARD:=at91
|
|||
MAINTAINER:=Claudio Mignanti <c.mignanti@gmail.com>
|
||||
BOARDNAME:=Atmel AT91
|
||||
FEATURES:=squashfs targz ext2 usb
|
||||
CFLAGS:=-Os -pipe -march=armv5te -mtune=arm926ej-s
|
||||
CPU_TYPE:=arm926ej-s
|
||||
|
||||
LINUX_VERSION:=3.8.13
|
||||
|
||||
|
|
|
@ -11,6 +11,8 @@ BOARD:=bcm53xx
|
|||
BOARDNAME:=Broadcom BCM47xx/53xx with ARM CPU
|
||||
FEATURES:=squashfs usb pci pcie gpio
|
||||
MAINTAINER:=Hauke Mehrtens <hauke@hauke-m.de>
|
||||
CPU_TYPE:=cortex-a9
|
||||
CPU_SUBTYPE:=vfp
|
||||
|
||||
LINUX_VERSION:=3.10.12
|
||||
|
||||
|
@ -20,8 +22,6 @@ define Target/Description
|
|||
Build firmware images for Broadcom based BCM47xx/53xx routers with ARM CPU, *not* MIPS.
|
||||
endef
|
||||
|
||||
CFLAGS:=-Os -pipe -mtune=cortex-a9 -march=armv7-a -mfpu=vfp -mfloat-abi=softfp
|
||||
|
||||
KERNELNAME:="zImage dtbs"
|
||||
|
||||
DEFAULT_PACKAGES += swconfig
|
||||
|
|
|
@ -12,6 +12,8 @@ BOARD:=brcm2708
|
|||
BOARDNAME:=Broadcom BCM2708/BCM2835
|
||||
FEATURES:=ext4 audio usb usbgadget display gpio
|
||||
MAINTAINER:=Florian Fainelli <florian@openwrt.org>
|
||||
CPU_TYPE:=arm1176jzf-s
|
||||
CPU_SUBTYPE:=vfp
|
||||
|
||||
LINUX_VERSION:=3.10.12
|
||||
|
||||
|
@ -23,6 +25,4 @@ define Target/Description
|
|||
Currently produces SD Card image for Raspberry Pi.
|
||||
endef
|
||||
|
||||
CFLAGS:=-pipe -march=armv6 -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=softfp -marm
|
||||
|
||||
$(eval $(call BuildTarget))
|
||||
|
|
|
@ -10,7 +10,7 @@ ARCH:=arm
|
|||
BOARD:=cns21xx
|
||||
BOARDNAME:=Cavium Networks Econa CNS21xx
|
||||
FEATURES:=squashfs
|
||||
CFLAGS:=-Os -pipe -march=armv4 -mtune=fa526
|
||||
CPU_TYPE:=fa526
|
||||
|
||||
LINUX_VERSION:=3.10.12
|
||||
|
||||
|
|
|
@ -10,7 +10,8 @@ ARCH:=arm
|
|||
BOARD:=cns3xxx
|
||||
BOARDNAME:=Cavium Networks Econa CNS3xxx
|
||||
FEATURES:=squashfs fpu gpio pcie usb usbgadget
|
||||
CFLAGS:=-Os -pipe -march=armv6k -mtune=mpcore -mfloat-abi=softfp -mfpu=vfp
|
||||
CPU_TYPE:=mpcore
|
||||
CPU_SUBTYPE:=vfp
|
||||
MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
|
||||
|
||||
LINUX_VERSION:=3.8.13
|
||||
|
|
|
@ -10,7 +10,7 @@ ARCH:=arm
|
|||
BOARD:=ep93xx
|
||||
BOARDNAME:=Cirrus Logic EP93xx
|
||||
FEATURES:=squashfs ext4 targz usb display sound
|
||||
CFLAGS:=-Os -pipe -march=armv4t
|
||||
CPU_TYPE:=arm920t
|
||||
MAINTAINER:=Florian Fainelli <florian@openwrt.org>
|
||||
|
||||
LINUX_VERSION:=3.8.13
|
||||
|
|
|
@ -10,7 +10,7 @@ ARCH:=arm
|
|||
BOARD:=gemini
|
||||
BOARDNAME:=Cortina Systems CS351x
|
||||
FEATURES:=squashfs pci
|
||||
CFLAGS:=-Os -pipe -march=armv4 -mtune=fa526
|
||||
CPU_TYPE:=fa526
|
||||
MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
|
||||
|
||||
LINUX_VERSION:=3.9.11
|
||||
|
|
|
@ -10,7 +10,8 @@ ARCH:=arm
|
|||
BOARD:=imx23
|
||||
BOARDNAME:=Freescale i.MX23 series
|
||||
FEATURES:=ext4 rtc usb gpio
|
||||
CFLAGS:=-Os -pipe -march=armv5te -mtune=arm926ej-s
|
||||
CPU_TYPE:=arm926ej-s
|
||||
|
||||
MAINTAINER:=Zoltan HERPAI <wigyori@uid0.hu>
|
||||
LINUX_VERSION:=3.10.12
|
||||
KERNELNAME:="zImage dtbs"
|
||||
|
|
|
@ -10,7 +10,8 @@ ARCH:=arm
|
|||
BOARD:=imx6
|
||||
BOARDNAME:=Freescale i.MX 6 Series
|
||||
FEATURES:=audio display gpio pcie usb usbgadget squashfs targz
|
||||
CFLAGS:=-Os -pipe -mtune=cortex-a9 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp
|
||||
CPU_TYPE:=cortex-a9
|
||||
CPU_SUBTYPE:=vfp3
|
||||
MAINTAINER:=Luka Perkov <luka@openwrt.org>
|
||||
|
||||
LINUX_VERSION:=3.10.12
|
||||
|
|
|
@ -10,7 +10,7 @@ ARCH:=arm
|
|||
BOARD:=mcs814x
|
||||
BOARDNAME:=Moschip MCS814x
|
||||
FEATURES:=usb squashfs
|
||||
CFLAGS=-Os -pipe -march=armv5te -mtune=arm926ej-s
|
||||
CPU_TYPE:=arm926ej-s
|
||||
MAINTAINER:=Florian Fainelli <florian@openwrt.org>
|
||||
|
||||
LINUX_VERSION:=3.3.8
|
||||
|
|
|
@ -10,7 +10,8 @@ ARCH:=arm
|
|||
BOARD:=mvebu
|
||||
BOARDNAME:=Marvell Armada XP/370
|
||||
FEATURES:=targz usb pci pcie gpio
|
||||
CFLAGS:=-Os -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp
|
||||
CPU_TYPE:=cortex-a9
|
||||
CPU_SUBTYPE:=vfp3
|
||||
|
||||
LINUX_VERSION:=3.8.13
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ BOARD:=omap24xx
|
|||
BOARDNAME:=TI OMAP24xx
|
||||
MAINTAINER:=Michael Buesch <m@bues.ch>
|
||||
FEATURES:=targz squashfs jffs2_nand usb usbgadget display gpio audio broken
|
||||
CPU_TYPE:=arm1136j-s
|
||||
|
||||
LINUX_VERSION:=3.3.8
|
||||
|
||||
|
@ -18,8 +19,6 @@ define Target/Description
|
|||
TI OMAP-24xx
|
||||
endef
|
||||
|
||||
CFLAGS:=-Os -pipe -march=armv6 -mtune=arm1136j-s
|
||||
|
||||
KERNELNAME:="zImage"
|
||||
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
|
|
@ -10,10 +10,11 @@ ARCH:=arm
|
|||
BOARD:=omap4
|
||||
BOARDNAME:=TI OMAP4
|
||||
FEATURES:=usb targz audio display
|
||||
CPU_TYPE:=cortex-a9
|
||||
CPU_SUBTYPE:=vfp3
|
||||
|
||||
LINUX_VERSION:=3.3.8
|
||||
|
||||
CFLAGS:=-Os -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp
|
||||
MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
|
||||
|
||||
KERNELNAME:="uImage"
|
||||
|
|
|
@ -10,7 +10,6 @@ ARCH:=arm
|
|||
BOARD:=orion
|
||||
BOARDNAME:=Marvell Orion
|
||||
SUBTARGETS:=generic harddisk
|
||||
CFLAGS=-Os -pipe -march=armv5te -mtune=xscale
|
||||
MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
|
||||
|
||||
LINUX_VERSION:=3.3.8
|
||||
|
|
|
@ -10,7 +10,8 @@ ARCH:=arm
|
|||
BOARD:=realview
|
||||
BOARDNAME:=ARM Ltd. Realview board (qemu)
|
||||
FEATURES:=fpu ramdisk
|
||||
CFLAGS:=-Os -pipe -march=armv6k -mtune=mpcore -mfloat-abi=softfp -mfpu=vfp
|
||||
CPU_TYPE:=mpcore
|
||||
CPU_SUBTYPE:=vfp
|
||||
MAINTAINER:=Florian Fainelli <florian@openwrt.org>
|
||||
|
||||
LINUX_VERSION:=3.10.12
|
||||
|
|
Loading…
Reference in New Issue