]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
bzip2: move ifdef handling to Makefile COBJS-$(...)
authorMike Frysinger <vapier@gentoo.org>
Fri, 6 Feb 2009 02:04:50 +0000 (21:04 -0500)
committerWolfgang Denk <wd@denx.de>
Wed, 11 Feb 2009 22:04:13 +0000 (23:04 +0100)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
lib_generic/Makefile
lib_generic/bzlib.c
lib_generic/bzlib_crctable.c
lib_generic/bzlib_decompress.c
lib_generic/bzlib_huffman.c
lib_generic/bzlib_randtable.c

index 3f040226e0e8d6417620eec63d377743ef76c372..686601cc18932b28c2040490accdfdddd583d2ca 100644 (file)
@@ -26,11 +26,11 @@ include $(TOPDIR)/config.mk
 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
index 0d3f9c2d3ea0e6d379fb220306e1e5375a67553c..5844e187c098bcb2d7a64b07cd436b8a0d25395a 100644 (file)
@@ -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 */
index 63770cd631efc28ca262d79fc4ead1a96a3f4636..325b96643ef0f361ebc7b011178b823852f77389 100644 (file)
@@ -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 */
index a5750520cc40487d20430d60c11dac0a9f5076c0..4412b8a23eab95d2c36568249edc0ae3e6ca8902 100644 (file)
@@ -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 */
index effae98a733d1aba691c5aa66104afe214167fca..801b8ec39a0241421281dbdd167b27c83831ed54 100644 (file)
@@ -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 */
index a0dd573d1ce9944b73fc952a4eb10f7f8e491dcf..c3dc7e41817a7558ec56b455aeabe0e020077b10 100644 (file)
@@ -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 */