IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Linux Discussion :

Makefile : Des .h qui manquent


Sujet :

Linux

  1. #1
    Candidat au Club
    Profil pro
    Inscrit en
    Septembre 2009
    Messages
    6
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2009
    Messages : 6
    Points : 4
    Points
    4
    Par défaut Makefile : Des .h qui manquent
    Bonjour à tous,

    Je souhaite actuellement recompiler un driver dont les sources m'ont été fournies.
    Le Makefile qui accompagne les sources présentait des adresses en dur que j'ai modifiées pour respecter mon environnement, cependant il rencontre une erreur et me parle de .h manquants alors que la variable CFLAGS contient bien ces informations, et les .h se trouvent bien dans leurs répertoires respectifs

    Si vous pouviez m'aider ou au moins me donner des idées pour résoudre le problème je vous serai très reconnaissant

    Voici une parie de l'erreur (elle se répète pour d'autres .h) :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    n file included from /home/perso/Bureau/usb_data/Driver_Wifi_BT/Release-v2.1/linux-s3c2412-sd8686-src-v2.1/wlan/src_sd8686/wlan/wlan_main.c:31:
    /home/perso/Bureau/usb_data/Driver_Wifi_BT/Release-v2.1/linux-s3c2412-sd8686-src-v2.1/wlan/src_sd8686/wlan/include.h:22:27: os_headers.h: No such file or directory
    In file included from /home/perso/Bureau/usb_data/Driver_Wifi_BT/Release-v2.1/linux-s3c2412-sd8686-src-v2.1/wlan/src_sd8686/wlan/include.h:23,
                     from /home/perso/Bureau/usb_data/Driver_Wifi_BT/Release-v2.1/linux-s3c2412-sd8686-src-v2.1/wlan/src_sd8686/wlan/wlan_main.c:31:
    /home/perso/Bureau/usb_data/Driver_Wifi_BT/Release-v2.1/linux-s3c2412-sd8686-src-v2.1/wlan/src_sd8686/wlan/wlan_types.h:48: error: parse error before "WLAN_OID"
    ...
    Voici le Makefile :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
     
    # File: Makefile
    # Copyright © Marvell International Ltd. and/or its affiliates, 2003-2006
     
    CC=        $(CROSS)gcc
    LD=        $(CROSS)ld
    BACKUP=        /root/backup
    YMD=        `date +%Y%m%d%H%M`
     
    #############################################################################
    # Configuration Options
    #############################################################################
     
    # Debug Option
    # DEBUG LEVEL n/1/2:
    # n: NO DEBUG
    # 1: Only PRINTM(MSG,...), PRINTM(FATAL,...), ...
    # 2: All PRINTM()
    CONFIG_DEBUG=n
     
    # Proc in /proc/net/wlan
    CONFIG_PROC_DEBUG=y
     
    # Linux Power Management
    CONFIG_ENABLE_PM=n
     
    # Re-association in driver
    CONFIG_REASSOCIATION=y
     
    # Manufacturing firmware support
    CONFIG_MFG_CMD_SUPPORT=n
     
    #############################################################################
    # Select Platform Tools
    #############################################################################
     
    MODEXT = ko
    CFLAGS += -I$(PWD)/os/linux
    CFLAGS += -I$(PWD)/wlan
     
    #TOOLPATH_S3C2412=    /opt/samsung/s3c2412/usr/local/arm/4.0.3/bin
    TOOLPATH_S3C2412=    /usr/local/arm/3.4.1/arm-linux/bin
    S3C2412_DIR=         /tftpboot/samsung
     
        INSTALLDIR=$(S3C2412_DIR)
        PLATFORM=s3c2412
        TOOLPATH=$(TOOLPATH_S3C2412)
    #    CROSS=$(TOOLPATH)/arm-linux-
        CROSS=$(TOOLPATH)/
        KERNEL_WE=15
        # Intel Bulverde Mainstone Platform
        CONFIG_MAINSTONE=n
     
        ifeq ($(CONFIG_MAINSTONE), y)
            CFLAGS += -D_MAINSTONE
            export CONFIG_MAINSTONE
        else
            # Default MVL kernel has WE14
            #KERNEL_WE=14
        endif
    #    KERNELDIR=/home/prasanth/project/S3c2412/BUILD/s3c-linux-2.6.16
    #    KERNELDIR=/lib/modules/`uname -r`/build
        KERNELDIR=/home/perso/Bureau/linux-2.6.25
     
        CFLAGS += -I$(PWD)/if/if_sdio
        CFLAGS += -I$(PWD)/io/sdio/$(PLATFORM)
        BINDIR = ../bin_sd8686
     
    #############################################################################
    # Compiler Flags
    #############################################################################
     
        CFLAGS += -I$(KERNELDIR)/include
     
        CFLAGS += -DFPNUM='"4"'
     
    ifeq ($(CONFIG_DEBUG),1)
        CFLAGS += -DDEBUG_LEVEL1
    endif
     
    ifeq ($(CONFIG_DEBUG),2)
        CFLAGS += -DDEBUG_LEVEL1
        CFLAGS += -DDEBUG_LEVEL2
        DBG=    -dbg
    endif
     
    ifeq ($(CONFIG_PROC_DEBUG),y)
        CFLAGS += -DPROC_DEBUG
        export CONFIG_PROC_DEBUG
    endif
     
    ifeq ($(CONFIG_ENABLE_PM),y)
        CFLAGS += -DENABLE_PM
    endif
     
    ifeq ($(CONFIG_REASSOCIATION),y)
        CFLAGS += -DREASSOCIATION
    endif
     
    ifeq ($(CONFIG_MFG_CMD_SUPPORT),y)
        CFLAGS += -DMFG_CMD_SUPPORT
    endif
     
    #############################################################################
    # Make Targets
    #############################################################################
     
    ifneq ($(KERNELRELEASE),)
     
    WLANOBJS =    wlan/wlan_main.o wlan/wlan_fw.o wlan/wlan_wext.o \
            wlan/wlan_rx.o wlan/wlan_tx.o \
            wlan/wlan_cmd.o wlan/wlan_cmdresp.o \
            wlan/wlan_scan.o wlan/wlan_join.o
     
    WLANOBJS += wlan/wlan_wmm.o
    WLANOBJS += wlan/wlan_11d.o
    WLANOBJS += wlan/wlan_fops.o
     
    ifdef CONFIG_PROC_FS
    WLANOBJS += wlan/wlan_proc.o
    ifeq ($(CONFIG_PROC_DEBUG), y)
    WLANOBJS += wlan/wlan_debug.o
    endif
    endif
     
    IFOBJS := if/if_sdio/if_sdio.o
    IOOBJS := io/sdio/$(PLATFORM)/sdio.o
    obj-m := sd8686.o
    sd8686-objs := $(WLANOBJS) $(IFOBJS) $(IOOBJS)
     
    # Otherwise we were called directly from the command line; invoke the kernel build system.
    else
     
    default:
        @echo "Building driver"
        $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
        $(MAKE) -C app/wlanconfig
     
    endif
     
    ###############################################################
     
    export        CC LD CFLAGS KERNELDIR
     
    .PHONY: app/wlanconfig wlan clean distclean
     
        @echo "Finished Making Marvell Wlan Linux Driver"
     
    wlan app/wlanconfig:
        $(MAKE) -C $@
     
    echo:
        @echo "Please make sure the following are done before building:"
        @echo "    1. Modify release_version.h to set correct version number"
        @echo "    2. Updates the README files"
     
    build:        echo default
     
        @if [ ! -d $(BINDIR) ]; then \
            mkdir $(BINDIR); \
        fi
        cp -f sd8686.$(MODEXT) $(BINDIR)/sd8686$(DBG).$(MODEXT)
     
        cp -f README $(BINDIR)
        $(MAKE) -C app/wlanconfig $@ INSTALLDIR=$(BINDIR)
        cp -r config $(BINDIR)
     
    clean:
        -find . -name "*.o" -exec rm {} \;
        -find . -name "*.ko" -exec rm {} \;
        -find . -name ".*.cmd" -exec rm {} \;
        -find . -name "*.mod.c" -exec rm {} \;
        -rm -rf .tmp_versions
        $(MAKE) -C app/wlanconfig $@
     
    install: default
     
        $(MAKE) -C app/wlanconfig $@ INSTALLDIR=$(INSTALLDIR)
        cp -f sd8686.$(MODEXT) $(INSTALLDIR)/sd8686$(DBG).$(MODEXT)
        echo "sd8686 Driver Installed"
     
    distclean:
        -find . -name "*.o" -exec rm {} \;
        -find . -name "*.orig" -exec rm {} \;
        -find . -name "*.swp" -exec rm {} \;
        -find . -name "*.*~" -exec rm {} \;
        -find . -name "*~" -exec rm {} \;
        -find . -name "*.d" -exec rm {} \;
        -find . -name "*.a" -exec rm {} \;
        -find . -name "tags" -exec rm {} \;
        -find . -name ".*" -exec rm -rf 2> /dev/null \;
        -find . -name "*.ko" -exec rm {} \;
        -find . -name ".*.cmd" -exec rm {} \;
        -find . -name "*.mod.c" -exec rm {} \;
        -rm -rf .tmp_versions
        $(MAKE) -C app/wlanconfig $@
     
    # End of file
    Voici le contenu de CFLAGS :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    CFLAGS : -I/home/perso/Bureau/usb_data/Driver_Wifi_BT/Release-v2.1/linux-s3c2412-sd8686-src-v2.1/wlan/src_sd8686/os/linux -I/home/perso/Bureau/usb_data/Driver_Wifi_BT/Release-v2.1/linux-s3c2412-sd8686-src-v2.1/wlan/src_sd8686/wlan -I/home/perso/Bureau/usb_data/Driver_Wifi_BT/Release-v2.1/linux-s3c2412-sd8686-src-v2.1/wlan/src_sd8686/if/if_sdio -I/home/perso/Bureau/usb_data/Driver_Wifi_BT/Release-v2.1/linux-s3c2412-sd8686-src-v2.1/wlan/src_sd8686/io/sdio/s3c2412 -I/home/perso/Bureau/linux-2.6.25/include -DFPNUM="4" -DPROC_DEBUG -DREASSOCIATION
    Voici l'arborescence de mon dossier :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    tree
    .
    |-- Makefile
    |-- Makefile~
    |-- Module.symvers
    |-- README
    |-- app
    |   `-- wlanconfig
    |       |-- Makefile
    |       |-- wlanconfig.c
    |       `-- wlanconfig.h
    |-- config
    |   |-- arpfilter.conf
    |   |-- bg_scan.conf
    |   |-- cal_data_ext_set_v5.conf
    |   |-- cal_data_ext_set_v7.conf
    |   |-- cal_data_ext_set_vA.conf
    |   |-- hostcmd.conf
    |   `-- tspecs.conf
    |-- if
    |   `-- if_sdio
    |       |-- helper.h
    |       |-- if_sdio.c
    |       |-- if_sdio.h
    |       `-- sd8686.h
    |-- io
    |   `-- sdio
    |       |-- pxa270m
    |       |   |-- Makefile
    |       |   |-- sdio.c
    |       |   |-- sdio.h
    |       |   |-- sdio_defs.h
    |       |   |-- sdio_error.h
    |       |   `-- sdio_spec.h
    |       `-- s3c2412
    |           |-- sdio.c
    |           |-- sdio.h
    |           `-- sdio_spec.h
    |-- make_output.txt
    |-- os
    |   `-- linux
    |       |-- os_defs.h
    |       |-- os_headers.h
    |       |-- os_macros.h
    |       |-- os_timers.h
    |       `-- wlan_thread.h
    |-- release_version.h
    `-- wlan
        |-- host.h
        |-- hostcmd.h
        |-- include.h
        |-- sbi.h
        |-- wlan_11d.c
        |-- wlan_11d.h
        |-- wlan_cmd.c
        |-- wlan_cmdresp.c
        |-- wlan_debug.c
        |-- wlan_decl.h
        |-- wlan_defs.h
        |-- wlan_dev.h
        |-- wlan_fops.c
        |-- wlan_fw.c
        |-- wlan_join.c
        |-- wlan_join.h
        |-- wlan_main.c
        |-- wlan_proc.c
        |-- wlan_rx.c
        |-- wlan_scan.c
        |-- wlan_scan.h
        |-- wlan_tx.c
        |-- wlan_types.h
        |-- wlan_version.h
        |-- wlan_wext.c
        |-- wlan_wext.h
        |-- wlan_wmm.c
        `-- wlan_wmm.h

  2. #2
    Expert éminent sénior
    Avatar de Sve@r
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Février 2006
    Messages
    12 731
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Oise (Picardie)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Aéronautique - Marine - Espace - Armement

    Informations forums :
    Inscription : Février 2006
    Messages : 12 731
    Points : 31 054
    Points
    31 054
    Billets dans le blog
    1

Discussions similaires

  1. Concaténation de plusieurs valeurs : des quotes qui manquent ?
    Par Palsajicoco dans le forum Général JavaScript
    Réponses: 3
    Dernier message: 30/03/2011, 14h26
  2. Réponses: 1
    Dernier message: 12/08/2010, 15h01
  3. Obtenir le nom des services qui tournent ...
    Par vbcasimir dans le forum Administration système
    Réponses: 4
    Dernier message: 21/01/2004, 17h32
  4. Travailler sur des données qui doivent être triées
    Par haypo dans le forum XML/XSL et SOAP
    Réponses: 2
    Dernier message: 19/07/2003, 17h13
  5. [VB6] Des labels qui réagissent à la souris
    Par murielle dans le forum VB 6 et antérieur
    Réponses: 8
    Dernier message: 24/10/2002, 14h19

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo