前回、KLIB、KLIB_BUILDという環境変数の設定がうまく行き?makeが通りcompat.ko、cfg80211.koがビルドできたのですが、肝心のath.ko、ath10k_xx.koドライバたちが生成されませんでした。今回はその原因を探ります。

【関連記事】
【組込ボードで無線LAN】②(無線LANカードN-6300を組込ボードに接続するには?)
【組込ボードで無線LAN】⑧(iwのビルド:後編-1)【組込ボードで無線LAN】⑰(QCA9377-5を挿してみた)
【組込ボードで無線LAN】㉓(backportをビルドしてみる‐2)
  • なぜクロスコンパイルするとath10kドライバたちがビルドされないの?
初心に帰り.configを削除してmenuconfigからやってみる。
(一旦ログアウト)
$ cd ~/backports/backports-5.2.8-1/
$ make clean
$ rm .config
$ make menuconfig
変更前
<> cfg80211 - wireless configuration API
     *** CFG80211 needs to be enabled for MAC80211 ***

変更後
 <M> cfg80211 - wireless configuration API
[ * ]     nl80211 testmode command
[   ]     enable developer warnings (NEW)
[   ]     cfg80211 certification onus (NEW)
[ * ]     enable powersave by default (NEW)
[   ]     cfg80211 DebugFS entriesonus (NEW)
[ * ]     support CRDA (NEW)
[   ]     cfg80211 wireless extension compatibility (NEW)
1

menuconfig画面を閉じて、デフォルトの.configをバックアップ。
$ cp .config .config-default
make defconfig-ath10kを実施しath10k向けの.configをバックアップ
$ make defconfig-ath10k
$ cp .config .config-ath10k
.configを比較。めちゃめちゃ差分あるなぁ…。ath10k向けに足されたやつを青字にしてみた。さらにATH10K、MAC80211と書いてあるCONFIGは青字かつ太字にした。
$ diff .config-default .config-ath10k
9a10
> CPTCFG_BPAUTO_LEDS_TRIGGERS=y
10a12
> CPTCFG_BPAUTO_WANT_DEV_COREDUMP=y
11a14,15
> CPTCFG_BPAUTO_RHASHTABLE=y
> CPTCFG_BPAUTO_BUCKET_LOCKS=y

19c23
< CPTCFG_NL80211_TESTMODE=y
---
> # CPTCFG_NL80211_TESTMODE is not set
27c31
< # CPTCFG_CFG80211_WEXT is not set
---
> CPTCFG_CFG80211_WEXT=y
29c33,42
< # CPTCFG_MAC80211 is not set
---
> CPTCFG_MAC80211=m
> CPTCFG_MAC80211_HAS_RC=y
> CPTCFG_MAC80211_RC_MINSTREL=y
> CPTCFG_MAC80211_RC_DEFAULT_MINSTREL=y
> CPTCFG_MAC80211_RC_DEFAULT="minstrel_ht"
> CPTCFG_MAC80211_MESH=y
> CPTCFG_MAC80211_LEDS=y
> # CPTCFG_MAC80211_DEBUGFS is not set
> # CPTCFG_MAC80211_MESSAGE_TRACING is not set
> # CPTCFG_MAC80211_DEBUG_MENU is not set

33a47,48
> # CPTCFG_ADM8211 is not set
> CPTCFG_ATH_COMMON=m

35a51
> # CPTCFG_ATH5K is not set
36a53,55
> # CPTCFG_ATH9K is not set
> # CPTCFG_ATH9K_HTC is not set
> # CPTCFG_CARL9170 is not set

37a57
> # CPTCFG_AR5523 is not set
38a59,67
> CPTCFG_ATH10K=m
> CPTCFG_ATH10K_CE=y
> CPTCFG_ATH10K_PCI=m
> CPTCFG_ATH10K_SDIO=m
> CPTCFG_ATH10K_USB=m
> CPTCFG_ATH10K_DEBUG=y
> CPTCFG_ATH10K_DEBUGFS=y
> # CPTCFG_ATH10K_SPECTRAL is not set
> # CPTCFG_ATH10K_TRACING is not set

39a69
> # CPTCFG_AT76C50X_USB is not set
40a71,73
> # CPTCFG_B43 is not set
> # CPTCFG_B43LEGACY is not set
> # CPTCFG_BRCMSMAC is not set

47a81,82
> # CPTCFG_IWL4965 is not set
> # CPTCFG_IWL3945 is not set

