Another v3-style #ifdef in v2 to kill
authorPatrick Georgi <patrick.georgi@coresystems.de>
Fri, 24 Apr 2009 10:23:56 +0000 (10:23 +0000)
committerPatrick Georgi <patrick.georgi@coresystems.de>
Fri, 24 Apr 2009 10:23:56 +0000 (10:23 +0000)
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4204 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/boot/selfboot.c

index 09b3ea360d6a3d4bf8372b726e5b1d78360d5927..19b6007be05a83d7bf6d6d31b87f62144fca181a 100644 (file)
@@ -90,7 +90,7 @@ int cbfs_self_decompress(int algo, void *src,struct segment *new)
                return -1;
 
        switch(algo) {
-#ifdef CONFIG_COMPRESSION_LZMA
+#if CONFIG_COMPRESSED_PAYLOAD_LZMA==1
        case CBFS_COMPRESS_LZMA: {
                unsigned long ulzma(unsigned char *src, unsigned char *dst);            
                ulzma(src, dst);
@@ -98,7 +98,7 @@ int cbfs_self_decompress(int algo, void *src,struct segment *new)
        }
 #endif
 
-#ifdef CONFIG_COMPRESSION_NRV2B
+#if CONFIG_COMPRESSED_PAYLOAD_NRV2B==1
        case CBFS_COMPRESS_NRV2B: {
                unsigned long unrv2b(u8 *src, u8 *dst, unsigned long *ilen_p);
                unsigned long tmp;