]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - libfdt/Makefile
sh: serial: coding style cleanup
[karo-tx-uboot.git] / libfdt / Makefile
index dc411370f5fd550b709b065f71492d179ebcfb66..d6e283045f6bbeb430c8d41a2b4072816b6875c1 100644 (file)
@@ -27,10 +27,14 @@ LIB = $(obj)libfdt.a
 
 SOBJS  =
 
-COBJS  = fdt.o  fdt_ro.o  fdt_rw.o  fdt_strerror.o  fdt_sw.o  fdt_wip.o
+COBJS-libfdt += fdt.o fdt_ro.o fdt_rw.o fdt_strerror.o fdt_sw.o fdt_wip.o
 
+COBJS-$(CONFIG_OF_LIBFDT) += $(COBJS-libfdt)
+COBJS-$(CONFIG_FIT) += $(COBJS-libfdt)
 
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+
+COBJS  := $(sort $(COBJS-y))
+SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))
 
 $(LIB):        $(obj).depend $(OBJS)