]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
circbuf: Move to lib_generic and conditionally compile
authorPeter Tyser <ptyser@xes-inc.com>
Mon, 9 Nov 2009 21:17:50 +0000 (15:17 -0600)
committerWolfgang Denk <wd@denx.de>
Wed, 2 Dec 2009 22:19:32 +0000 (23:19 +0100)
circbuf could be used as a generic library and is only currently
needed when CONFIG_USB_TTY is defined.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
common/Makefile
lib_generic/Makefile
lib_generic/circbuf.c [moved from common/circbuf.c with 100% similarity]

index 3781738e19ad1b5d1a802fd19e457e8e16c3ae80..47f6a71e2e1f6ee5d7cb856e38281c4480e23796 100644 (file)
@@ -29,7 +29,6 @@ AOBJS =
 
 # core
 COBJS-y += main.o
-COBJS-y += circbuf.o
 COBJS-y += console.o
 COBJS-y += command.o
 COBJS-y += dlmalloc.o
index 686601cc18932b28c2040490accdfdddd583d2ca..2ec261af4a785194fee04ab7ff49435ea528c7c3 100644 (file)
@@ -31,6 +31,7 @@ COBJS-$(CONFIG_BZIP2) += bzlib_crctable.o
 COBJS-$(CONFIG_BZIP2) += bzlib_decompress.o
 COBJS-$(CONFIG_BZIP2) += bzlib_randtable.o
 COBJS-$(CONFIG_BZIP2) += bzlib_huffman.o
+COBJS-$(CONFIG_USB_TTY) += circbuf.o
 COBJS-y += crc16.o
 COBJS-y += crc32.o
 COBJS-y += ctype.o
similarity index 100%
rename from common/circbuf.c
rename to lib_generic/circbuf.c