forked from linux4sam/at91bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
toplevel_cpp.mk
38 lines (32 loc) · 885 Bytes
/
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
CPPFLAGS += \
-DIMG_ADDRESS=$(IMG_ADDRESS) \
-DIMG_SIZE=$(IMG_SIZE) \
-DJUMP_ADDR=$(JUMP_ADDR) \
-DOF_OFFSET=$(OF_OFFSET) \
-DOF_ADDRESS=$(OF_ADDRESS) \
-DMEM_BANK=$(MEM_BANK) \
-DMEM_SIZE=$(MEM_SIZE) \
-DIMAGE_NAME="\"$(IMAGE_NAME)\"" \
-DCMDLINE="\"$(LINUX_KERNEL_ARG_STRING)\"" \
-DTOP_OF_MEMORY=$(TOP_OF_MEMORY) \
-DMACH_TYPE=$(MACH_TYPE) \
ASFLAGS += -DJUMP_ADDR=$(JUMP_ADDR) \
-DTOP_OF_MEMORY=$(TOP_OF_MEMORY) \
-DMACH_TYPE=$(MACH_TYPE) \
ifeq ($(CONFIG_DEBUG),y)
CPPFLAGS += -DCONFIG_DEBUG
endif
ifeq ($(CONFIG_HW_DISPLAY_BANNER),y)
BANNER:="$(CONFIG_HW_BANNER)"
CPPFLAGS += -DBANNER="$(BANNER)"
CPPFLAGS += -DCONFIG_HW_DISPLAY_BANNER
endif
ifeq ($(CONFIG_HW_INIT),y)
CPPFLAGS += -DCONFIG_HW_INIT
endif
ifeq ($(CONFIG_USER_HW_INIT),y)
CPPFLAGS += -DCONFIG_USER_HW_INIT
endif
ifeq ($(CONFIG_OVERRIDE_CMDLINE),y)
CPPFLAGS += -DCONFIG_OVERRIDE_CMDLINE
endif