Thanks a lot for your time.
So dropping the makefile in package/8812au/, but it errors out.
make[3]: Entering directory '/home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/linux-4.4.27'
CC [M] /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/RTL8812A-688f6ac5e412ecfa074d33d95e9c11202f301d95/core/rtw_cmd.o
In file included from /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/RTL8812A-688f6ac5e412ecfa074d33d95e9c11202f301d95/include/byteorder/little_endian.h:30:0,
from /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/RTL8812A-688f6ac5e412ecfa074d33d95e9c11202f301d95/include/rtw_byteorder.h:30,
from /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/RTL8812A-688f6ac5e412ecfa074d33d95e9c11202f301d95/include/drv_types.h:33,
from /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/RTL8812A-688f6ac5e412ecfa074d33d95e9c11202f301d95/core/rtw_cmd.c:22:
/home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/RTL8812A-688f6ac5e412ecfa074d33d95e9c11202f301d95/include/byteorder/swab.h:114:29: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
__inline static const __u16 __fswab16(__u16 x)
^
/home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/RTL8812A-688f6ac5e412ecfa074d33d95e9c11202f301d95/include/byteorder/swab.h:114:29: error: conflicting types for '__fswab16'
I wasn't sure the build system was pulling the right branch so I forked the repo. Also my gist didn't have the right commit so that didn't help things.
Now I don't error out, but I also don't build anything.
make V=s package/8812au/{clean,install}
rm -f /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/RTL8812A-a422338714853794b7cfb8ed7e2fcec355b4399d/.configured_*
touch /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/RTL8812A-a422338714853794b7cfb8ed7e2fcec355b4399d/.configured_yyyyyyyyy
make -C /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/linux-4.4.27 HOSTCFLAGS="-O2 -I/home/weedy/projects/openwrt-lede/staging_dir/host/include -I/home/weedy/projects/openwrt-lede/staging_dir/host/usr/include -I/home/weedy/projects/openwrt-lede/staging_dir/target-mips_24kc_musl-1.1.15/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mips-openwrt-linux-musl-" ARCH="mips" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Tue Oct 25 15:51:08 2016" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/home/weedy/projects/openwrt-lede/staging_dir/host/lib" CONFIG_SHELL="bash" V='' CC="mips-openwrt-linux-musl-gcc" M=/home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/RTL8812A-a422338714853794b7cfb8ed7e2fcec355b4399d CONFIG_RTL8812A=y CONFIG_RTL8821AU=y modules
make[3]: Entering directory '/home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/linux-4.4.27'
Building modules, stage 2.
MODPOST 0 modules
make[3]: Leaving directory '/home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/linux-4.4.27'
But the source isn't broken.
weedy@HAF ~/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/RTL8812A-a422338714853794b7cfb8ed7e2fcec355b4399d $ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.7.9-zen+/build M=/home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/RTL8812A-a422338714853794b7cfb8ed7e2fcec355b4399d modules
make[1]: Entering directory '/usr/src/linux-4.99-zen0'
CC [M] /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/RTL8812A-a422338714853794b7cfb8ed7e2fcec355b4399d/core/rtw_cmd.o
CC [M] /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/RTL8812A-a422338714853794b7cfb8ed7e2fcec355b4399d/core/rtw_security.o
CC [M] /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/RTL8812A-a422338714853794b7cfb8ed7e2fcec355b4399d/core/rtw_debug.o
CC [M] /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/RTL8812A-a422338714853794b7cfb8ed7e2fcec355b4399d/core/rtw_io.o
CC [M] /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/RTL8812A-a422338714853794b7cfb8ed7e2fcec355b4399d/core/rtw_ioctl_query.o
CC [M] /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/RTL8812A-a422338714853794b7cfb8ed7e2fcec355b4399d/core/rtw_ioctl_set.o
^Cmake[2]: *** Deleting file '/home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/RTL8812A-a422338714853794b7cfb8ed7e2fcec355b4399d/core/rtw_ioctl_set.o'
make[2]: *** [scripts/Makefile.build:290: /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/RTL8812A-a422338714853794b7cfb8ed7e2fcec355b4399d/core/rtw_ioctl_set.o] Interrupt
make[1]: *** [Makefile:1460: _module_/home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/RTL8812A-a422338714853794b7cfb8ed7e2fcec355b4399d] Interrupt
But the build system is????
weedy@HAF ~/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/RTL8812A-a422338714853794b7cfb8ed7e2fcec355b4399d $ PATH="/home/weedy/projects/openwrt-lede/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.15/bin/:$PATH" make ARCH="mips" CROSS_COMPILE="mips-openwrt-linux-musl-" -C /home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/linux-4.4.27 M=/home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/RTL8812A-a422338714853794b7cfb8ed7e2fcec355b4399d modules
make: Entering directory '/home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/linux-4.4.27'
mips-openwrt-linux-musl-gcc: warning: environment variable 'STAGING_DIR' not defined
Building modules, stage 2.
MODPOST 0 modules
make: Leaving directory '/home/weedy/projects/openwrt-lede/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/linux-4.4.27'
My tree is probably from mid October. Should I sync up with whatever you are using? Is my tree broken somehow?
I thought it might be your CONFIG_RTL8821AU vs. RealTeks CONFIG_RTL8821A, nope.
I thought it might be your =m vs. RealTeks =y, nope.
Again I'm stumped. Can I bother you for some more of your time?