19 lines
258 B
Makefile
19 lines
258 B
Makefile
CC?=gcc
|
|
DTC?=dtc
|
|
|
|
CPPFLAGS=-E -C -P -nostdinc -undef -x assembler-with-cpp
|
|
|
|
all: lagarto_ox.dtb
|
|
|
|
clean:
|
|
rm -f *.pp.dts *.dtb
|
|
|
|
%.pp.dts: %.dts *.h
|
|
$(CC) $(CPPFLAGS) $< -o $@
|
|
sed -i 's/@0x0*/@/' $@
|
|
|
|
%.dtb: %.pp.dts
|
|
dtc -O dtb -o $@ $^
|
|
|
|
.PRECIOUS: %.pp.dts
|