summaryrefslogtreecommitdiffstats
path: root/board/munices
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-01-13 00:55:18 +0100
committerWolfgang Denk <wd@denx.de>2008-01-13 00:55:18 +0100
commitf2b6f4610627fe3d607620e25082916a01538875 (patch)
treea4defb213a271605d21da66c780b05665be6e2e2 /board/munices
parent2ad4d3999fe801aa716221d7d9a4c5bdad74783a (diff)
downloadblackbird-obmc-uboot-f2b6f4610627fe3d607620e25082916a01538875.tar.gz
blackbird-obmc-uboot-f2b6f4610627fe3d607620e25082916a01538875.zip
MUNICes: fix board Makefile for remote build directory
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board/munices')
-rw-r--r--board/munices/Makefile27
1 files changed, 11 insertions, 16 deletions
diff --git a/board/munices/Makefile b/board/munices/Makefile
index 111caed08f..09c63c3ee4 100644
--- a/board/munices/Makefile
+++ b/board/munices/Makefile
@@ -1,6 +1,5 @@
-
#
-# (C) Copyright 2003
+# (C) Copyright 2003-2008
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# See file CREDITS for list of people who contributed to this
@@ -24,20 +23,16 @@
include $(TOPDIR)/config.mk
-LIB = lib$(BOARD).a
-
-OBJS := $(BOARD).o
+LIB = $(obj)lib$(BOARD).a
-$(LIB): $(OBJS) $(SOBJS)
- $(AR) crv $@ $(OBJS)
+COBJS := $(BOARD).o
-%.dtb: %.dts
- dtc -f -V 0x10 -I dts -O dtb $< >$@
+SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS))
+SOBJS := $(addprefix $(obj),$(SOBJS))
-%.c: %.dtb
- xxd -i $< \
- | sed -e "s/^unsigned char/const unsigned char/g" \
- | sed -e "s/^unsigned int/const unsigned int/g" > $@
+$(LIB): $(obj).depend $(OBJS)
+ $(AR) $(ARFLAGS) $@ $(OBJS)
clean:
rm -f $(SOBJS) $(OBJS)
@@ -47,9 +42,9 @@ distclean: clean
#########################################################################
-.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
- $(CC) -M $(CPPFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
--include .depend
+sinclude $(obj).depend
#########################################################################
OpenPOWER on IntegriCloud