-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uniform device tree for differnt core configs
Instead of having multiple device tree files for differnt number of cores, a single file is used. The device tree must be processes by a C/C++ preprocessor before it is compiled. NRCPU must be passed to the preprocessor. The compilation of the device trees is shifted from buildroot to the postprocessing step. Signed-off-by: Nils Bosbach <bosbach@ice.rwth-aachen.de>
- Loading branch information
Showing
5 changed files
with
100 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
O ?= . | ||
CPP ?= cpp | ||
DTC ?= dtc | ||
|
||
CPPFLAGS := -nostdinc -undef -x assembler-with-cpp | ||
|
||
OBJ := ${O}/avp64x1.dtb ${O}/avp64x2.dtb ${O}/avp64x4.dtb ${O}/avp64x8.dtb | ||
|
||
all: $(OBJ) | ||
|
||
clean: | ||
$(RM) $(OBJ) | ||
|
||
${O}/%.dtb: ${O}/%.dts | ||
@mkdir -p ${O} | ||
$(DTC) -I dts -O dtb -o $@ $< | ||
|
||
${O}/avp64x1.dts: avp64.dts | ||
@mkdir -p ${O} | ||
$(CPP) $(CPPFLAGS) -D NRCPU=1 -o $@ $< | ||
|
||
${O}/avp64x2.dts: avp64.dts | ||
@mkdir -p ${O} | ||
$(CPP) $(CPPFLAGS) -D NRCPU=2 -o $@ $< | ||
|
||
${O}/avp64x4.dts: avp64.dts | ||
@mkdir -p ${O} | ||
$(CPP) $(CPPFLAGS) -D NRCPU=4 -o $@ $< | ||
|
||
${O}/avp64x8.dts: avp64.dts | ||
@mkdir -p ${O} | ||
$(CPP) $(CPPFLAGS) -D NRCPU=8 -o $@ $< | ||
|
||
.PHONY: all clean | ||
.INTERMEDIATE: $(OBJ:dtb=dts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters