summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2005-10-13 01:49:09 +0200
committerWolfgang Denk <wd@pollux.denx.de>2005-10-13 01:49:09 +0200
commit070610c529d8fc4c4339b8422054b1f82abae7f0 (patch)
treef9a15714cd3581e57518822ad56d2914af5d38fb /board
parentf57f70aab9d5ed7964f2f791829a2d780b788a7e (diff)
downloadu-boot-imx-070610c529d8fc4c4339b8422054b1f82abae7f0.zip
u-boot-imx-070610c529d8fc4c4339b8422054b1f82abae7f0.tar.gz
u-boot-imx-070610c529d8fc4c4339b8422054b1f82abae7f0.tar.bz2
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/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/board/stxxtc/Makefile b/board/stxxtc/Makefile
index 8c529a0..759edc1 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
#########################################################################
+