]> git.ipfire.org Git - thirdparty/openwrt.git/commit
at91: explicitly set CONFIG_USB_SUPPORT for sam9x subtarget
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 27 Aug 2020 14:10:38 +0000 (16:10 +0200)
committermaurerr <mariusd84@gmail.com>
Wed, 1 Sep 2021 08:06:54 +0000 (08:06 +0000)
commit9db4b87bc2f6a0fe8c09c1ecf4dfdae0485fef9b
treec9aae08f413aebd5ce937ba124a085dd1315ed4e
parenta9b3273321afa0c1fb7bfb73c28df5ca2321d756
at91: explicitly set CONFIG_USB_SUPPORT for sam9x subtarget

The at91 target sets

  FEATURES:=usb usbgadget ...

in the target Makefile, which sets CONFIG_USB_SUPPORT=y in the
.config file for both subtargets.

However, when building with all kmods, the build fails with the
following error message:

  ERROR: module [...]/drivers/bluetooth/btusb.ko is missing.

It appears that only a part of the bluetooth files are compiled.
The package depends @USB_SUPPORT.

This can be easily healed by adding CONFIG_USB_SUPPORT=y to the
sam9x subtarget configuration. Before the 4.14->5.4 bump, the
same was also set in the target's config-4.14 file along with
several other USB config options that are not reimplemented.

Still, it remains a mystery to me why setting the same symbol
via target kernel config creates a different result than the
feature setting the same symbol in target-metadata.pl.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Signed-off-by: maurerr <mariusd84@gmail.com>
target/linux/at91/sam9x/config-default