-
Notifications
You must be signed in to change notification settings - Fork 233
/
toplevel_cpp.mk
51 lines (41 loc) · 1.18 KB
/
toplevel_cpp.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
# Copyright (C) 2006 Microchip Technology Inc. and its subsidiaries
#
# SPDX-License-Identifier: MIT
CPPFLAGS += \
-DIMG_ADDRESS=$(IMG_ADDRESS) \
-DIMG_SIZE=$(IMG_SIZE) \
-DMMU_TABLE_BASE_ADDR=$(MMU_TABLE_BASE_ADDR) \
-DJUMP_ADDR=$(JUMP_ADDR) \
-DOF_OFFSET=$(OF_OFFSET) \
-DOF_ADDRESS=$(OF_ADDRESS) \
-DCMDLINE_FILE="\"$(LINUX_KERNEL_ARG_STRING_FILE)\"" \
-DTOP_OF_MEMORY=$(TOP_OF_MEMORY) \
-DMACH_TYPE=$(MACH_TYPE) \
ifeq ($(CONFIG_OVERRIDE_CMDLINE), y)
CPPFLAGS += -DCMDLINE="$(LINUX_KERNEL_ARG_STRING)"
else
CPPFLAGS += -DCMDLINE="\"$(LINUX_KERNEL_ARG_STRING)\""
endif
ASFLAGS += -DJUMP_ADDR=$(JUMP_ADDR) \
-DTOP_OF_MEMORY=$(TOP_OF_MEMORY) \
-DMACH_TYPE=$(MACH_TYPE) \
ASFLAGS += -DLINK_ADDR=$(CONFIG_LINK_ADDR)
ifneq ($(IMAGE_NAME),)
CPPFLAGS += -DIMAGE_NAME="\"$(IMAGE_NAME)\""
endif
ifeq ($(CONFIG_OCMS_STATIC), y)
CPPFLAGS += -DCONFIG_OCMS_STATIC
endif
ifeq ($(CONFIG_DEBUG),y)
CPPFLAGS += -DCONFIG_DEBUG
endif
ifeq ($(CONFIG_HW_DISPLAY_BANNER),y)
BANNER:="$(CONFIG_HW_BANNER)"
CPPFLAGS += -DBANNER="$(BANNER)"
endif
ifeq ($(CONFIG_CRYSTAL_12_000MHZ),y)
CPPFLAGS += -DBOARD_MAINOSC=12000000
endif
ifeq ($(CONFIG_CRYSTAL_24_000MHZ),y)
CPPFLAGS += -DBOARD_MAINOSC=24000000
endif