Update the Makefile support for ARM
This commit is contained in:
1 parent
0191fb78ec
commit
d286946d0f
6 files changed
+264
-26
No files matched your search
@@ -42,9 +42,13 @@ CROSS_OBJCOPY = $(CROSS)objcopy
|
||||
OBJDIR = obj
|
||||
|
||||
INCLUDE = -I../include -I../common_arm -I../common_fpga -I../common -I.
|
||||
INCLUDE += -I../common_arm/flash_code -I../common_arm/flash_data -I../common_arm/fpga -I../common_arm/gpio
|
||||
INCLUDE += -I../common_arm/rssi -I../common_arm/sys -I../common_arm/ticks -I../common_arm/usb -I../common_arm/wdt
|
||||
|
||||
# Also search prerequisites in the common directory (for usb.c), the fpga directory (for fpga.bit), and the lz4 directory
|
||||
VPATH = . ../common_arm ../common ../common/crapto1 ../common/mbedtls ../common/lz4 ../fpga ../armsrc/Standalone ../common/hitag2
|
||||
VPATH += ../common_arm/flash_code ../common_arm/flash_data ../common_arm/fpga ../common_arm/gpio
|
||||
VPATH += ../common_arm/rssi ../common_arm/sys ../common_arm/ticks ../common_arm/usb ../common_arm/wdt
|
||||
|
||||
INCLUDES = ../include/proxmark3_arm.h ../include/at91sam7s512.h ../include/config_gpio.h ../include/pm3_cmd.h
|
||||
|
||||
@@ -106,7 +110,7 @@ CROSS_CFLAGS += -DON_DEVICE $(INCLUDE) $(APP_CFLAGS)
|
||||
CROSS_LDFLAGS += -nostartfiles -nodefaultlibs -Wl,--gc-sections -Wl,--build-id=none -Wl,--nmagic
|
||||
#CROSS_LDFLAGS += -Wl,--print-gc-sections
|
||||
|
||||
LIBS = -lgcc
|
||||
LIBS += -lgcc
|
||||
|
||||
# Flags to generate temporary dependency files
|
||||
DEPFLAGS = -MT $@ -MMD -MP -MF $(OBJDIR)/$*.Td
|
||||
|
||||
+15
-5
@@ -40,6 +40,8 @@ Known definitions:
|
||||
+--------------------------------------------------+
|
||||
| PM3ULTIMATE | Proxmark3 Ultimate with XC2S50 |
|
||||
+--------------------------------------------------+
|
||||
| PM5 | Proxmark5 ICEMAN Edition |
|
||||
+--------------------------------------------------+
|
||||
|
||||
+============================================+
|
||||
| PLATFORM_EXTRAS | DESCRIPTION |
|
||||
@@ -111,7 +113,7 @@ ifeq ($(PLATFORM),PM3RDV4)
|
||||
ifneq ($(SKIP_ISO15693),1)
|
||||
FPGA_BITSTREAMS += fpga_pm3_hf_15.bit
|
||||
endif
|
||||
PLATFORM_DEFS = -DWITH_SMARTCARD -DWITH_FLASH -DRDV4
|
||||
PLATFORM_DEFS = -DWITH_SMARTCARD -DWITH_FLASH -DRDV4 -DCHIP_AT91SAM7S
|
||||
PLTNAME = Proxmark3 RDV4
|
||||
PLATFORM_FPGA = xc2s30
|
||||
RDV4 = yes
|
||||
@@ -131,7 +133,7 @@ else ifeq ($(PLATFORM),PM3OTHER)
|
||||
PLTNAME = Proxmark3 generic target
|
||||
PLATFORM_FPGA = xc2s30
|
||||
ifeq ($(LED_ORDER),PM3EASY)
|
||||
PLATFORM_DEFS = -DLED_ORDER_PM3EASY
|
||||
PLATFORM_DEFS = -DLED_ORDER_PM3EASY -DCHIP_AT91SAM7S
|
||||
endif
|
||||
else ifeq ($(PLATFORM),PM3GENERIC)
|
||||
# FPGA bitstream files, the order doesn't matter anymore
|
||||
@@ -148,12 +150,12 @@ else ifeq ($(PLATFORM),PM3GENERIC)
|
||||
PLTNAME = Proxmark3 generic target
|
||||
PLATFORM_FPGA = xc2s30
|
||||
ifeq ($(LED_ORDER),PM3EASY)
|
||||
PLATFORM_DEFS = -DLED_ORDER_PM3EASY
|
||||
PLATFORM_DEFS = -DLED_ORDER_PM3EASY -DCHIP_AT91SAM7S
|
||||
endif
|
||||
else ifeq ($(PLATFORM),PM3ICOPYX)
|
||||
# FPGA bitstream files, the order doesn't matter anymore - only hf has a bitstream
|
||||
FPGA_BITSTREAMS = fpga_icopyx_hf.bit
|
||||
PLATFORM_DEFS = -DWITH_FLASH -DICOPYX -DXC3
|
||||
PLATFORM_DEFS = -DWITH_FLASH -DICOPYX -DXC3 -DCHIP_AT91SAM7S
|
||||
PLTNAME = iCopy-X with XC3S100E
|
||||
PLATFORM_FPGA = xc3s100e
|
||||
else ifeq ($(PLATFORM),PM3ULTIMATE)
|
||||
@@ -168,9 +170,17 @@ else ifeq ($(PLATFORM),PM3ULTIMATE)
|
||||
ifneq ($(SKIP_ISO15693),1)
|
||||
FPGA_BITSTREAMS += fpga_pm3_ult_hf_15.bit
|
||||
endif
|
||||
PLATFORM_DEFS = -DWITH_FLASH -DXC2S50
|
||||
PLATFORM_DEFS = -DWITH_FLASH -DXC2S50 -DCHIP_AT91SAM7S
|
||||
PLTNAME = Proxmark3 Ultimate with XC2S50
|
||||
PLATFORM_FPGA = xc2s50
|
||||
else ifeq ($(PLATFORM),PM5)
|
||||
# TODO DXL 我们暂时不需要指定FPGA比特流文件,因为实际上我们大概率要做FPGA的静态烧录,而不是附加到ARM固件中动态下载
|
||||
FPGA_BITSTREAMS = fpga_pm3_hf.bit # TODO DXL 虽然可以不把打包比特流,但是还是得把FPGA的版本信息给生成,让EXE依赖。
|
||||
SKIP_FPGA_EMBED = true # important!!! disable the fpga bit files pack to arm!
|
||||
SKIP_COMPRESSION = true # Skip data section compress. The new mcu has enough flash space.
|
||||
PLATFORM_DEFS = -DWITH_FLASH -DPM5 -DCHIP_AT32F435_37 # TODO 暂时不要编译i2c -DWITH_SMARTCARD
|
||||
PLTNAME = Proxmark5
|
||||
PLATFORM_FPGA = GW1NR-LV2MG49GC6/i5
|
||||
else
|
||||
$(error Invalid or empty PLATFORM: $(PLATFORM). $(KNOWN_DEFINITIONS))
|
||||
endif
|
||||
|
||||
Reference in new issue
Block a user