Skip to content
Snippets Groups Projects
Commit f2b6f461 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

MUNICes: fix board Makefile for remote build directory


Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
parent 2ad4d399
No related branches found
No related tags found
No related merge requests found
# #
# (C) Copyright 2003 # (C) Copyright 2003-2008
# Wolfgang Denk, DENX Software Engineering, wd@denx.de. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
# #
# See file CREDITS for list of people who contributed to this # See file CREDITS for list of people who contributed to this
...@@ -24,20 +23,16 @@ ...@@ -24,20 +23,16 @@
include $(TOPDIR)/config.mk include $(TOPDIR)/config.mk
LIB = lib$(BOARD).a LIB = $(obj)lib$(BOARD).a
OBJS := $(BOARD).o
$(LIB): $(OBJS) $(SOBJS) COBJS := $(BOARD).o
$(AR) crv $@ $(OBJS)
%.dtb: %.dts SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
dtc -f -V 0x10 -I dts -O dtb $< >$@ OBJS := $(addprefix $(obj),$(COBJS))
SOBJS := $(addprefix $(obj),$(SOBJS))
%.c: %.dtb $(LIB): $(obj).depend $(OBJS)
xxd -i $< \ $(AR) $(ARFLAGS) $@ $(OBJS)
| sed -e "s/^unsigned char/const unsigned char/g" \
| sed -e "s/^unsigned int/const unsigned int/g" > $@
clean: clean:
rm -f $(SOBJS) $(OBJS) rm -f $(SOBJS) $(OBJS)
...@@ -47,9 +42,9 @@ distclean: clean ...@@ -47,9 +42,9 @@ distclean: clean
######################################################################### #########################################################################
.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c) # defines $(obj).depend target
$(CC) -M $(CPPFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@ include $(SRCTREE)/rules.mk
-include .depend sinclude $(obj).depend
######################################################################### #########################################################################
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment