I'm trying to modify Makefile from lwfinger driver to crosscompile it to arm

here's the makefile:
SHELL := /bin/bash
EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS)
EXTRA_CFLAGS += -O1

EXTRA_CFLAGS += -Wno-unused-variable
EXTRA_CFLAGS += -Wno-unused-value
EXTRA_CFLAGS += -Wno-unused-label
EXTRA_CFLAGS += -Wno-unused-parameter
EXTRA_CFLAGS += -Wno-unused-function
EXTRA_CFLAGS += -Wno-unused

EXTRA_CFLAGS += -Wno-uninitialized

EXTRA_CFLAGS += -I$(src)/include

ccflags-y += -D__CHECK_ENDIAN__

CONFIG_AUTOCFG_CP = n

CONFIG_RTL8188E = y

CONFIG_USB_HCI = y

CONFIG_BT_COEXIST = n
CONFIG_WOWLAN = n

export TopDIR ?= $(shell pwd)


OUTSRC_FILES :=                \
        hal/HalHWImg8188E_MAC.o    \
        hal/HalHWImg8188E_BB.o    \
        hal/HalHWImg8188E_RF.o    \
        hal/HalPhyRf.o        \
        hal/HalPhyRf_8188e.o    \
        hal/HalPwrSeqCmd.o    \
        hal/Hal8188EPwrSeq.o    \
        hal/Hal8188ERateAdaptive.o\
        hal/hal_intf.o        \
        hal/hal_com.o        \
        hal/odm.o        \
        hal/odm_debug.o        \
        hal/odm_interface.o    \
        hal/odm_HWConfig.o    \
        hal/odm_RegConfig8188E.o\
        hal/odm_RTL8188E.o    \
        hal/rtl8188e_cmd.o    \
        hal/rtl8188e_dm.o    \
        hal/rtl8188e_hal_init.o    \
        hal/rtl8188e_mp.o    \
        hal/rtl8188e_phycfg.o    \
        hal/rtl8188e_rf6052.o    \
        hal/rtl8188e_rxdesc.o    \
        hal/rtl8188e_sreset.o    \
        hal/rtl8188e_xmit.o    \
        hal/rtl8188eu_led.o    \
        hal/rtl8188eu_recv.o    \
        hal/rtl8188eu_xmit.o    \
        hal/usb_halinit.o    \
        hal/usb_ops_linux.o

RTL871X = rtl8188e

HCI_NAME = usb

_OS_INTFS_FILES :=                \
            os_dep/ioctl_linux.o    \
            os_dep/mlme_linux.o    \
            os_dep/os_intfs.o    \
            os_dep/osdep_service.o    \
            os_dep/recv_linux.o    \
            os_dep/rtw_android.o    \
            os_dep/usb_intf.o    \
            os_dep/usb_ops_linux.o    \
            os_dep/xmit_linux.o




_HAL_INTFS_FILES += $(OUTSRC_FILES)


ifeq ($(CONFIG_AUTOCFG_CP), y)

$(shell cp $(TopDIR)/autoconf_rtl8188e_usb_linux.h 
$(TopDIR)/include/autoconf.h)
endif

ifeq ($(CONFIG_BT_COEXIST), y)
EXTRA_CFLAGS += -DCONFIG_BT_COEXIST
endif

ifeq ($(CONFIG_WOWLAN), y)
EXTRA_CFLAGS += -DCONFIG_WOWLAN
endif

SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ | sed -e s/ppc/powerpc/ | 
sed -e s/armv.l/arm/)

ARCH ?= $(SUBARCH)
CROSS_COMPILE ?=
KVER  := $(shell uname -r)
KSRC ?= /lib/modules/$(KVER)/build
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless
INSTALL_PREFIX :=

ifneq ($(KERNELRELEASE),)

rtk_core :=                \
        core/rtw_ap.o        \
        core/rtw_br_ext.o    \
        core/rtw_cmd.o        \
        core/rtw_debug.o    \
        core/rtw_efuse.o    \
        core/rtw_ieee80211.o    \
        core/rtw_io.o        \
        core/rtw_ioctl_set.o    \
        core/rtw_iol.o        \
        core/rtw_led.o        \
        core/rtw_mlme.o        \
        core/rtw_mlme_ext.o    \
        core/rtw_mp.o        \
        core/rtw_mp_ioctl.o    \
        core/rtw_pwrctrl.o    \
        core/rtw_p2p.o        \
        core/rtw_recv.o        \
        core/rtw_rf.o        \
        core/rtw_security.o    \
        core/rtw_sreset.o    \
        core/rtw_sta_mgt.o    \
        core/rtw_wlan_util.o    \
        core/rtw_xmit.o    

8188eu-y += $(rtk_core)

8188eu-y += $(_HAL_INTFS_FILES)

8188eu-y += $(_OS_INTFS_FILES)

obj-$(CONFIG_RTL8188EU) := 8188eu.o

else

export CONFIG_RTL8188EU = m

all: modules

modules:
    $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) 
M=$(shell pwd)  modules

strip:
    $(CROSS_COMPILE)strip 8188eu.ko --strip-unneeded

