-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.dt.mk
More file actions
59 lines (47 loc) · 2.06 KB
/
base.dt.mk
File metadata and controls
59 lines (47 loc) · 2.06 KB
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
# TODO: add intro
#---------------------------------------------------------------------------
# Compilers / linkers
#---------------------------------------------------------------------------
DTC ?= dtc
CFLAGS.dt ?= -O dtb -b 0 --symbols
COMPILE.dt ?= $(DTC) $(MY_CFLAGS.dt) $(CFLAGS.dt) \
$(addprefix -i,$(INCDIRS))
#---------------------------------------------------------------------------
# dt
#---------------------------------------------------------------------------
#SRC.objs.dt ?= $(ALLSRC.dt)
#OBJS.dt ?= $(addprefix $(OBJDIR)/, $(notdir $(addsuffix .o, \
# $(basename $(SRC.objs.dt))) ))
VERSION.dt ?= 00A0
#KEY.dt ?= bone_capemgr.enable_partno
#UENV.dt = $(INST_DIR_ROOT)boot/uEnv.txt
#SET_UENV.dt = $(LAMAKE)tools/set_uenv.py
#RM_SLOTS.dt = $(LAMAKE)tools/read_slots.py
#SLOTS.dt ?= $(INST_DIR_ROOT)sys/devices/platform/bone_capemgr/slots
# Construct targets in BINDIR
ifeq ($(BINDIR),)
TARGETS.dt ?= $(notdir $(basename $(BINSRC.dt)))
else
TARGETS.dt ?= $(addprefix $(strip $(BINDIR))/, \
$(notdir $(addsuffix .dtbo, \
$(basename $(BINSRC.dt))-$(VERSION.dt) )))
endif
# The different types of install files and where they should go
# Overlay binaries
INST_FILES_BIN.dt ?= $(TARGETS.dt)
INST_DIR_BIN.dt ?= $(INST_DIR_FIRMWARE)
INST_TARGETS_BIN.dt ?= $(addprefix $(strip $(INST_DIR_BIN.dt))/, \
$(notdir $(INST_FILES_BIN.dt)) )
# Udev rules
INST_FILES_UDEV.dt ?= $(wildcard *.rules)
INST_DIR_UDEV.dt ?= $(INST_DIR_ROOT)etc/udev/rules.d
INST_TARGETS_UDEV.dt ?= $(addprefix $(strip $(INST_DIR_UDEV.dt))/, \
$(notdir $(INST_FILES_UDEV.dt)) )
# Taken together in standard variables
INST_FILES.dt = $(INST_FILES_UDEV.dt) $(INST_FILES_BIN.dt)
INST_TARGETS.dt = $(INST_TARGETS_UDEV.dt) $(INST_TARGETS_BIN.dt)
# Add to global ".all" variables
#OBJS.all += $(OBJS.dt)
TARGETS.all += $(TARGETS.dt)
INST_FILES.all += $(INST_FILES.dt)
INST_TARGETS.all += $(INST_TARGETS.dt)