diff options
author | Wolfgang Denk <wd@pollux.denx.de> | 2005-10-13 01:49:09 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@pollux.denx.de> | 2005-10-13 01:49:09 +0200 |
commit | 070610c529d8fc4c4339b8422054b1f82abae7f0 (patch) | |
tree | f9a15714cd3581e57518822ad56d2914af5d38fb /board | |
parent | f57f70aab9d5ed7964f2f791829a2d780b788a7e (diff) |
Add support for OF flat tree for the STXtc board.
Patch by Pantelis Antoniou, 04 Sep 2005
Diffstat (limited to 'board')
-rw-r--r-- | board/stxxtc/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/board/stxxtc/Makefile b/board/stxxtc/Makefile index 8c529a061..759edc1b7 100644 --- a/board/stxxtc/Makefile +++ b/board/stxxtc/Makefile @@ -25,11 +25,19 @@ include $(TOPDIR)/config.mk LIB = lib$(BOARD).a -OBJS = $(BOARD).o +OBJS = $(BOARD).o oftree.o $(LIB): .depend $(OBJS) $(AR) crv $@ $(OBJS) +%.dtb: %.dts + dtc -f -V 0x10 -I dts -O dtb $< >$@ + +%.c: %.dtb + xxd -i $< \ + | sed -e "s/^unsigned char/const unsigned char/g" \ + | sed -e "s/^unsigned int/const unsigned int/g" > $@ + ######################################################################### .depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c) @@ -38,3 +46,4 @@ $(LIB): .depend $(OBJS) sinclude .depend ######################################################################### + |