ImmortalWrt/target/linux/x86
Christian Lamparter 0cd1fc0fe5 x86: detangle meraki-mx100 / nu801 build confusion
Grommish reported the dreaded build error that happend with 5.4
since the kernel didn't have the cgpio v2 interface. His reason
for the removed 5.4 was that the octeon target had a memory leak
issue, so he had to backport the removed 5.4 kernel for his tests.

Chen Minqiang chimed in and noted that no matter what (i.e.
@TARGET_x86 in depends) didn't prevent the package from being build
on other targets.

From what I can tell, the reason for this was that +nu801 meant
that kmod-meraki-mx100 pulled in an unconditional dependency as
part of to the kernel build.

|scripts/package-metadata.pl mk tmp/.packageinfo
|
|$(curdir)/kernel/linux/compile += $(curdir)/firmware/linux-firmware/compile \
|	$(curdir)/firmware/prism54-firmware/compile \
|	$(curdir)/kernel/gpio-button-hotplug/compile \
|	>>> $(curdir)/system/gpio-cdev/nu801/compile <<<

change this by making the dependency conditional on the
meraki-mx100 module itself. Note that the nu801 enables/sets
the  KCONFIG for the cgpio v2 interface itself, since the
userspace program and not the kernel meraki-mx100 relies on it.

Reference: <https://github.com/openwrt/openwrt/commit/eeb8fd4ce7e9>
Reported-by: Grommish <grommish@gmail.com>
Reported-by: Chen Minqiang <ptpt52@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-05-07 14:31:22 +02:00
..
64 x86: update config for 5.15 2022-03-29 12:02:50 +02:00
base-files x86: Add support for Sophos XG 85 and XG 86 devices 2022-03-26 02:02:45 +01:00
generic x86: update config for 5.15 2022-03-29 12:02:50 +02:00
geode x86: update config for 5.15 2022-03-29 12:02:50 +02:00
image x86: geode: fix package nameing kmod-crypto-ebc does not exist 2022-02-26 13:36:30 +01:00
legacy x86: update config for 5.15 2022-03-29 12:02:50 +02:00
patches-5.10 kernel: x86: remove an upstreamed patch 2022-04-20 11:53:07 +01:00
patches-5.15 kernel: x86: remove an upstreamed patch 2022-04-20 11:53:07 +01:00
config-5.10 kernel: 5.10: allocate last level PTEs in high memory 2022-03-01 22:57:34 +00:00
config-5.15 kernel: move some symbols to generic config 2022-04-09 19:31:46 +02:00
Makefile x86: enable 5.15 as testing kernel 2022-03-29 12:02:50 +02:00
modules.mk x86: detangle meraki-mx100 / nu801 build confusion 2022-05-07 14:31:22 +02:00