[OpenWrt-Devel] Build system puzzles: PCI_SUPPORT not being set for subtarget

Tomasz Maciej Nowak tomek_n at o2.pl
Thu May 9 13:28:30 EDT 2019


Hi Jeff,

W dniu 09.05.2019 o 18:25, Jeff Kletsky pisze:
> On 5/9/19 12:04 PM, Petr Štetiar wrote:
> 
>> Jeff Kletsky <lede at allycomm.com> [2019-05-09 11:23:18]:
>>
>>> I reconfirmed that
>>>
>>>    openwrt/target/linux/ath79$ cp generic/config-default nand/config-default
>>>    openwrt$ cat /dev/null > .config
>>>    openwrt$ make menuconfig
>>>
>>> has the same behavior -- the nand target does not set PCI_SUPPORT
>> it works here(tm):
>>
>>   CONFIG_TARGET_ath79=y
>>   CONFIG_TARGET_ath79_nand=y
>>   CONFIG_TARGET_ath79_nand_DEVICE_glinet_gl-ar300m-nand=y
>>   CONFIG_ATH10K-CT_LEDS=y
>>   CONFIG_DRIVER_11AC_SUPPORT=y
>>   CONFIG_PACKAGE_kmod-ath10k-ct=y
>>   CONFIG_PACKAGE_kmod-hwmon-core=y
>>
>> -- ynezz
> 
> What I'm seeing is that ath10k gets stripped out for nand,
> but not for nor. I ran "virgin" tests with the scripts below,
> with the same config-default in both generic/ and nand/.

I did run Your script for nand and this is the output (removed feeds to speed-up):

[tomek at vaio-vpcz1 openwrt]$ ./test.sh
Cloning into 'openwrt-nand-test'...
remote: Enumerating objects: 462518, done.
remote: Counting objects: 100% (462518/462518), done.
remote: Compressing objects: 100% (127148/127148), done.
remote: Total 462518 (delta 319734), reused 457552 (delta 315662)
Receiving objects: 100% (462518/462518), 144.35 MiB | 5.37 MiB/s, done.
Resolving deltas: 100% (319734/319734), done.
CONFIG_PACKAGE_kmod-ath10k-ct=y


=====

'target/linux/ath79/generic/config-default' -> 'target/linux/ath79/nand/config-default'
Checking 'working-make'... ok.
Checking 'case-sensitive-fs'... ok.
Checking 'proper-umask'... ok.
Checking 'gcc'... ok.
Checking 'working-gcc'... ok.
Checking 'g++'... ok.
Checking 'working-g++'... ok.
Checking 'ncurses'... ok.
Checking 'perl-thread-queue'... ok.
Checking 'tar'... ok.
Checking 'find'... ok.
Checking 'bash'... ok.
Checking 'patch'... ok.
Checking 'diff'... ok.
Checking 'cp'... ok.
Checking 'seq'... ok.
Checking 'awk'... ok.
Checking 'grep'... ok.
Checking 'getopt'... ok.
Checking 'stat'... ok.
Checking 'unzip'... ok.
Checking 'bzip2'... ok.
Checking 'wget'... ok.
Checking 'perl'... ok.
Checking 'python'... ok.
Checking 'git'... ok.
Checking 'file'... ok.
Checking 'ldconfig-stub'... ok.
Collecting package info: done
Collecting target info: done
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam',
which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a build dependency on
'libpam', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on
'libgnutls', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on
'libopenldap', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on
'libidn2', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on
'libssh2', which does not exist
WARNING: Makefile 'package/boot/kexec-tools/Makefile' has a dependency on 'liblzma',
which does not exist
WARNING: Makefile 'package/network/services/lldpd/Makefile' has a dependency on
'libnetsnmp', which does not exist
WARNING: Makefile 'package/network/utils/nftables/Makefile' has a dependency on
'jansson', which does not exist
configuration written to .config

*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

# ath10k IPQ4019 Boarddata
# CONFIG_PACKAGE_ath10k-firmware-qca4019 is not set
# CONFIG_PACKAGE_ath10k-firmware-qca4019-ct is not set
# CONFIG_PACKAGE_ath10k-firmware-qca4019-ct-htt is not set
# CONFIG_PACKAGE_ath10k-firmware-qca6174 is not set
# CONFIG_PACKAGE_ath10k-firmware-qca9887 is not set
# CONFIG_PACKAGE_ath10k-firmware-qca9887-ct is not set
# CONFIG_PACKAGE_ath10k-firmware-qca9887-ct-htt is not set
# CONFIG_PACKAGE_ath10k-firmware-qca9888 is not set
# CONFIG_PACKAGE_ath10k-firmware-qca9888-ct is not set
# CONFIG_PACKAGE_ath10k-firmware-qca9888-ct-htt is not set
# CONFIG_PACKAGE_ath10k-firmware-qca988x is not set
# CONFIG_PACKAGE_ath10k-firmware-qca988x-ct is not set
# CONFIG_PACKAGE_ath10k-firmware-qca988x-ct-htt is not set
# CONFIG_PACKAGE_ath10k-firmware-qca9984 is not set
# CONFIG_PACKAGE_ath10k-firmware-qca9984-ct is not set
# CONFIG_PACKAGE_ath10k-firmware-qca9984-ct-htt is not set
# CONFIG_PACKAGE_ath10k-firmware-qca99x0 is not set
# CONFIG_PACKAGE_ath10k-firmware-qca99x0-ct is not set
# CONFIG_PACKAGE_ath10k-firmware-qca99x0-ct-htt is not set
# CONFIG_PACKAGE_kmod-ath10k is not set
CONFIG_PACKAGE_kmod-ath10k-ct=y

So it appears to work.

> Perhaps I am missing something or misunderstood, but below
> is what I'm seeing with what I interpreted as .config seed above.
> 
> Both
> 
>   # CONFIG_PACKAGE_kmod-ath10k is not set
>   CONFIG_PACKAGE_kmod-ath10k-ct=y
> 
> are missing for the nand subtarget.
> 
> 
> I'm willing to track this down (as I've got an AR750S
> running on NAND, including sysupgrade), but at least so far
> I haven't been successful in getting output from
> scripts/kconfig.pl to confirm that it is what is generating
> the config from the various pieces at the generic-Linux, target,
> and subtarget levels. Is there a different place I should
> be looking?

When adding changes to target/subtarget config sometimes It's necessary to remove
$(TOPDIR)/tmp to see changes, maybe that's the issue You were hitting?

Regards

-- 
TMN

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list