blob: ffbcdc49bd0bdfbe5db1fc5cf0c8cea006e11ffb [file] [log] [blame]
Travis Geiselbrecht1d0df692008-09-01 02:26:09 -07001# comment out or override if you want to see the full output of each command
2NOECHO ?= @
3
4$(OUTBIN): $(OUTELF)
5 @echo generating image: $@
6 $(NOECHO)$(SIZE) $<
7 $(NOCOPY)$(OBJCOPY) -O binary $< $@
8
Subbaraman Narayanamurthy8bcd5fd2011-01-17 17:18:44 -08009ifeq ($(ENABLE_TRUSTZONE), 1)
10$(OUTELF): $(ALLOBJS) $(LINKER_SCRIPT) $(OUTPUT_TZ_BIN)
11 @echo linking $@
12 $(NOECHO)$(LD) $(LDFLAGS) -T $(LINKER_SCRIPT) $(OUTPUT_TZ_BIN) $(ALLOBJS) $(LIBGCC) -o $@
13else
Travis Geiselbrecht1d0df692008-09-01 02:26:09 -070014$(OUTELF): $(ALLOBJS) $(LINKER_SCRIPT)
15 @echo linking $@
16 $(NOECHO)$(LD) $(LDFLAGS) -T $(LINKER_SCRIPT) $(ALLOBJS) $(LIBGCC) -o $@
Subbaraman Narayanamurthy8bcd5fd2011-01-17 17:18:44 -080017endif
18
Travis Geiselbrecht1d0df692008-09-01 02:26:09 -070019
20$(OUTELF).sym: $(OUTELF)
21 @echo generating symbols: $@
22 $(NOECHO)$(OBJDUMP) -t $< | $(CPPFILT) > $@
23
24$(OUTELF).lst: $(OUTELF)
25 @echo generating listing: $@
26 $(NOECHO)$(OBJDUMP) -Mreg-names-raw -d $< | $(CPPFILT) > $@
27
28$(OUTELF).debug.lst: $(OUTELF)
29 @echo generating listing: $@
30 $(NOECHO)$(OBJDUMP) -Mreg-names-raw -S $< | $(CPPFILT) > $@
31
32$(OUTELF).size: $(OUTELF)
33 @echo generating size map: $@
34 $(NOECHO)$(NM) -S --size-sort $< > $@
35
Subbaraman Narayanamurthy8bcd5fd2011-01-17 17:18:44 -080036ifeq ($(ENABLE_TRUSTZONE), 1)
37$(OUTPUT_TZ_BIN): $(INPUT_TZ_BIN)
38 @echo generating TZ output from TZ input
39 $(NOECHO)$(OBJCOPY) -I binary -B arm -O elf32-littlearm $(INPUT_TZ_BIN) $(OUTPUT_TZ_BIN)
40endif
41
Travis Geiselbrecht1d0df692008-09-01 02:26:09 -070042include arch/$(ARCH)/compile.mk
43