Initial import
[experiments/bbb-gpio-keypad.git] / Makefile
1 PART_NUMBER = bbb-gpio-keypad
2 VERSION = 00A0
3
4 INCLUDE_PATH = /home/debian/bb.org-overlays/include
5
6 compile: $(PART_NUMBER)-$(VERSION).dtbo
7
8 install: compile
9         cp $(PART_NUMBER)-$(VERSION).dtbo /lib/firmware
10
11 clean:
12         rm -f *.dtbo *.dts.tmp *~
13
14 %.dtbo: %.dts
15         cpp -nostdinc -undef -D__DTS__ -I$(INCLUDE_PATH) -x assembler-with-cpp -o $<.tmp $<
16         dtc -Wno-unit_address_vs_reg -O dtb -o $@ -b 0 -@ $<.tmp