Changeset 26f48570 in mainline


Ignore:
Timestamp:
2006-06-04T12:42:03Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1160f8d
Parents:
dd641e3
Message:

Fixed incorrect compiling of fb for different archs.

Location:
fb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fb/Makefile

    rdd641e3 r26f48570  
    3535
    3636CFLAGS += -I../libipc/include
    37 ifeq ($(ARCH), mips32)
    38         CFLAGS += -DFB_BIG_ENDIAN
    39 endif
    4037
    4138LIBS =  $(LIBC_PREFIX)/libc.a
     
    5047        ppm.c
    5148
     49ifneq ($(ARCH), ia64)
     50        SOURCES += fb.c \
     51                font-8x16.c
     52        CFLAGS += -DFB_ENABLED
     53endif
     54
    5255ifeq ($(ARCH), ia32)
    53         SOURCES +=      fb.c \
    54         font-8x16.c \
    55         ega.c
     56        SOURCES += ega.c
     57        CFLAGS += -DEGA_ENABLED
    5658endif
    5759ifeq ($(ARCH), amd64)
    58         SORCES +=       fb.c \
    59         font-8x16.c \
    60         ega.c
     60        SOURCES += ega.c
     61        CFLAGS += -DEGA_ENABLED
     62endif
     63ifeq ($(ARCH), mips32)
     64        CFLAGS += -DFB_BIG_ENDIAN
    6165endif
    6266
  • fb/main.c

    rdd641e3 r26f48570  
    5757        int initialized = 0;
    5858
    59 #ifdef ia32
     59#ifdef FB_ENABLED
    6060        if (sysinfo_value("fb.kind") == 1) {
    6161                if (fb_init() == 0)
    6262                        initialized = 1;
    63         } else if (sysinfo_value("fb.kind") == 2) {
     63        }
     64#endif
     65#ifdef EGA_ENABLED
     66        if (! initialized && sysinfo_value("fb.kind") == 2) {
    6467                if (ega_init() == 0)
    6568                        initialized = 1;
     
    6770#endif
    6871
    69 #ifdef amd64
    70         if (sysinfo_value("fb.kind") == 1) {
    71                 if (fb_init() == 0)
    72                         initialized = 1;
    73         } else if (sysinfo_value("fb.kind") == 2) {
    74                 if (ega_init() == 0)
    75                         initialized = 1;
    76         }
    77 #endif
    78 
    79 
    80        
    8172        if (!initialized)
    8273                sysio_init();
Note: See TracChangeset for help on using the changeset viewer.