ulli-kroll / rtl8822bu

rtl8822bu/rtl8812bu driver for linux
GNU General Public License v2.0
65 stars 20 forks source link

Unable to cross-compile for ARM arch #17

Open smutking opened 3 years ago

smutking commented 3 years ago

I'm trying to cross-compile this driver for ARM arch but modules aren't building.

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -C /lib/modules/4.19.0-socfpga-r1/build M=/home/osboxes/mister/rtl8822bu  modules
make[1]: Entering directory '/home/osboxes/mister/linux-kernel_mister'
  Building modules, stage 2.
  MODPOST 0 modules
make[1]: Leaving directory '/home/osboxes/mister/linux-kernel_mister'

However I am able to compile different driver (ie. https://github.com/ulli-kroll/rtl8188fu) using the same source:

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -C /lib/modules/4.19.0-socfpga-r1/build M=/home/osboxes/mister/rtl8188fu  modules
make[1]: Entering directory '/home/osboxes/mister/linux-kernel_mister'
  CC [M]  /home/osboxes/mister/rtl8188fu/core/rtw_cmd.o
  ...
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/osboxes/mister/rtl8188fu/rtl8188fu.mod.o
  LD [M]  /home/osboxes/mister/rtl8188fu/rtl8188fu.ko
make[1]: Leaving directory '/home/osboxes/mister/linux-kernel_mister'

Also modules for this driver are correctly build on the same machine when not cross-compiling.

ulli-kroll commented 3 years ago

Cross compile should work I've tested this with armv5,armv7 and aarch64

Please have a look here https://github.com/ulli-kroll/rtw88-usb This is a modified (mainstream) rtw88 PCi driver to use with the USB devices. Please read the README, if you also want to use the PCIe devices

Currently in testing a a patch set for the v5.12 changes