Environment: Ubuntu 12.04 LTS
Kernel:
https://github.com/ktoonsez/KT-SGS4.git (TW branch)
ath Makefile:
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:
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:
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
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
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:
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