mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
Added CROSS_CC and similar args for maintainers, see Maintainers.md
This commit is contained in:
parent
787098f3ad
commit
4d46c1907f
6 changed files with 23 additions and 23 deletions
|
@ -25,10 +25,9 @@ ifeq ($(DEFSBEENHERE),)
|
|||
$(error Can't find Makefile.defs)
|
||||
endif
|
||||
|
||||
CC = $(CROSS)gcc
|
||||
AS = $(CROSS)as
|
||||
LD = $(CROSS)ld
|
||||
OBJCOPY = $(CROSS)objcopy
|
||||
CROSS_CC = $(CROSS)gcc
|
||||
CROSS_LD = $(CROSS)gcc
|
||||
CROSS_OBJCOPY = $(CROSS)objcopy
|
||||
|
||||
OBJDIR = obj
|
||||
|
||||
|
@ -107,21 +106,21 @@ VERSIONOBJ = $(patsubst %.c,$(OBJDIR)/%.o,$(notdir $(VERSIONSRC)))
|
|||
|
||||
$(THUMBOBJ): $(OBJDIR)/%.o: %.c $(INCLUDES)
|
||||
$(info [-] CC $<)
|
||||
$(Q)$(CC) $(CROSS_CFLAGS) $(DEPFLAGS) -mthumb -o $@ $<
|
||||
$(Q)$(CROSS_CC) $(CROSS_CFLAGS) $(DEPFLAGS) -mthumb -o $@ $<
|
||||
$(Q)$(POSTCOMPILE)
|
||||
|
||||
$(ARMOBJ): $(OBJDIR)/%.o: %.c $(INCLUDES)
|
||||
$(info [-] CC $<)
|
||||
$(Q)$(CC) $(CROSS_CFLAGS) $(DEPFLAGS) -o $@ $<
|
||||
$(Q)$(CROSS_CC) $(CROSS_CFLAGS) $(DEPFLAGS) -o $@ $<
|
||||
$(Q)$(POSTCOMPILE)
|
||||
|
||||
$(ASMOBJ): $(OBJDIR)/%.o: %.s
|
||||
$(info [-] CC $<)
|
||||
$(Q)$(CC) $(CROSS_CFLAGS) -o $@ $<
|
||||
$(Q)$(CROSS_CC) $(CROSS_CFLAGS) -o $@ $<
|
||||
|
||||
$(VERSIONOBJ): $(OBJDIR)/%.o: %.c $(INCLUDES)
|
||||
$(info [-] CC $<)
|
||||
$(Q)$(CC) $(CROSS_CFLAGS) -mthumb -o $@ $<
|
||||
$(Q)$(CROSS_CC) $(CROSS_CFLAGS) -mthumb -o $@ $<
|
||||
|
||||
# This objcopy call translates physical flash addresses to logical addresses
|
||||
# without touching start address or RAM addresses (.bss and .data sections)
|
||||
|
@ -132,7 +131,7 @@ OBJCOPY_TRANSLATIONS = --no-change-warnings \
|
|||
--change-section-address .commonarea+0
|
||||
$(OBJDIR)/%.s19: $(OBJDIR)/%.elf
|
||||
$(info [=] GEN $@)
|
||||
$(Q)$(OBJCOPY) -Osrec --srec-forceS3 --strip-debug $(OBJCOPY_TRANSLATIONS) $^ $@
|
||||
$(Q)$(CROSS_OBJCOPY) -Osrec --srec-forceS3 --strip-debug $(OBJCOPY_TRANSLATIONS) $^ $@
|
||||
|
||||
# easy printing of MAKE VARIABLES
|
||||
print-%: ; @echo $* = $($*)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue