mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2025-02-17 23:20:07 +00:00
39 lines
710 B
Makefile
39 lines
710 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 -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))
|
|
|
|
#
|
|
# Supported SoCs
|
|
#
|
|
|
|
# Exynos
|
|
ifeq ($(SOC),exynos8895)
|
|
brand_name=exynos
|
|
endif
|
|
|
|
all: $(brand_name)/$(SOC).o copy-soc
|
|
|
|
copy-soc:
|
|
cp $(brand_name)/$(SOC).o ../soc.o
|