50a86
> # CPTCFG_P54_COMMON is not set
53a90
> # CPTCFG_LIBERTAS_THINFIRM is not set
54a92
> # CPTCFG_MWL8K is not set
55a94,100
> # CPTCFG_MT7601U is not set
> # CPTCFG_MT76x0U is not set
> # CPTCFG_MT76x0E is not set
> # CPTCFG_MT76x2E is not set
> # CPTCFG_MT76x2U is not set
> # CPTCFG_MT7603E is not set
> # CPTCFG_MT7615E is not set

56a102
> # CPTCFG_RT2X00 is not set
57a104,117
> # CPTCFG_RTL8180 is not set
> # CPTCFG_RTL8187 is not set
> CPTCFG_RTL_CARDS=m
> # CPTCFG_RTL8192CE is not set
> # CPTCFG_RTL8192SE is not set
> # CPTCFG_RTL8192DE is not set
> # CPTCFG_RTL8723AE is not set
> # CPTCFG_RTL8723BE is not set
> # CPTCFG_RTL8188EE is not set
> # CPTCFG_RTL8192EE is not set
> # CPTCFG_RTL8821AE is not set
> # CPTCFG_RTL8192CU is not set
> # CPTCFG_RTL8XXXU is not set
> # CPTCFG_RTW88 is not set

58a119
> # CPTCFG_RSI_91X is not set
59a121
> # CPTCFG_CW1200 is not set
60a123,126
> # CPTCFG_WL1251 is not set
> # CPTCFG_WL12XX is not set
> # CPTCFG_WL18XX is not set
> # CPTCFG_WLCORE is not set

62a129
> # CPTCFG_ZD1211RW is not set
64a132
> # CPTCFG_MAC80211_HWSIM is not set
6352c6420
< # CPTCFG_BACKPORTED_BPAUTO_LEDS_TRIGGERS is not set
---
> CPTCFG_BACKPORTED_BPAUTO_LEDS_TRIGGERS=y
6354c6422
< # CPTCFG_BACKPORTED_BPAUTO_WANT_DEV_COREDUMP is not set
---
> CPTCFG_BACKPORTED_BPAUTO_WANT_DEV_COREDUMP=y
6356,6357c6424,6425
< # CPTCFG_BACKPORTED_BPAUTO_RHASHTABLE is not set
< # CPTCFG_BACKPORTED_BPAUTO_BUCKET_LOCKS is not set
---
> CPTCFG_BACKPORTED_BPAUTO_RHASHTABLE=y
> CPTCFG_BACKPORTED_BPAUTO_BUCKET_LOCKS=y

6365c6433
< CPTCFG_BACKPORTED_NL80211_TESTMODE=y
---
> # CPTCFG_BACKPORTED_NL80211_TESTMODE is not set
6376c6444
< # CPTCFG_BACKPORTED_CFG80211_WEXT is not set
---
> CPTCFG_BACKPORTED_CFG80211_WEXT=y
6383,6386c6451,6454
< # CPTCFG_BACKPORTED_MAC80211 is not set
< # CPTCFG_BACKPORTED_MAC80211_HAS_RC is not set
< # CPTCFG_BACKPORTED_MAC80211_RC_MINSTREL is not set
< # CPTCFG_BACKPORTED_MAC80211_RC_DEFAULT_MINSTREL is not set
---
> CPTCFG_BACKPORTED_MAC80211=m
> CPTCFG_BACKPORTED_MAC80211_HAS_RC=y
> CPTCFG_BACKPORTED_MAC80211_RC_MINSTREL=y
> CPTCFG_BACKPORTED_MAC80211_RC_DEFAULT_MINSTREL=y

6388,6389c6456,6457
< # CPTCFG_BACKPORTED_MAC80211_MESH is not set
< # CPTCFG_BACKPORTED_MAC80211_LEDS is not set
---
> CPTCFG_BACKPORTED_MAC80211_MESH=y
> CPTCFG_BACKPORTED_MAC80211_LEDS=y

6419c6487
< # CPTCFG_BACKPORTED_ATH_COMMON is not set
---
> CPTCFG_BACKPORTED_ATH_COMMON=m
6468,6470c6536,6538
< # CPTCFG_BACKPORTED_ATH10K is not set
< # CPTCFG_BACKPORTED_ATH10K_CE is not set
< # CPTCFG_BACKPORTED_ATH10K_PCI is not set
---
> CPTCFG_BACKPORTED_ATH10K=m
> CPTCFG_BACKPORTED_ATH10K_CE=y
> CPTCFG_BACKPORTED_ATH10K_PCI=m

