bzip2: move ifdef handling to Makefile COBJS-$(...)
PATCH 1/1 bzip2: move ifdef handling to Makefile COBJS-$(...)
Signed-off-by Mike Frysinger <[email protected]>
--- lib_generic/Makefile | 10 +++++----- lib_generic/bzlib.c | 3 --- lib_generic/bzlib_crctable.c | 3 --- lib_generic/bzlib_decompress.c | 3 --- lib_generic/bzlib_huffman.c | 3 --- lib_generic/bzlib_randtable.c | 3 --- 6 files changed, 5 insertions(+), 20 deletions(-)
lib_generic/Makefile +5 -5
@@ -28,11 +28,11 @@ CFLAGS := $(CFLAGS:-Os=-O2) LIB = $(obj)libgeneric.a COBJS-$(CONFIG_ADDR_MAP) += addr_map.o -COBJS-y += bzlib.o -COBJS-y += bzlib_crctable.o -COBJS-y += bzlib_decompress.o -COBJS-y += bzlib_randtable.o -COBJS-y += bzlib_huffman.o +COBJS-$(CONFIG_BZIP2) += bzlib.o +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-y += crc16.o COBJS-y += crc32.o COBJS-y += ctype.o
lib_generic/bzlib.c +0 -3
@@ -1,7 +1,6 @@#include <config.h> #include <common.h> #include <watchdog.h> -#ifdef CONFIG_BZIP2 /* * This file is a modified version of bzlib.c from the bzip2-1.0.2
@@ -1600,5 +1599,3 @@ void bz_internal_error(int errcode)/*-------------------------------------------------------------*/ /*--- end bzlib.c ---*/ /*-------------------------------------------------------------*/ - -#endif /* CONFIG_BZIP2 */
lib_generic/bzlib_crctable.c +0 -3
@@ -1,5 +1,4 @@#include <config.h> -#ifdef CONFIG_BZIP2 /*-------------------------------------------------------------*/ /*--- Table for doing CRCs ---*/
@@ -144,5 +143,3 @@ UInt32 BZ2_crc32Table[256] = {/*-------------------------------------------------------------*/ /*--- end crctable.c ---*/ /*-------------------------------------------------------------*/ - -#endif /* CONFIG_BZIP2 */
lib_generic/bzlib_decompress.c +0 -3
@@ -1,7 +1,6 @@#include <config.h> #include <common.h> #include <watchdog.h> -#ifdef CONFIG_BZIP2 /*-------------------------------------------------------------*/ /*--- Decompression machinery ---*/
@@ -673,5 +672,3 @@ Int32 BZ2_decompress ( DState* s )/*-------------------------------------------------------------*/ /*--- end decompress.c ---*/ /*-------------------------------------------------------------*/ - -#endif /* CONFIG_BZIP2 */
lib_generic/bzlib_huffman.c +0 -3
@@ -1,5 +1,4 @@#include <config.h> -#ifdef CONFIG_BZIP2 /*-------------------------------------------------------------*/ /*--- Huffman coding low-level stuff ---*/
@@ -228,5 +227,3 @@ void BZ2_hbCreateDecodeTables ( Int32 *limit,/*-------------------------------------------------------------*/ /*--- end huffman.c ---*/ /*-------------------------------------------------------------*/ - -#endif /* CONFIG_BZIP2 */
lib_generic/bzlib_randtable.c +0 -3
@@ -1,5 +1,4 @@#include <config.h> -#ifdef CONFIG_BZIP2 /*-------------------------------------------------------------*/ /*--- Table for randomising repetitive blocks ---*/
@@ -124,5 +123,3 @@ Int32 BZ2_rNums[512] = {/*-------------------------------------------------------------*/ /*--- end randtable.c ---*/ /*-------------------------------------------------------------*/ - -#endif /* CONFIG_BZIP2 */
Signature · 1 line
1.6.1.2
Wolfgang Denk
AppliedPATCH 1/1 bzip2: move ifdef handling to Makefile COBJS-$(...)
Dear Mike Frysinger,
Quoted 9 lines · In message <[email protected]> you wrote:
Signed-off-by Mike Frysinger <[email protected]>--- lib_generic/Makefile | 10 +++++----- lib_generic/bzlib.c | 3 --- lib_generic/bzlib_crctable.c | 3 --- lib_generic/bzlib_decompress.c | 3 --- lib_generic/bzlib_huffman.c | 3 --- lib_generic/bzlib_randtable.c | 3 --- 6 files changed, 5 insertions(+), 20 deletions(-)
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 1000 pains = 1 Megahertz