summaryrefslogtreecommitdiff
path: root/ports/nrf/Makefile
diff options
context:
space:
mode:
authorarturo182 <arturo182@tlen.pl>2018-07-08 18:38:47 +0200
committerarturo182 <arturo182@tlen.pl>2018-07-10 14:59:22 +0200
commit2c63fb2a9468483353c177fc6df872709c259063 (patch)
treeeef5205b1cd92efd5be40ceae73cdca6e5d7557c /ports/nrf/Makefile
parent116346263585b16b970c6c682cf3c4a8b5221e15 (diff)
nrf: Remove the random hal and module
Thus getting rid of the whole old hal! The module is not needed because the common-hal nRF implementation uses HW RNG anyway.
Diffstat (limited to 'ports/nrf/Makefile')
-rw-r--r--ports/nrf/Makefile12
1 files changed, 2 insertions, 10 deletions
diff --git a/ports/nrf/Makefile b/ports/nrf/Makefile
index ca2315c1d..6f2decd3d 100644
--- a/ports/nrf/Makefile
+++ b/ports/nrf/Makefile
@@ -43,9 +43,7 @@ INC += -I$(BUILD)
INC += -I$(BUILD)/genhdr
INC += -I./../../lib/cmsis/inc
INC += -I./boards/$(BOARD)
-INC += -I./hal
INC += -I./modules/ubluepy
-INC += -I./modules/random
INC += -I./modules/ble
INC += -I./nrfx
INC += -I./nrfx/hal
@@ -63,7 +61,6 @@ CFLAGS += $(INC) -Wall -Werror -ansi -std=gnu99 -nostdlib $(COPT) $(NRF_DEFINES)
CFLAGS += -fno-strict-aliasing
CFLAGS += -fstack-usage -fno-builtin -fshort-enums
CFLAGS += -fdata-sections -ffunction-sections
-CFLAGS += -DNRF5_HAL_H='<$(MCU_VARIANT)_hal.h>'
CFLAGS += -D__START=main
LDFLAGS = $(CFLAGS)
@@ -89,10 +86,6 @@ LIBS := -L $(dir $(LIBM_FILE_NAME)) -lm
LIBS += -L $(dir $(LIBC_FILE_NAME)) -lc
LIBS += -L $(dir $(LIBGCC_FILE_NAME)) -lgcc
-SRC_HAL = $(addprefix hal/,\
- hal_rng.c \
- )
-
SRC_NRFX = $(addprefix nrfx/,\
drivers/src/nrfx_spim.c \
drivers/src/nrfx_twim.c \
@@ -135,7 +128,6 @@ DRIVERS_SRC_C += $(addprefix modules/,\
ubluepy/ubluepy_scanner.c \
ubluepy/ubluepy_scan_entry.c \
ble/modble.c \
- random/modrandom.c \
)
SRC_COMMON_HAL += \
@@ -201,7 +193,8 @@ SRC_SHARED_BINDINGS = \
bitbangio/__init__.c \
bitbangio/I2C.c \
bitbangio/SPI.c \
- bitbangio/OneWire.c
+ bitbangio/OneWire.c \
+ random/__init__.c
SRC_SHARED_MODULE_EXPANDED = $(addprefix shared-bindings/, $(SRC_SHARED_BINDINGS)) \
@@ -212,7 +205,6 @@ FROZEN_MPY_MPY_FILES := $(addprefix $(BUILD)/,$(FROZEN_MPY_PY_FILES:.py=.mpy))
OBJ += $(PY_O) $(SUPERVISOR_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
OBJ += $(BUILD)/pins_gen.o
-OBJ += $(addprefix $(BUILD)/, $(SRC_HAL:.c=.o))
OBJ += $(addprefix $(BUILD)/, $(SRC_NRFX:.c=.o))
OBJ += $(addprefix $(BUILD)/, $(DRIVERS_SRC_C:.c=.o))
OBJ += $(addprefix $(BUILD)/, $(SRC_COMMON_HAL_EXPANDED:.c=.o))