esp32-s2_dfu/hw/bsp/raspberrypi4/family.mk

39 lines
621 B
Makefile
Raw Normal View History

2021-09-18 01:51:34 +02:00
UF2_FAMILY_ID = 0x57755a57
include $(TOP)/$(BOARD_PATH)/board.mk
MCU_DIR = hw/mcu/broadcom/bcm2711
CC = clang
CFLAGS += \
-Wall \
-O0 \
-ffreestanding \
-nostdlib \
-nostartfiles \
-std=c17 \
-mgeneral-regs-only \
-DCFG_TUSB_MCU=OPT_MCU_BCM2711
SRC_C += \
src/portable/broadcom/synopsys/dcd_synopsys.c \
2021-09-23 00:19:02 +02:00
$(MCU_DIR)/interrupts.c \
2021-09-18 01:51:34 +02:00
$(MCU_DIR)/io.c \
2021-09-23 00:19:02 +02:00
$(MCU_DIR)/mmu.c
2021-09-18 01:51:34 +02:00
CROSS_COMPILE = aarch64-none-elf-
SKIP_NANOLIB = 1
LD_FILE = $(MCU_DIR)/link.ld
INC += \
$(TOP)/$(BOARD_PATH) \
$(TOP)/$(MCU_DIR)
SRC_S += $(MCU_DIR)/boot.S
$(BUILD)/kernel8.img: $(BUILD)/$(PROJECT).elf
$(OBJCOPY) -O binary $^ $@