Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 1 | # comment out or override if you want to see the full output of each command |
| 2 | NOECHO ?= @ |
| 3 | |
| 4 | $(OUTBIN): $(OUTELF) |
| 5 | @echo generating image: $@ |
| 6 | $(NOECHO)$(SIZE) $< |
| 7 | $(NOCOPY)$(OBJCOPY) -O binary $< $@ |
| 8 | |
Subbaraman Narayanamurthy | 8bcd5fd | 2011-01-17 17:18:44 -0800 | [diff] [blame] | 9 | ifeq ($(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 $@ |
| 13 | else |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 14 | $(OUTELF): $(ALLOBJS) $(LINKER_SCRIPT) |
| 15 | @echo linking $@ |
| 16 | $(NOECHO)$(LD) $(LDFLAGS) -T $(LINKER_SCRIPT) $(ALLOBJS) $(LIBGCC) -o $@ |
Subbaraman Narayanamurthy | 8bcd5fd | 2011-01-17 17:18:44 -0800 | [diff] [blame] | 17 | endif |
| 18 | |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 19 | |
| 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 Narayanamurthy | 8bcd5fd | 2011-01-17 17:18:44 -0800 | [diff] [blame] | 36 | ifeq ($(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) |
| 40 | endif |
| 41 | |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 42 | include arch/$(ARCH)/compile.mk |
| 43 | |