[U-Boot-Users] [PATCH 2/5] OneNAND support

Kyungmin Park kmpark at infradead.org
Mon Sep 10 02:56:19 CEST 2007


> This Makefile does not work when using a separate build directory
> (when using "make -O some_dir ....").
> 
> Please fix.
> 

Ah, it was changed.
No problem to change.

Thank you,
Kyungmin Park

+include $(TOPDIR)/config.mk
+
+LIB	:= $(obj)libonenand.a
+
+COBJS	:= onenand_base.o onenand_bbt.o
+
+SRCS	:= $(COBJS:.o=.c)
+OBJS	:= $(addprefix $(obj),$(COBJS))
+
+all:	$(LIB)
+
+$(LIB): $(obj).depend $(OBJS)
+	$(AR) $(ARFLAGS) $@ $(OBJS)
+
+#########################################################################
+
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#########################################################################





More information about the U-Boot mailing list