summaryrefslogtreecommitdiff
path: root/board/stxxtc
diff options
context:
space:
mode:
Diffstat (limited to 'board/stxxtc')
-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
#########################################################################
+