6472,6473c6540,6541
< # CPTCFG_BACKPORTED_ATH10K_SDIO is not set
< # CPTCFG_BACKPORTED_ATH10K_USB is not set
---
> CPTCFG_BACKPORTED_ATH10K_SDIO=m
> CPTCFG_BACKPORTED_ATH10K_USB=m

6475,6476c6543,6544
< # CPTCFG_BACKPORTED_ATH10K_DEBUG is not set
< # CPTCFG_BACKPORTED_ATH10K_DEBUGFS is not set
---
> CPTCFG_BACKPORTED_ATH10K_DEBUG=y
> CPTCFG_BACKPORTED_ATH10K_DEBUGFS=y

6651c6719
< # CPTCFG_BACKPORTED_RTL_CARDS is not set
---
> CPTCFG_BACKPORTED_RTL_CARDS=m
MAC80211とATH10KのCONFIGを強制的にONにしてビルドしてみた。しかしath10k、mac80211のビルドを試みるも、コンパイルエラー発生。気になる箇所をピンクで色付けしてみた。
(一旦ログアウト)
$ cd ~/backports/backports-5.2.8-1/
$ make clean
$ set -a
$ CROSS_COMPILE=/opt/poky/1.8.2/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-
$ ARCH=arm
$ KLIB_BUILD=/home/pavement1234/fido/core-image-sato/tmp/work/nitrogen6x-poky-linux-gnueabi/linux-boundary/3.14.28-r0/build
$ KLIB=/home/pavement1234/fido/core-image-sato/tmp/work/nitrogen6x-poky-linux-gnueabi/linux-boundary/3.14.28-r0/build
$ export CPTCFG_MAC80211=m
$ export CPTCFG_MAC80211_HAS_RC=y
$ export CPTCFG_MAC80211_RC_MINSTREL=y
$ export CPTCFG_MAC80211_RC_DEFAULT_MINSTREL=y
$ export CPTCFG_MAC80211_RC_DEFAULT="minstrel_ht"
$ export CPTCFG_MAC80211_MESH=y
$ export CPTCFG_MAC80211_LEDS=y
$ export CPTCFG_ATH10K=m
$ export CPTCFG_ATH10K_CE=y
$ export CPTCFG_ATH10K_PCI=m
$ export CPTCFG_ATH10K_SDIO=m
$ export CPTCFG_ATH10K_USB=m
$ export CPTCFG_ATH10K_DEBUG=y
$ export CPTCFG_ATH10K_DEBUGFS=y
$ set +a
$ make
KERNELRELEASE=
MAKEFLAGS= --no-print-directory
SHELL= /bin/bash
BACKPORT_DIR= /home/pavement1234/backports/backports-5.2.8-1
KMODDIR= updates
KLIB= /home/pavement1234/fido/core-image-sato/tmp/work/nitrogen6x-poky-linux-gnueabi/linux-boundary/3.14.28-r0/build
KLIB_BUILD= /home/pavement1234/fido/core-image-sato/tmp/work/nitrogen6x-poky-linux-gnueabi/linux-boundary/3.14.28-r0/build
KMODPATH_ARG= INSTALL_MOD_PATH=/home/pavement1234/fido/core-image-sato/tmp/work/nitrogen6x-poky-linux-gnueabi/linux-boundary/3.14.28-r0/build
KERNEL_CONFIG= /home/pavement1234/fido/core-image-sato/tmp/work/nitrogen6x-poky-linux-gnueabi/linux-boundary/3.14.28-r0/build/.config
KERNEL_MAKEFILE= /home/pavement1234/fido/core-image-sato/tmp/work/nitrogen6x-poky-linux-gnueabi/linux-boundary/3.14.28-r0/build/Makefile
CONFIG_MD5= f706b202afd342e26ebdbc13615bc255
Generating local configuration database from kernel ... done.
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer   -c -o conf.o conf.c
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer   -c -o zconf.tab.o zconf.tab.c
cc   conf.o zconf.tab.o   -o conf
boolean symbol BT tested for 'm'? test forced to 'n'
.config:729:warning: symbol value 'm' invalid for BINFMT_MISC
.config:762:warning: symbol value 'm' invalid for NET_IP_TUNNEL
.config:777:warning: symbol value 'm' invalid for INET_TUNNEL
.config:782:warning: symbol value 'm' invalid for INET_DIAG
.config:783:warning: symbol value 'm' invalid for INET_TCP_DIAG
.config:812:warning: symbol value 'm' invalid for INET6_XFRM_MODE_TRANSPORT
.config:813:warning: symbol value 'm' invalid for INET6_XFRM_MODE_TUNNEL
.config:814:warning: symbol value 'm' invalid for INET6_XFRM_MODE_BEET
.config:817:warning: symbol value 'm' invalid for IPV6_SIT
.config:1142:warning: symbol value 'm' invalid for VLAN_8021Q
.config:1146:warning: symbol value 'm' invalid for LLC
.config:1147:warning: symbol value 'm' invalid for LLC2
.config:1276:warning: symbol value 'm' invalid for CAN
.config:1277:warning: symbol value 'm' invalid for CAN_RAW
.config:1278:warning: symbol value 'm' invalid for CAN_BCM
.config:1279:warning: symbol value 'm' invalid for CAN_GW
.config:1282:warning: symbol value 'm' invalid for CAN_DEV
.config:1299:warning: symbol value 'm' invalid for CAN_M_CAN
.config:1343:warning: symbol value 'm' invalid for BT
.config:1345:warning: symbol value 'm' invalid for BT_RFCOMM
.config:1347:warning: symbol value 'm' invalid for BT_BNEP
.config:1400:warning: symbol value 'm' invalid for RFKILL_GPIO
.config:1467:warning: symbol value 'm' invalid for MTD
.config:1469:warning: symbol value 'm' invalid for MTD_CMDLINE_PARTS
.config:1471:warning: symbol value 'm' invalid for MTD_BLKDEVS
.config:1472:warning: symbol value 'm' invalid for MTD_BLOCK
.config:1483:warning: symbol value 'm' invalid for MTD_CFI
.config:1484:warning: symbol value 'm' invalid for MTD_JEDECPROBE
.config:1485:warning: symbol value 'm' invalid for MTD_GEN_PROBE
.config:1493:warning: symbol value 'm' invalid for MTD_CFI_STAA
.config:1494:warning: symbol value 'm' invalid for MTD_CFI_UTIL
.config:1517:warning: symbol value 'm' invalid for MTD_M25P80
.config:1518:warning: symbol value 'm' invalid for MTD_SST25L
.config:1547:warning: symbol value 'm' invalid for MTD_SPI_NOR
.config:1645:warning: symbol value 'm' invalid for EEPROM_AT24
.config:1646:warning: symbol value 'm' invalid for EEPROM_AT25
.config:1788:warning: symbol value 'm' invalid for SATA_AHCI
.config:1789:warning: symbol value 'm' invalid for SATA_AHCI_PLATFORM
.config:2202:warning: symbol value 'm' invalid for AT803X_PHY
.config:2221:warning: symbol value 'm' invalid for MICREL_PHY
.config:2376:warning: symbol value 'm' invalid for INPUT_POLLDEV
.config:2392:warning: symbol value 'm' invalid for KEYBOARD_GPIO
.config:2498:warning: symbol value 'm' invalid for TOUCHSCREEN_ILI210X
.config:2546:warning: symbol value 'm' invalid for TOUCHSCREEN_TSC2004
.config:2616:warning: symbol value 'm' invalid for SERIO_SERPORT
.config:2690:warning: symbol value 'm' invalid for SERIAL_FSL_LPUART
.config:2746:warning: symbol value 'm' invalid for I2C_MUX
.config:2747:warning: symbol value 'm' invalid for I2C_MUX_GPIO
.config:2754:warning: symbol value 'm' invalid for I2C_ALGOBIT
.config:2799:warning: symbol value 'm' invalid for SPI_BITBANG
.config:2816:warning: symbol value 'm' invalid for SPI_SPIDEV
.config:2822:warning: symbol value 'm' invalid for PPS
.config:2826:warning: symbol value 'm' invalid for PTP_1588_CLOCK
.config:2843:warning: symbol value 'm' invalid for GPIO_GENERIC
.config:3302:warning: symbol value 'm' invalid for REGULATOR_FIXED_VOLTAGE
.config:3309:warning: symbol value 'm' invalid for REGULATOR_ANATOP
.config:3379:warning: symbol value 'm' invalid for MEDIA_SUPPORT
.config:3387:warning: symbol value 'm' invalid for VIDEO_DEV
.config:3389:warning: symbol value 'm' invalid for VIDEO_V4L2
.config:3393:warning: symbol value 'm' invalid for VIDEOBUF_GEN
.config:3397:warning: symbol value 'm' invalid for VIDEOBUF2_CORE
.config:3635:warning: symbol value 'm' invalid for SOC_CAMERA
.config:3738:warning: symbol value 'm' invalid for MEDIA_TUNER
.config:3739:warning: symbol value 'm' invalid for MEDIA_TUNER_SIMPLE
.config:3740:warning: symbol value 'm' invalid for MEDIA_TUNER_TDA8290
.config:3741:warning: symbol value 'm' invalid for MEDIA_TUNER_TDA827X
.config:3742:warning: symbol value 'm' invalid for MEDIA_TUNER_TDA18271
.config:3743:warning: symbol value 'm' invalid for MEDIA_TUNER_TDA9887
.config:3744:warning: symbol value 'm' invalid for MEDIA_TUNER_TEA5761
.config:3745:warning: symbol value 'm' invalid for MEDIA_TUNER_TEA5767
.config:3747:warning: symbol value 'm' invalid for MEDIA_TUNER_MT20XX
.config:3753:warning: symbol value 'm' invalid for MEDIA_TUNER_XC2028
.config:3754:warning: symbol value 'm' invalid for MEDIA_TUNER_XC5000
.config:3755:warning: symbol value 'm' invalid for MEDIA_TUNER_XC4000
.config:3758:warning: symbol value 'm' invalid for MEDIA_TUNER_MC44S803
.config:3883:warning: symbol value 'm' invalid for DRM
.config:4018:warning: symbol value 'm' invalid for LCD_CLASS_DEVICE
.config:4019:warning: symbol value 'm' invalid for LCD_L4F00242T03
.config:4026:warning: symbol value 'm' invalid for LCD_PLATFORM
.config:4033:warning: symbol value 'm' invalid for BACKLIGHT_GENERIC
.config:4036:warning: symbol value 'm' invalid for BACKLIGHT_PWM
.config:4068:warning: symbol value 'm' invalid for SOUND
.config:4070:warning: symbol value 'm' invalid for SND
.config:4071:warning: symbol value 'm' invalid for SND_TIMER
.config:4072:warning: symbol value 'm' invalid for SND_PCM
.config:4073:warning: symbol value 'm' invalid for SND_DMAENGINE_PCM
.config:4076:warning: symbol value 'm' invalid for SND_COMPRESS_OFFLOAD
.config:4235:warning: symbol value 'm' invalid for SND_SOC
.config:4243:warning: symbol value 'm' invalid for SND_SOC_FSL_SAI
.config:4244:warning: symbol value 'm' invalid for SND_SOC_FSL_SSI
.config:4247:warning: symbol value 'm' invalid for SND_SOC_IMX_AUDMUX
.config:4267:warning: symbol value 'm' invalid for SND_SOC_I2C_AND_SPI
.config:4306:warning: symbol value 'm' invalid for SND_SOC_SGTL5000
.config:4350:warning: symbol value 'm' invalid for HID
.config:4354:warning: symbol value 'm' invalid for HID_GENERIC
.config:4442:warning: symbol value 'm' invalid for USB_HID
.config:4485:warning: symbol value 'm' invalid for USB_STORAGE
.config:4516:warning: symbol value 'm' invalid for USB_CHIPIDEA
.config:4525:warning: symbol value 'm' invalid for USB_SERIAL
.config:4534:warning: symbol value 'm' invalid for USB_SERIAL_CP210X
.config:4537:warning: symbol value 'm' invalid for USB_SERIAL_FTDI_SIO
.config:4548:warning: symbol value 'm' invalid for USB_SERIAL_KEYSPAN
.config:4570:warning: symbol value 'm' invalid for USB_SERIAL_PL2303
.config:4573:warning: symbol value 'm' invalid for USB_SERIAL_QUALCOMM
.config:4580:warning: symbol value 'm' invalid for USB_SERIAL_WWAN
.config:4610:warning: symbol value 'm' invalid for USB_EZUSB_FX2
.config:4625:warning: symbol value 'm' invalid for USB_GADGET
.config:4710:warning: symbol value 'm' invalid for MMC_BLOCK
.config:4713:warning: symbol value 'm' invalid for MMC_SDHCI
.config:4717:warning: symbol value 'm' invalid for MMC_SDHCI_PLTFM
.config:4748:warning: symbol value 'm' invalid for LEDS_GPIO
.config:4785:warning: symbol value 'm' invalid for LEDS_TRIGGER_GPIO
.config:4852:warning: symbol value 'm' invalid for RTC_DRV_ISL1208
.config:5385:warning: symbol value 'm' invalid for IIO
.config:5686:warning: symbol value 'm' invalid for AUTOFS4_FS
.config:5700:warning: symbol value 'm' invalid for MSDOS_FS
.config:5716:warning: symbol value 'm' invalid for CONFIGFS_FS
.config:5744:warning: symbol value 'm' invalid for SQUASHFS
.config:5773:warning: symbol value 'm' invalid for NFS_FS
.config:5774:warning: symbol value 'm' invalid for NFS_V2
.config:5775:warning: symbol value 'm' invalid for NFS_V3
.config:5777:warning: symbol value 'm' invalid for NFS_V4
.config:5798:warning: symbol value 'm' invalid for LOCKD
.config:5800:warning: symbol value 'm' invalid for NFS_ACL_SUPPORT
.config:5802:warning: symbol value 'm' invalid for SUNRPC
.config:5803:warning: symbol value 'm' invalid for SUNRPC_GSS
.config:5863:warning: symbol value 'm' invalid for NLS_ASCII
.config:5864:warning: symbol value 'm' invalid for NLS_ISO8859_1
.config:5874:warning: symbol value 'm' invalid for NLS_ISO8859_15
.config:5888:warning: symbol value 'm' invalid for NLS_UTF8
.config:6041:warning: symbol value 'm' invalid for CRYPTO_AEAD
.config:6057:warning: symbol value 'm' invalid for CRYPTO_USER
.config:6059:warning: symbol value 'm' invalid for CRYPTO_GF128MUL
.config:6060:warning: symbol value 'm' invalid for CRYPTO_NULL
.config:6066:warning: symbol value 'm' invalid for CRYPTO_AUTHENC
.config:6070:warning: symbol value 'm' invalid for CRYPTO_CCM
.config:6071:warning: symbol value 'm' invalid for CRYPTO_GCM
.config:6073:warning: symbol value 'm' invalid for CRYPTO_SEQIV
.config:6076:warning: symbol value 'm' invalid for CRYPTO_CTR
.config:6077:warning: symbol value 'm' invalid for CRYPTO_CTS
.config:6079:warning: symbol value 'm' invalid for CRYPTO_LRW
.config:6081:warning: symbol value 'm' invalid for CRYPTO_XTS
.config:6093:warning: symbol value 'm' invalid for CRYPTO_GHASH
.config:6096:warning: symbol value 'm' invalid for CRYPTO_MD4
.config:6098:warning: symbol value 'm' invalid for CRYPTO_MICHAEL_MIC
.config:6099:warning: symbol value 'm' invalid for CRYPTO_RMD128
.config:6100:warning: symbol value 'm' invalid for CRYPTO_RMD160
.config:6101:warning: symbol value 'm' invalid for CRYPTO_RMD256
.config:6102:warning: symbol value 'm' invalid for CRYPTO_RMD320
.config:6110:warning: symbol value 'm' invalid for CRYPTO_TGR192
.config:6111:warning: symbol value 'm' invalid for CRYPTO_WP512
.config:6117:warning: symbol value 'm' invalid for CRYPTO_ARC4
.config:6118:warning: symbol value 'm' invalid for CRYPTO_BLOWFISH
.config:6119:warning: symbol value 'm' invalid for CRYPTO_BLOWFISH_COMMON
.config:6121:warning: symbol value 'm' invalid for CRYPTO_CAMELLIA
.config:6130:warning: symbol value 'm' invalid for CRYPTO_DES
.config:6144:warning: symbol value 'm' invalid for CRYPTO_TWOFISH
.config:6145:warning: symbol value 'm' invalid for CRYPTO_TWOFISH_COMMON
.config:6219:warning: symbol value 'm' invalid for CRC_CCITT
.config:6222:warning: symbol value 'm' invalid for CRC_ITU_T
.config:6225:warning: symbol value 'm' invalid for CRC7
.config:6226:warning: symbol value 'm' invalid for LIBCRC32C

