]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - libfdt/Makefile
Merge commit '87ddedd'
[karo-tx-uboot.git] / libfdt / Makefile
index dc411370f5fd550b709b065f71492d179ebcfb66..d166cce7968feb9ba45a01dd166176e4771fbb05 100644 (file)
@@ -27,9 +27,9 @@ LIB   = $(obj)libfdt.a
 
 SOBJS  =
 
-COBJS  = fdt.o  fdt_ro.o  fdt_rw.o  fdt_strerror.o  fdt_sw.o  fdt_wip.o
-
+COBJS-$(CONFIG_OF_LIBFDT) += fdt.o fdt_ro.o fdt_rw.o fdt_strerror.o fdt_sw.o fdt_wip.o
 
+COBJS  := $(COBJS-y)
 SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))