-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (34 loc) · 1.24 KB
/
Makefile
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
# SPDX-License-Identifier: (GPL-2.0+ OR MIT)
#
# Copyright (C) 2017 Chen-Yu Tsai <[email protected]>
DT_OVERLAYS :=
DT_OVERLAYS += all-h3-cc-opi-ov5640.dtbo
DT_OVERLAYS += all-h3-cc-ov5640.dtbo
DT_OVERLAYS += all-h3-it-usb.dtbo
DT_OVERLAYS += bpi-m1p-bpi-camera-v1.dtbo
DT_OVERLAYS += bpi-m1p-gps.dtbo
DT_OVERLAYS += bpi-m1p-lcd.dtbo
DT_OVERLAYS += bpi-m2p-ov5640.dtbo
DT_OVERLAYS += bpi-m2u-ov5640.dtbo
DT_OVERLAYS += bpi-m3-bpi-camera.dtbo
DT_OVERLAYS += bpi-m3-pifi-dac-plus.dtbo
DT_OVERLAYS += bpi-m64-ov5640.dtbo
DT_OVERLAYS += ds3231-rtc-i2c0.dtbo ds3231-rtc-i2c1.dtbo ds3231-rtc-i2c2.dtbo
DT_OVERLAYS += nanopi-m4-uart2b.dtbo
DT_OVERLAYS += pine64-rtl8723bs.dtbo
KERNEL_SRC ?= $(HOME)/linux
DTC ?= $(KERNEL_SRC)/scripts/dtc/dtc
DTC_INCLUDE = $(KERNEL_SRC)/include $(KERNEL_SRC)/scripts/dtc/include-prefixes
DTC_CPP_FLAGS = -nostdinc -undef -D__DTS__ $(addprefix -I,$(DTC_INCLUDE))
.PHONY: clean FORCE
all: $(DT_OVERLAYS)
%.dtbo: %.dts FORCE
@echo " DTC $@"
@# Test first
@$(CPP) $(DTC_CPP_FLAGS) -D __DTO_TEST__ -x assembler-with-cpp $< | \
$(DTC) $(addprefix -i ,$(DTC_INCLUDE)) -b 0 -O dtb -o $@
@$(CPP) $(DTC_CPP_FLAGS) -x assembler-with-cpp $< | \
$(DTC) $(addprefix -i ,$(DTC_INCLUDE)) -b 0 -O dtb -q -o $@
clean:
rm -f *.dtbo
FORCE: