67
67
# # GENDIR=/home/mydir/mygendir
68
68
# SETDEFINES=FileDefines # settings which are called after definitions for board are done
69
69
# # SETDEFINES=/home/mydir/myDefines
70
- # UNSUPPORTEDMAKE=FileUnsu# Adds additional files from unsupported sources(means not supported by Gordon) to actual make
70
+ # UNSUPPORTEDMAKE=FileUnsu# Adds additional files from unsupported sources(means not supported by Gordon) to actual make
71
71
# # UNSUPPORTEDMAKE=/home/mydir/unsupportedCommands
72
72
# PROJECTNAME=myBigProject# Sets projectname
73
73
# BLACKLIST=fileBlacklist # Removes javascript commands given in a file from compilation and therefore from project defined firmware
@@ -673,7 +673,7 @@ USE_HASHLIB=1
673
673
USE_GRAPHICS =1
674
674
USE_CRYPTO =1
675
675
USE_TLS =1
676
- USE_TELNET =1
676
+ USE_TELNET =1
677
677
# USE_LCD_SDL=1
678
678
679
679
ifdef MACOSX
@@ -688,7 +688,7 @@ endif
688
688
endif
689
689
endif
690
690
691
- # set or reset defines like USE_GRAPHIC from an external file to customize firmware
691
+ # set or reset defines like USE_GRAPHIC from an external file to customize firmware
692
692
ifdef SETDEFINES
693
693
include $(SETDEFINES )
694
694
endif
@@ -878,11 +878,11 @@ INCLUDE += -I$(ROOT)/libs/math
878
878
WRAPPERSOURCES += libs/math/jswrap_math.c
879
879
ifeq ($(FAMILY ) ,ESP8266)
880
880
# special ESP8266 maths lib that doesn't go into RAM
881
- LIBS += -lmirom
881
+ LIBS += -lmirom
882
882
LDFLAGS += -L$(ROOT ) /targets/esp8266
883
883
else
884
884
# everything else uses normal maths lib
885
- LIBS += -lm
885
+ LIBS += -lm
886
886
endif
887
887
endif
888
888
@@ -1091,7 +1091,7 @@ libs/crypto/mbedtls/library/cipher_wrap.c \
1091
1091
libs/crypto/mbedtls/library/md.c \
1092
1092
libs/crypto/mbedtls/library/md_wrap.c \
1093
1093
libs/crypto/mbedtls/library/oid.c \
1094
- libs/crypto/mbedtls/library/pkcs5.c
1094
+ libs/crypto/mbedtls/library/pkcs5.c
1095
1095
endif
1096
1096
endif
1097
1097
@@ -1290,7 +1290,7 @@ ifeq ($(FAMILY), NRF51)
1290
1290
1291
1291
NRF5X =1
1292
1292
NRF5X_SDK_PATH =$(ROOT ) /targetlibs/nrf5x/nrf5_sdk
1293
-
1293
+
1294
1294
# ARCHFLAGS are shared by both CFLAGS and LDFLAGS.
1295
1295
ARCHFLAGS = -mcpu=cortex-m0 -mthumb -mabi=aapcs -mfloat-abi=soft # Use nRF51 makefiles provided in SDK as reference.
1296
1296
@@ -1312,7 +1312,7 @@ ifeq ($(FAMILY), NRF51)
1312
1312
NRF_BOOTLOADER = $(ROOT ) /targetlibs/nrf5x/nrf5_singlebank_bl_hex/nrf51_s130_singlebank_bl.hex
1313
1313
NFR_BL_START_ADDR = 0x3C000
1314
1314
NRF_BOOTLOADER_SETTINGS = $(ROOT ) /targetlibs/nrf5x/nrf5_singlebank_bl_hex/bootloader_settings_nrf51.hex # This file writes 0x3FC00 with 0x01 so we can flash the application with the bootloader.
1315
-
1315
+
1316
1316
endif
1317
1317
1318
1318
endif # FAMILY == NRF51
@@ -1324,7 +1324,7 @@ ifeq ($(FAMILY), NRF52)
1324
1324
1325
1325
# ARCHFLAGS are shared by both CFLAGS and LDFLAGS.
1326
1326
ARCHFLAGS = -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfloat-abi=hard -mfpu=fpv4-sp-d16
1327
-
1327
+
1328
1328
# nRF52 specific.
1329
1329
INCLUDE += -I$(NRF5X_SDK_PATH ) /../nrf52_config
1330
1330
INCLUDE += -I$(NRF5X_SDK_PATH ) /components/softdevice/s132/headers
@@ -1444,12 +1444,12 @@ ifdef NRF5X
1444
1444
1445
1445
# Just try and get rid of the compile warnings.
1446
1446
CFLAGS += -Wno-sign-conversion -Wno-conversion -Wno-unused-parameter -fomit-frame-pointer # this is for device manager in nordic sdk
1447
- DEFINES += -DBLUETOOTH -D$(BOARD )
1447
+ DEFINES += -DBLUETOOTH -D$(BOARD )
1448
1448
1449
1449
ARM = 1
1450
1450
ARM_HAS_OWN_CMSIS = 1 # Nordic uses its own CMSIS files in its SDK, these are up-to-date.
1451
1451
INCLUDE += -I$(ROOT ) /targetlibs/nrf5x -I$(NRF5X_SDK_PATH )
1452
-
1452
+
1453
1453
TEMPLATE_PATH = $(ROOT ) /targetlibs/nrf5x/nrf5x_linkers # This is where the common linker for both nRF51 & nRF52 is stored.
1454
1454
LDFLAGS += -L$(TEMPLATE_PATH )
1455
1455
@@ -1486,6 +1486,7 @@ ifdef NRF5X
1486
1486
INCLUDE += -I$(NRF5X_SDK_PATH ) /components/libraries/trace
1487
1487
INCLUDE += -I$(NRF5X_SDK_PATH ) /components/softdevice/common/softdevice_handler
1488
1488
INCLUDE += -I$(NRF5X_SDK_PATH ) /components/drivers_nrf/twi_master
1489
+ INCLUDE += -I$(NRF5X_SDK_PATH)/components/drivers_nrf/hal/nrf_pwm
1489
1490
1490
1491
TARGETSOURCES += \
1491
1492
$(NRF5X_SDK_PATH ) /components/libraries/util/app_error.c \
@@ -1507,7 +1508,7 @@ ifdef NRF5X
1507
1508
$(NRF5X_SDK_PATH ) /components/softdevice/common/softdevice_handler/softdevice_handler.c \
1508
1509
$(NRF5X_SDK_PATH ) /components/drivers_nrf/hal/nrf_nvmc.c \
1509
1510
$(NRF5X_SDK_PATH ) /components/drivers_nrf/twi_master/nrf_drv_twi.c \
1510
- $(NRF5X_SDK_PATH ) /components/drivers_nrf/hal/nrf_adc.c
1511
+ $(NRF5X_SDK_PATH ) /components/drivers_nrf/hal/nrf_adc.c
1511
1512
# $(NRF5X_SDK_PATH)/components/libraries/util/nrf_log.c
1512
1513
1513
1514
ifdef USE_BOOTLOADER
@@ -1669,7 +1670,7 @@ else ifdef EFM32
1669
1670
LDFLAGS += $(OPTIMIZEFLAGS ) $(ARCHFLAGS )
1670
1671
LDFLAGS += -Wl,--start-group -lgcc -lc -lnosys -Wl,--end-group
1671
1672
else
1672
- LDFLAGS += $(OPTIMIZEFLAGS ) $(ARCHFLAGS )
1673
+ LDFLAGS += $(OPTIMIZEFLAGS ) $(ARCHFLAGS )
1673
1674
endif
1674
1675
1675
1676
ifdef EMBEDDED
@@ -1721,7 +1722,7 @@ ESPTOOL ?= $(ESP8266_SDK_ROOT)/esptool/esptool.py
1721
1722
INCLUDE += -I$(ESP8266_SDK_ROOT ) /include -I$(ROOT ) /targets/esp8266
1722
1723
endif # ESP8266
1723
1724
1724
- # Adds additional files from unsupported sources(means not supported by Gordon) to actual make
1725
+ # Adds additional files from unsupported sources(means not supported by Gordon) to actual make
1725
1726
ifdef UNSUPPORTEDMAKE
1726
1727
include $(UNSUPPORTEDMAKE )
1727
1728
endif
@@ -1760,7 +1761,7 @@ ifdef USE_NET
1760
1761
# hack to ensure that Pico/etc have all possible firmware configs listed
1761
1762
$(Q)python scripts/build_board_json.py $(WRAPPERSOURCES) $(DEFINES) -DUSE_WIZNET=1 -DUSE_CC3000=1 -B$(BOARD)
1762
1763
else
1763
- $(Q)python scripts/build_board_json.py $(WRAPPERSOURCES) $(DEFINES) -B$(BOARD)
1764
+ $(Q)python scripts/build_board_json.py $(WRAPPERSOURCES) $(DEFINES) -B$(BOARD)
1764
1765
endif
1765
1766
1766
1767
@@ -1789,7 +1790,7 @@ $(PLATFORM_CONFIG_FILE): boards/$(BOARD).py scripts/build_platform_config.py
1789
1790
$(Q ) python scripts/build_platform_config.py $(BOARD ) $(HEADERFILENAME )
1790
1791
1791
1792
# skips compiling and linking, if NO_COMPILE is defined
1792
- # Generation of temporary files and setting of wrappersources is already done this moment
1793
+ # Generation of temporary files and setting of wrappersources is already done this moment
1793
1794
ifndef NO_COMPILE
1794
1795
1795
1796
compile =$(CC ) $(CFLAGS ) $< -o $@
@@ -1867,7 +1868,7 @@ ifdef USE_CRYPTO
1867
1868
$(Q)$(OBJCOPY) --rename-section .rodata=.irom0.text libs/crypto/mbedtls/library/sha1.o
1868
1869
$(Q)$(OBJCOPY) --rename-section .rodata=.irom0.text libs/crypto/mbedtls/library/sha256.o
1869
1870
$(Q)$(OBJCOPY) --rename-section .rodata=.irom0.text libs/crypto/mbedtls/library/sha512.o
1870
- endif
1871
+ endif
1871
1872
$(Q)$(LD) $(OPTIMIZEFLAGS) -nostdlib -Wl,--no-check-sections -Wl,-static -r -o $@ $(OBJS)
1872
1873
$(Q)$(OBJCOPY) --rename-section .text=.irom0.text --rename-section .literal=.irom0.literal $@
1873
1874
0 commit comments