mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2026-08-15 05:18:32 +00:00
28 lines
591 B
Makefile
28 lines
591 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
#
|
|
# Compiler defines
|
|
#
|
|
CCPREFIX?=aarch64-linux-gnu-
|
|
CC=$(CCPREFIX)gcc
|
|
CPP=$(CCPREFIX)cpp
|
|
LD=$(CCPREFIX)ld
|
|
OBJCPY=$(CCPREFIX)objcopy
|
|
|
|
#
|
|
# Compiler flags
|
|
#
|
|
CFLAGS = -march=armv8-a -Wall -nodefaultlibs \
|
|
-nostdlib -nostartfiles -fno-builtin \
|
|
-nostdinc -Wstrict-prototypes -std=gnu11 \
|
|
-Wno-main -I'../include'
|
|
|
|
#
|
|
# Split BOARD definition into 2 parts - manufacturer and codename
|
|
#
|
|
split_board := $(subst -, ,$(BOARD:%=%))
|
|
board_manu := $(word 1,$(split_board))
|
|
board_codename := $(word 2,$(split_board))
|
|
|
|
all: simplefb/simplefb.o
|