forked from phoenix-rtos/phoenix-rtos-filesystems
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.arm
36 lines (27 loc) · 951 Bytes
/
Makefile.arm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#
# Makefile for Phoenix-RTOS 3 device drivers
#
# ARM (Cortex-A5/A7/A9) options
#
# Copyright 2018 Phoenix Systems
#
CROSS ?= arm-phoenix-
SUBDIRS = tty/libtty tty/imx6ull-uart storage/imx6ull-flash gpio/imx6ull-gpio utils/imx6ull-nandtool dma/imx6ull-sdma spi/imx6ull-ecspi utils/imx6ull-otp usb/imx6ull-ehci usb/telit-le910
MKDEP = $(CROSS)gcc -MM
MKDEPFLAGS = $(CFLAGS)
CC = $(CROSS)gcc
CFLAGS += -Os -Wall -Wstrict-prototypes -g\
-mcpu=cortex-a7 -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -mthumb\
-fomit-frame-pointer -mno-unaligned-access
CFLAGS += -fdata-sections -ffunction-sections
AR = $(CROSS)ar
ARFLAGS = -r
LD = $(CROSS)ld
LDFLAGS = -z max-page-size=0x1000
LDFLAGS += --gc-sections
GCCLIB := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
PHOENIXLIB := $(shell $(CC) $(CFLAGS) -print-file-name=libphoenix.a)
LDLIBS := $(PHOENIXLIB) $(GCCLIB)
OBJCOPY = $(CROSS)objcopy
OBJDUMP = $(CROSS)objdump
STRIP = $(CROSS)strip