Rodrigo Arias Mallo
2f48ad5f40
Allows writing baremetal programs that can read the correct offsets of devices or clock frequencies.
18 lines
234 B
Makefile
18 lines
234 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 $@
|
|
|
|
%.dtb: %.pp.dts
|
|
dtc -O dtb -o $@ $^
|
|
|
|
.PRECIOUS: %.pp.dts
|