-
Notifications
You must be signed in to change notification settings - Fork 12
/
54L15.mk
62 lines (52 loc) · 1.68 KB
/
54L15.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright 2018 Oticon A/S
# Copyright 2024 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
include make_inc/pre.mk
HW_SRCS_FILE=make_inc/54L15_hw_files
HAL_FLPR_SRCS_FILE=make_inc/54L15_flpr_hal_files
HAL_APP_SRCS_FILE=make_inc/54L15_app_hal_files
SRCS_HW=$(shell cat ${HW_SRCS_FILE})
SRCS_HAL_FLPR=$(shell cat ${HAL_FLPR_SRCS_FILE})
SRCS_HAL_APP=$(shell cat ${HAL_APP_SRCS_FILE})
ifneq (,$(findstring hal_flpr,$(MAKECMDGOALS)))
SRCS:=${SRCS_HAL_FLPR}
LIB_VARIANT:=_hal_flpr
HAL_VARIANT=-DNRF54L15_XXAA -DNRF_FLPR
else ifneq (,$(findstring hal_app,$(MAKECMDGOALS)))
SRCS:=${SRCS_HAL_APP}
LIB_VARIANT:=_hal_app
HAL_VARIANT=-DNRF54L15_XXAA -DNRF_APPLICATION
else #hw
SRCS:=${SRCS_HW}
LIB_VARIANT:=
HAL_VARIANT=-DNRF54L15_XXAA -DNRF_APPLICATION
endif
VARIANT=NRF54L15${LIB_VARIANT}
hw: all
hal_flpr: all
hal_app: all
INCLUDES:=-I${NATIVE_SIM_PATH}/common/src/include/ \
-I${NATIVE_SIM_PATH}/common/src/ \
-I${libUtilv1_COMP_PATH}/src/ \
-I${libPhyComv1_COMP_PATH}/src/ \
-I${2G4_libPhyComv1_COMP_PATH}/src \
-I${libRandv2_COMP_PATH}/src/ \
-Isrc/nrfx/mdk_replacements \
-Isrc/HW_models/ \
-Isrc/nrfx_config \
-Isrc/nrfx/nrfx_replacements \
-I${NRFX_BASE} \
-I${NRFX_BASE}/mdk \
-I${NRFX_BASE}/drivers/include
NRF_HW_MODELS_LIB_SUFFIX?=
LIB_NAME=libnRF_hw_models.${VARIANT}.32${NRF_HW_MODELS_LIB_SUFFIX}
A_LIBS:=
A_LIBS32:=
SO_LIBS:=
CFLAGS=${COMMON_CC_FLAGS} ${INCLUDES} -DNRF54L15 ${HAL_VARIANT}
LDFLAGS:=${ARCH} ${COVERAGE}
CPPFLAGS:=
include make_inc/common_post.mk
.PHONY: hw hal_net hal_app
# Let's explicitly tell make there is rule to make this file
54L15.mk: ;