Skip to contentSkip to conversation

circbuf: Move to lib_generic and conditionally compile

PATCH New Peter Tyser 2 participants 2 messages Nov 9, 2009 – Dec 2, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 circbuf: Move to lib_generic and conditionally compile

circbuf could be used as a generic library and is only currently needed when CONFIG_USB_TTY is defined.

---
 common/Makefile                   |    1 -
 lib_generic/Makefile              |    1 +
 {common => lib_generic}/circbuf.c |    0
 3 files changed, 1 insertions(+), 1 deletions(-)
 rename {common => lib_generic}/circbuf.c (100%)
common/Makefile +0 -1
index 3781738..47f6a71 100644
@@ -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
lib_generic/Makefile +1 -0
index 686601c..2ec261a 100644
@@ -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
lib_generic/circbuf.c renamed from common/circbuf.c +0 -0
similarity index 100%
rename from common/circbuf.c
rename to lib_generic/circbuf.c
Signature · 1 line
1.6.2.1
#1 lore raw

PATCH 1/1 circbuf: Move to lib_generic and conditionally compile

Dear Peter Tyser,

Quoted 10 lines · In message <[email protected]> you wrote:

circbuf could be used as a generic library and is only currently needed when CONFIG_USB_TTY is defined.

---
 common/Makefile                   |    1 -
 lib_generic/Makefile              |    1 +
 {common => lib_generic}/circbuf.c |    0
 3 files changed, 1 insertions(+), 1 deletions(-)
 rename {common => lib_generic}/circbuf.c (100%)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Drawing on my fine command of language, I said nothing.