This forum is in archive mode. You will not be able to post new content.

Author Topic: [HELP] Trouble compiling wireless module  (Read 1563 times)

0 Members and 1 Guest are viewing this topic.

Offline iTpHo3NiX

  • EZ's Pirate Captain
  • Administrator
  • Titan
  • *
  • Posts: 2920
  • Cookies: 328
    • View Profile
    • EvilZone
[HELP] Trouble compiling wireless module
« on: June 06, 2013, 10:36:04 PM »
Environment: Ubuntu 12.04 LTS
Kernel: https://github.com/ktoonsez/KT-SGS4.git (TW branch)

ath Makefile:

Code: [Select]
obj-$(CONFIG_ATH5K)        += ath5k/
obj-$(CONFIG_ATH9K_HW)        += ath9k/
obj-$(CONFIG_CARL9170)        += carl9170/
obj-$(CONFIG_ATH6KL)        += ath6kl/

obj-$(CONFIG_ATH_COMMON)    += ath.o

ath-objs :=    main.o \
        regd.o \
        hw.o \
        key.o

ath-$(CONFIG_ATH_DEBUG) += debug.o
ccflags-y += -D__CHECK_ENDIAN__

ath9k Makefile:
Code: [Select]
ath9k-y +=    beacon.o \
        gpio.o \
        init.o \
        main.o \
        recv.o \
        xmit.o

ath9k-$(CONFIG_ATH9K_BTCOEX_SUPPORT) += mci.o
ath9k-$(CONFIG_ATH9K_RATE_CONTROL) += rc.o
ath9k-$(CONFIG_ATH9K_PCI) += pci.o
ath9k-$(CONFIG_ATH9K_AHB) += ahb.o
ath9k-$(CONFIG_ATH9K_DEBUGFS) += debug.o
ath9k-$(CONFIG_ATH9K_DFS_DEBUGFS) += dfs_debug.o
ath9k-$(CONFIG_ATH9K_DFS_CERTIFIED) += dfs.o

obj-$(CONFIG_ATH9K) += ath9k.o

ath9k_hw-y:=    \
        ar9002_hw.o \
        ar9003_hw.o \
        hw.o \
        ar9003_phy.o \
        ar9002_phy.o \
        ar5008_phy.o \
        ar9002_calib.o \
        ar9003_calib.o \
        ar9003_rtt.o \
        calib.o \
        eeprom.o \
        eeprom_def.o \
        eeprom_4k.o \
        eeprom_9287.o \
        ani.o \
        mac.o \
        ar9002_mac.o \
        ar9003_mac.o \
        ar9003_eeprom.o \
        ar9003_paprd.o

ath9k_hw-$(CONFIG_ATH9K_BTCOEX_SUPPORT) += btcoex.o \
                       ar9003_mci.o
obj-$(CONFIG_ATH9K_HW) += ath9k_hw.o

obj-$(CONFIG_ATH9K_COMMON) += ath9k_common.o
ath9k_common-y:=    common.o

ath9k_htc-y +=    htc_hst.o \
        hif_usb.o \
        wmi.o \
        htc_drv_txrx.o \
        htc_drv_main.o \
        htc_drv_beacon.o \
        htc_drv_init.o \
        htc_drv_gpio.o

ath9k_htc-$(CONFIG_ATH9K_HTC_DEBUGFS) += htc_drv_debug.o

obj-$(CONFIG_ATH9K_HTC) += ath9k_htc.o

Output:
Code: [Select]
itpho3nix@it-build:~/android/kernel/KT-SGS4/drivers/net/wireless/ath$ make -C ath9k ARCH=arm SUBARCH=arm CROSS_COMPILE=~/android/toolchains/arm-eabi-4.6/bin/arm-eabi-
make: Entering directory `/home/itpho3nix/android/kernel/KT-SGS4/drivers/net/wireless/ath/ath9k'
make: *** No targets.  Stop.
make: Leaving directory `/home/itpho3nix/android/kernel/KT-SGS4/drivers/net/wireless/ath/ath9k'

So what am I doing wrong here?


Modified my makefiles (ath and ath9k) to this (just appended)

ath
Code: [Select]
obj-m := ath.o
KDIR := /android/kernel/KT-SGS4
PWD := $(shell pwd)
CCPATH := /android/toolchain/arm-eabi-4.6/bin/
default:
$(MAKE) ARCH=arm CROSS_COMPILE=$(CCPATH)/arm-eabi- -C $(KDIR) M=$(PWD) modules

ath9k
Code: [Select]
obj-m := ath9k.o
KDIR := /android/kernel/KT-SGS4
PWD := $(shell pwd)
CCPATH := /android/toolchain/arm-eabi-4.6/bin/
default:
$(MAKE) ARCH=arm CROSS_COMPILE=$(CCPATH)/arm-eabi- -C $(KDIR) M=$(PWD) modules

and ran the make command from root of kernel source and got this output:

Code: [Select]
itpho3nix@it-build:~/android/kernel/KT-SGS4$ make M=drivers/net/wireless/ath

  WARNING: Symbol version dump /home/itpho3nix/android/kernel/KT-SGS4/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  drivers/net/wireless/ath/main.o
gcc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead
cc1: error: unrecognized command line option ‘-mlittle-endian’
cc1: error: unrecognized command line option ‘-mapcs’
cc1: error: unrecognized command line option ‘-mno-sched-prolog’
cc1: error: unrecognized command line option ‘-mfpu=neon-vfpv4’
cc1: error: unrecognized command line option ‘-marm’
cc1: error: unrecognized command line option ‘-mfpu=neon’
cc1: error: unrecognized command line option ‘-mvectorize-with-neon-quad’
drivers/net/wireless/ath/main.c:1:0: error: unknown ABI (apcs-gnu) for -mabi= switch
drivers/net/wireless/ath/main.c:1:0: error: bad value (armv4t) for -march= switch
drivers/net/wireless/ath/main.c:1:0: error: bad value (cortex-a8) for -mtune= switch
cc1: warning: unrecognized command line option "-Wno-maybe-uninitialized" [enabled by default]
make[1]: *** [drivers/net/wireless/ath/main.o] Error 1
make: *** [_module_drivers/net/wireless/ath] Error 2
« Last Edit: June 06, 2013, 11:24:38 PM by DeepCopy »
[09:27] (+lenoch) iTpHo3NiX can even manipulate me to suck dick
[09:27] (+lenoch) oh no that's voluntary
[09:27] (+lenoch) sorry

 



Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.