#
# configuration written to .config
#
Building backport-include/backport/autoconf.h ... done.
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/main.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/backport-3.15.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/backport-3.17.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/backport-3.18.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/backport-3.19.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/backport-4.0.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/backport-4.1.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/backport-4.2.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/backport-4.3.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/backport-4.4.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/backport-4.5.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/backport-4.6.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/backport-4.7.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/backport-4.8.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/backport-4.10.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/backport-4.18.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/backport-5.2.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/backport-genetlink.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/verification/verify.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/verification/pkcs7.asn1.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/verification/pkcs7_verify.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/verification/pkcs7_parser.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/verification/x509.asn1.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/verification/x509_akid.asn1.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/verification/x509_cert_parser.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/verification/x509_public_key.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/verification/pkcs7_trust.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/verification/key.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/verification/public_key.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/verification/rsa.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/verification/bignum.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/verification/md.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/verification/md_wrap.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/verification/sha256.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/verification/oid.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/verification/asn1parse.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/verification/rsapubkey.asn1.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/lib-asn1_decoder.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/lib-oid_registry.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/lib-refcount.o
  LD [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/compat.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.o
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8395:61: warning: 'union acpi_object' declared inside parameter list
 static u32 ath10k_mac_wrdd_get_mcc(struct ath10k *ar, union acpi_object *wrdd)
                                                             ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8395:61: warning: its scope is only this definition or declaration, which is probably not what you want
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c: In function 'ath10k_mac_wrdd_get_mcc':
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8402:10: error: dereferencing pointer to incomplete type
  if (wrdd->type != ACPI_TYPE_PACKAGE ||
          ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8402:20: error: 'ACPI_TYPE_PACKAGE' undeclared (first use in this function)
  if (wrdd->type != ACPI_TYPE_PACKAGE ||
                    ^

/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8402:20: note: each undeclared identifier is reported only once for each function it appears in
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8403:10: error: dereferencing pointer to incomplete type
      wrdd->package.count < 2 ||
          ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8404:10: error: dereferencing pointer to incomplete type
      wrdd->package.elements[0].type != ACPI_TYPE_INTEGER ||
          ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8404:40: error: 'ACPI_TYPE_INTEGER' undeclared (first use in this function)
      wrdd->package.elements[0].type != ACPI_TYPE_INTEGER ||
                                        ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8405:10: error: dereferencing pointer to incomplete type
      wrdd->package.elements[0].integer.value != 0) {
          ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8410:22: error: dereferencing pointer to incomplete type
  for (i = 1; i < wrdd->package.count; ++i) {
                      ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8411:18: error: dereferencing pointer to incomplete type
   mcc_pkg = &wrdd->package.elements[i];
                  ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8413:14: error: dereferencing pointer to incomplete type
   if (mcc_pkg->type != ACPI_TYPE_PACKAGE)
              ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8415:14: error: dereferencing pointer to incomplete type
   if (mcc_pkg->package.count < 2)
              ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8417:14: error: dereferencing pointer to incomplete type
   if (mcc_pkg->package.elements[0].type != ACPI_TYPE_INTEGER ||
              ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8418:14: error: dereferencing pointer to incomplete type
       mcc_pkg->package.elements[1].type != ACPI_TYPE_INTEGER)
              ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8421:25: error: dereferencing pointer to incomplete type
   domain_type = &mcc_pkg->package.elements[0];
                         ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8422:18: error: dereferencing pointer to incomplete type
   if (domain_type->integer.value != WRDD_WIFI)
                  ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8425:23: error: dereferencing pointer to incomplete type
   mcc_value = &mcc_pkg->package.elements[1];
                       ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8426:19: error: dereferencing pointer to incomplete type
   return mcc_value->integer.value;
                   ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c: In function 'ath10k_mac_get_wrdd_regulatory':
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8433:2: error: unknown type name 'acpi_handle'
  acpi_handle root_handle;
  ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8434:2: error: unknown type name 'acpi_handle'
  acpi_handle handle;
  ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8435:9: error: variable 'wrdd' has initializer but incomplete type
  struct acpi_buffer wrdd = {ACPI_ALLOCATE_BUFFER, NULL};
         ^

/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8435:29: error: 'ACPI_ALLOCATE_BUFFER' undeclared (first use in this function)
  struct acpi_buffer wrdd = {ACPI_ALLOCATE_BUFFER, NULL};
                             ^

/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8435:9: warning: excess elements in struct initializer
  struct acpi_buffer wrdd = {ACPI_ALLOCATE_BUFFER, NULL};
         ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8435:9: warning: (near initialization for 'wrdd')
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8435:9: warning: excess elements in struct initializer
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8435:9: warning: (near initialization for 'wrdd')
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8435:21: error: storage size of 'wrdd' isn't known
  struct acpi_buffer wrdd = {ACPI_ALLOCATE_BUFFER, NULL};
                     ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8436:2: error: unknown type name 'acpi_status'
  acpi_status status;
  ^

/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8440:14: warning: assignment makes integer from pointer without a cast
  root_handle = ACPI_HANDLE(ar->dev);
              ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8444:2: error: implicit declaration of function 'acpi_get_handle' [-Werror=implicit-function-declaration]
  status = acpi_get_handle(root_handle, (acpi_string)WRD_METHOD, &handle);
  ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8444:41: error: 'acpi_string' undeclared (first use in this function)
  status = acpi_get_handle(root_handle, (acpi_string)WRD_METHOD, &handle);
                                         ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8392:20: error: expected ')' before string constant
 #define WRD_METHOD "WRDD"
                    ^

/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8444:53: note: in expansion of macro 'WRD_METHOD'
  status = acpi_get_handle(root_handle, (acpi_string)WRD_METHOD, &handle);
                                                     ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8445:2: error: implicit declaration of function 'ACPI_FAILURE' [-Werror=implicit-function-declaration]
  if (ACPI_FAILURE(status)) {
  ^

/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8451:2: error: implicit declaration of function 'acpi_evaluate_object' [-Werror=implicit-function-declaration]
  status = acpi_evaluate_object(handle, NULL, NULL, &wrdd);

  ^
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8435:21: warning: unused variable 'wrdd' [-Wunused-variable]
  struct acpi_buffer wrdd = {ACPI_ALLOCATE_BUFFER, NULL};
                     ^
cc1: some warnings being treated as errors
/home/pavement1234/fido/core-image-sato/tmp/work-shared/nitrogen6x/kernel-source/scripts/Makefile.build:308: ターゲット '/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.o' のレシピで失敗しました
make[10]: *** [/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.o] エラー 1
/home/pavement1234/fido/core-image-sato/tmp/work-shared/nitrogen6x/kernel-source/scripts/Makefile.build:455: ターゲット '/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k' のレシピで失敗しました
make[9]: *** [/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k] エラー 2
/home/pavement1234/fido/core-image-sato/tmp/work-shared/nitrogen6x/kernel-source/scripts/Makefile.build:455: ターゲット '/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath' のレシピで失敗しました
make[8]: *** [/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath] エラー 2
/home/pavement1234/fido/core-image-sato/tmp/work-shared/nitrogen6x/kernel-source/scripts/Makefile.build:455: ターゲット '/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless' のレシピで失敗しました
make[7]: *** [/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless] エラー 2
/home/pavement1234/fido/core-image-sato/tmp/work-shared/nitrogen6x/kernel-source/Makefile:1276: ターゲット '_module_/home/pavement1234/backports/backports-5.2.8-1' のレシピで失敗しました
make[6]: *** [_module_/home/pavement1234/backports/backports-5.2.8-1] エラー 2
Makefile:133: ターゲット 'sub-make' のレシピで失敗しました
make[5]: *** [sub-make] エラー 2
Makefile:26: ターゲット 'all' のレシピで失敗しました
make[4]: *** [all] エラー 2
Makefile.build:6: ターゲット 'modules' のレシピで失敗しました
make[3]: *** [modules] エラー 2
Makefile.real:88: ターゲット 'modules' のレシピで失敗しました
make[2]: *** [modules] エラー 2
Makefile:50: ターゲット 'modules' のレシピで失敗しました
make[1]: *** [modules] エラー 2
Makefile:29: ターゲット 'default' のレシピで失敗しました
make: *** [default] エラー 2

怪しい箇所を抜粋。①②から.configの整合性が取れていない雰囲気が感じられ、③④で明確にビルドエラーが発生している。まぁエラーが出たほうがヒントが得られるのでありがたい。
①クロスコンパイル時に前から出てるワーニング
boolean symbol BT tested for 'm'? test forced to 'n'
②MAC80211とATH10Kを強制的に有効化したことにより出てきた.configのワーニング
.config:729:warning: symbol value 'm' invalid for BINFMT_MISC
③/drivers/net/wireless/ath/ath10k/mac.cがコンパイルエラー
/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.c:8402:10: error: dereferencing pointer to incomplete type
  if (wrdd->type != ACPI_TYPE_PACKAGE ||
          ^
 ④KLIB、KLIB_BUILDで指定していない箇所のMakefileが参照されている。       
/home/pavement1234/fido/core-image-sato/tmp/work-shared/nitrogen6x/kernel-source/scripts/Makefile.build:308: ターゲット '/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.o' のレシピで失敗しました
make[10]: *** [/home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.o] エラー 1
続く
IMG_20180812_150344




スポンサードリンク