install:
    install -p -m 644 8188eu.ko  $(MODDESTDIR)
    @if [ -a 
/lib/modules/$(KVER)/kernel/drivers/staging/rtl8188eu/r8188eu.ko ] ; then 
modprobe -r r8188eu; fi;
    @echo "blacklist r8188eu" > /etc/modprobe.d/50-8188eu.conf
    cp rtl8188eufw.bin /lib/firmware/.
    /sbin/depmod -a ${KVER}
    mkdir -p /lib/firmware/rtlwifi
    cp -n rtl8188eufw.bin /lib/firmware/rtlwifi/.

uninstall:
    rm -f $(MODDESTDIR)/8188eu.ko
    /sbin/depmod -a ${KVER}
    @rm /etc/modprobe.d/50-8188eu.conf

config_r:
    @echo "make config"
    /bin/bash script/Configure script/config.in

.PHONY: modules clean clean_odm-8192c

clean_odm-8192c:
    cd hal/OUTSRC/rtl8192c ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko

clean: $(clean_more)
    rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
    rm -fr .tmp_versions
    rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
    cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
    cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
    cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
endif

Someone who knows about shellscript can tell me please where to modify it?


El sábado, 19 de octubre de 2013, 15:07:51 (UTC-5), jeff....@gmail.com 
escribió:
>
> I am recently playing ard with WIFI o BBB on WN725 also. I'll also try 
> this out. Btw anyone is successful in compiling lwfinger driver in ARM 
> architecture? I don't seem to be able to get it to compile in ARM,
>
> On Wednesday, October 16, 2013 4:12:11 AM UTC+8, Ken Yang wrote:
>>
>> Thanks a lot and will give it a try!
>>
>> On Monday, 14 October 2013 04:31:57 UTC-4, sekr...@gmail.com wrote:
>>>
>>> Hello Ken Yang,
>>>
>>> Sorry for very late. Here is link to compiled kernel on Google Drive 
>>> https://docs.google.com/file/d/0B7PmdsPeTtVOeHpHQ3dNX0pDMk0/edit?usp=sharing
>>> .
>>>
>>> ** USB WiFi adapter must be plugged in before power-on.
>>>
>>> 1. extract content to root file system.
>>> tar -xvf kernel.tar.gz -C /
>>>
>>> 2. Rebuild the module list.
>>> depmod -a
>>>
>>> 3. Probe the module.
>>> modprobe 8188eu
>>>
>>> 4. Generate encrypted WiFi pass phrase.
>>>
>>> wpa_passphrase <ssid> <passphrase>
>>> ex. My SSID=Sek, passphrase=sekranger
>>> wpa_passphrase Sek sekranger
>>>
>>> This command will output something similar to this.
>>>
>>> network={
>>>     ssid="Sek"
>>>     #psk="sekranger"
>>>     psk=f5d1c49e15e679bebe385c37648d4141bc5c9297796a8a185d7bc5ac62f954e3
>>> }
>>>
>>> 5. copy your encrypted pass phrase. For me, it's:
>>> f5d1c49e15e679bebe385c37648d4141bc5c9297796a8a185d7bc5ac62f954e3
>>>
>>> 6. Use your favorite text editor to edit /var/lib/connman/wifi.config.
>>> If it doesn't exists, create one.
>>>
>>> 7. Put this into wifi.config.
>>> [service_home]
>>> Type=wifi
>>> Name=<ssid>
>>> Passphrase=<encrypted_passphrase>
>>>
>>> ex.
>>> [service_home]
>>> Type=wifi
>>> Name=Sek
>>> Passphrase=f5d1c49e15e679bebe385c37648d4141bc5c9297796a8a185d7bc5ac62f954e3
>>>
>>> 8.restart your BBB.
>>>
>>> 9.If you have any issue, please let me know. I may not be to help you. But 
>>> we can mess everything up together. LOL
>>>
>>>
>>>
>>> On Saturday, October 12, 2013 12:17:30 AM UTC+7, Ken Yang wrote:
>>>>
>>>> Thanks so much. Please share what you had.  I understand the risk and 
>>>> will not be blaming you if anything happens to my BBB LOL
>>>>
>>>> On Friday, 11 October 2013 06:24:11 UTC-4, sekr...@gmail.com wrote:
>>>>>
>>>>> Sorry
>>>>>
>>>>> My friend borrowed my BBB since last monday. But I have a built kernel 
>>>>> in tar ball (with 8188eus module).
>>>>>
>>>>> Would you like to try it?
>>>>>
>>>>> On Thursday, October 10, 2013 11:08:27 PM UTC+7, Nicola Farina wrote:
>>>>>>
>>>>>> I'm also interested in your solution as I'm recycling that same 
>>>>>> dongle from the RaspberryPi and remember I had to fiddle there too.
>>>>>>
>>>>>> Il giorno martedì 1 ottobre 2013 19:23:15 UTC+2, sekr...@gmail.com 
>>>>>> ha scritto:
>>>>>>>
>>>>>>> I can get my rtl8188eus(TL-WN723N) to work now. I don't know if 
>>>>>>> anyone still want to know.
>>>>>>> I will post the way I get this to work tomorrow.
>>>>>>>
>>>>>>> If someone read my post here, please show a sign of life.
>>>>>>>
>>>>>>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to