kernel: broadcom-wl: multiple fix to make the package compilable again
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 10 May 2023 13:45:49 +0000 (15:45 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 12 May 2023 01:15:45 +0000 (03:15 +0200)
commit3ccdc15c6ab14df898d9f36f0d7fa752ac1c15d6
treef5726e819a1e7a5c7d3d7586a82884b164b5d9f2
parent136059d72a0fd39d98ad66aba418bad00b4ed78a
kernel: broadcom-wl: multiple fix to make the package compilable again

Add multiple patch to make the package compilable again.
Aside from some fixup of obvius wrong code, some real fix were needed.
This fix any compilation warning found on compiling the package on
bcm47xx. (omitted since they are too much)

The real problem of this package was the missing MODULE_LICENSE now
mandatory even without WERROR. Set to Proprietary.
And the big blocker is that Broadcom provided an object file targetting
an old kernel version.
The module on modprobe try to find the symbol printk but printk was
dropped and replaced to _printk.
To handle this change we use objcopy tool to rename the symbol to the
new name permitting a correct modprobe and creation of .ko

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
package/kernel/broadcom-wl/Makefile
package/kernel/broadcom-wl/patches/919-fix-compilation-warning-for-stack-limit.patch [new file with mode: 0644]
package/kernel/broadcom-wl/patches/920-aiutils-fix-wrong-misleading-if.patch [new file with mode: 0644]
package/kernel/broadcom-wl/patches/921-fix-simple-compilation-warning.patch [new file with mode: 0644]
package/kernel/broadcom-wl/patches/930-wl_linux-set-module-license-Proprietary.patch [new file with mode: 0644]