Initial import
[experiments/bbb-eqep2b-ao2.git] / Makefile
1 PART_NUMBER = bbb-eqep2b-ao2
2 VERSION = 00A0
3
4 # To get the include files, clone the repository from
5 # https://github.com/beagleboard/bb.org-overlays.git
6 # parallel to this directory.
7
8 INCLUDE_PATH = ../bb.org-overlays/include
9
10 compile: $(PART_NUMBER)-$(VERSION).dtbo
11
12 install: compile
13         cp $(PART_NUMBER)-$(VERSION).dtbo /lib/firmware
14
15 clean:
16         rm -f *.dtbo *.dts.tmp *~
17
18 %.dtbo: %.dts
19         cpp -nostdinc -undef -D__DTS__ -I$(INCLUDE_PATH) -x assembler-with-cpp -o $<.tmp $<
20         dtc -Wno-unit_address_vs_reg -O dtb -o $@ -b 0 -@ $<.tmp