summaryrefslogtreecommitdiffstats
path: root/make/custom/lpc2478.cfg
blob: a86b9ac9dc6cee63af574ed73176f277ff6bd869 (plain) (blame)
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
#
#  Config file for LPC2478 (QVGA Base Board from Embedded Artists).
#
#  $Id$
#

include $(RTEMS_ROOT)/make/custom/default.cfg

RTEMS_CPU = arm
RTEMS_BSP_FAMILY = lpc24xx
RTEMS_BOARD_MODEL = LPC2478

CPU_CFLAGS = -mcpu=arm7tdmi -mstructure-size-boundary=8 -mapcs-frame \
	-D$(RTEMS_BOARD_MODEL) \
	-Wextra -Wno-unused -Wpointer-arith -Wcast-qual -Wconversion -Wmissing-prototypes

CFLAGS_OPTIMIZE_V = -Os -g

define bsp-post-link
	$(OBJCOPY) -O binary '$@' '$(basename $@).bin'
	gzip -f -9 '$(basename $@).bin'
	# mkimage -A arm -O rtems -T kernel -C gzip \
	#     -a a0000000 -e a0000000 -name '$(notdir $@)' \
	#     -d '$(basename $@).bin.gz' '$(basename $@).img'
	$(default-bsp-post-link)
endef