前回、backportsのPCビルドはうまくいったが、BD-SABRE-LITEのカーネル3.14ビルドに失敗。KLIB、KLIB_BUILDという環境変数の設定が失敗してる感じ。

【関連記事】
【組込ボードで無線LAN】②(無線LANカードN-6300を組込ボードに接続するには?)
【組込ボードで無線LAN】⑧(iwのビルド:後編-1)【組込ボードで無線LAN】⑰(QCA9377-5を挿してみた)
【組込ボードで無線LAN】㉓(backportをビルドしてみる‐2)
  • KLIB、KLIB_BUILDとは何か調べる。試行錯誤。
backports移植rtlwifi驅動を読んだ。しかしKLIB、KLIB_BUILDについていまいち理解できない。

その一方で、backports移植rtlwifi驅動に張ってあったath10k backports releasesというリンク先を読んだところbackportsでath10kドライバをビルドするには最初にmake defconfig-ath10kと打つ必要があるようだ

前回PCビルドしたときにath10kが無いのが若干気になってたが、試してみたらath10kがビルドされるようになった。クロスコンパイル時もこれが必要になるだろう。
$ make defconfig-ath10k
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
#
# 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-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
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/lib-rhashtable.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/lib-bucket_locks.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/main.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/regd.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/hw.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/key.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/dfs_pattern_detector.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/dfs_pri_detector.o
  LD [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/mac.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/debug.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/core.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/htc.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/htt.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/htt_rx.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/htt_tx.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/txrx.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/wmi.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/wmi-tlv.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/bmi.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/hw.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/p2p.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/swap.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/thermal.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/wow.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/coredump.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/ce.o
  LD [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/ath10k_core.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/pci.o
  LD [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/ath10k_pci.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/sdio.o
  LD [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/ath10k_sdio.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/usb.o
  LD [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/ath10k_usb.o

  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/main.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/status.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/driver-ops.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/sta_info.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/wep.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/aead_api.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/wpa.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/scan.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/offchannel.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/ht.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/agg-tx.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/agg-rx.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/vht.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/he.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/ibss.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/iface.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/rate.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/michael.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/tkip.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/aes_cmac.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/aes_gmac.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/fils_aead.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/cfg.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/ethtool.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/rx.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/spectmgmt.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/tx.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/key.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/util.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/wme.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/chan.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/trace.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/mlme.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/tdls.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/ocb.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/led.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/mesh.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/mesh_pathtbl.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/mesh_plink.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/mesh_hwmp.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/mesh_sync.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/mesh_ps.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/pm.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/rc80211_minstrel.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/rc80211_minstrel_ht.o
  LD [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/mac80211.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/wireless/core.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/wireless/sysfs.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/wireless/radiotap.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/wireless/util.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/wireless/reg.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/wireless/scan.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/wireless/nl80211.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/wireless/mlme.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/wireless/ibss.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/wireless/sme.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/wireless/chan.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/wireless/ethtool.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/wireless/mesh.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/wireless/ap.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/wireless/trace.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/wireless/ocb.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/wireless/pmsr.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/wireless/wext-compat.o
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/wireless/wext-sme.o
  GEN     /home/pavement1234/backports/backports-5.2.8-1/net/wireless/shipped-certs.c
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/net/wireless/shipped-certs.o
  LD [M]  /home/pavement1234/backports/backports-5.2.8-1/net/wireless/cfg80211.o
  Building modules, stage 2.
  MODPOST 8 modules
  CC      /home/pavement1234/backports/backports-5.2.8-1/compat/compat.mod.o
  LD [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/compat.ko
  CC      /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath.mod.o
  LD [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath.ko
  CC      /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/ath10k_core.mod.o
  LD [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/ath10k_core.ko
  CC      /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/ath10k_pci.mod.o
  LD [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/ath10k_pci.ko
  CC      /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/ath10k_sdio.mod.o
  LD [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/ath10k_sdio.ko
  CC      /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/ath10k_usb.mod.o
  LD [M]  /home/pavement1234/backports/backports-5.2.8-1/drivers/net/wireless/ath/ath10k/ath10k_usb.ko
  CC      /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/mac80211.mod.o
  LD [M]  /home/pavement1234/backports/backports-5.2.8-1/net/mac80211/mac80211.ko
  CC      /home/pavement1234/backports/backports-5.2.8-1/net/wireless/cfg80211.mod.o
  LD [M]  /home/pavement1234/backports/backports-5.2.8-1/net/wireless/cfg80211.ko
ath10kがビルドされない問題がたまたま解決したが、問題のKLIB、KLIB_BUILDは未解決。初心に帰り、backportsのWEBサイトの通りにやってみるか...。
(一旦ログアウト)
$ 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-
$ ARCH=arm
$ KLIB_BUILD=/opt/poky/1.8.2/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi
$ KLIB=/opt/poky/1.8.2/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi
$ set +a
$ make defconfig-ath10k
/--------------
| Your kernel headers are incomplete/not installed.
| Please install kernel headers, including a .config
| file or use the KLIB/KLIB_BUILD make variables to
| set the kernel to build against, e.g.
|   make KLIB=/lib/modules/3.1.7/
| to compile/install for the installed kernel 3.1.7
| (that isn't currently running.)
\--
Makefile:40: ターゲット 'defconfig-ath10k' のレシピで失敗しました
make: *** [defconfig-ath10k] エラー 1
makeに--debugを指定するとデバッグできるみたい。上の状態から続けてやってみたが有用な情報が得られていない。
$ make --debug defconfig-ath10k
GNU Make 4.1
このプログラムは x86_64-pc-linux-gnu 用にビルドされました
Copyright (C) 1988-2014 Free Software Foundation, Inc.
ライセンス GPLv3+: GNU GPL バージョン 3 以降 <http://gnu.org/licenses/gpl.html>
これはフリーソフトウェアです: 自由に変更および配布できます.
法律の許す限り、 無保証 です.
makefile を読み込みます...
最終ターゲットを更新中....
 ファイル 'defconfig-ath10k' が存在しません.
ターゲット 'defconfig-ath10k' を再make する必要があります.
/--------------
| Your kernel headers are incomplete/not installed.
| Please install kernel headers, including a .config
| file or use the KLIB/KLIB_BUILD make variables to
| set the kernel to build against, e.g.
|   make KLIB=/lib/modules/3.1.7/
| to compile/install for the installed kernel 3.1.7
| (that isn't currently running.)
\--
Makefile:40: ターゲット 'defconfig-ath10k' のレシピで失敗しました
make: *** [defconfig-ath10k] エラー 1
デバッグ情報を見るためにYocto環境変数だけ設定してビルドを試みたが大した情報は得られなかった。しかしKLIB、KLIB_BUILDより1歩先に進んでる気もする。

confがARM向けにビルドされちゃうのがダメなら、confまではPCビルドすればよい?
(一旦ログアウト)
$ cd ~/backports/backports-5.2.8-1/
$ . /opt/poky/1.8.2/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
$ make defconfig-ath10k
GNU Make 4.1
このプログラムは x86_64-pc-linux-gnu 用にビルドされました
Copyright (C) 1988-2014 Free Software Foundation, Inc.
ライセンス GPLv3+: GNU GPL バージョン 3 以降 <http://gnu.org/licenses/gpl.html>
これはフリーソフトウェアです: 自由に変更および配布できます.
法律の許す限り、 無保証 です.
makefile を読み込みます...
最終ターゲットを更新中....
 ファイル 'defconfig-ath10k' が存在しません.
ターゲット 'defconfig-ath10k' を再make する必要があります.
GNU Make 4.1
このプログラムは x86_64-pc-linux-gnu 用にビルドされました
Copyright (C) 1988-2014 Free Software Foundation, Inc.
ライセンス GPLv3+: GNU GPL バージョン 3 以降 <http://gnu.org/licenses/gpl.html>
これはフリーソフトウェアです: 自由に変更および配布できます.
法律の許す限り、 無保証 です.
makefile を読み込みます...
最終ターゲットを更新中....
 ファイル 'defconfig-ath10k' が存在しません.
ターゲット 'defconfig-ath10k' を再make する必要があります.
GNU Make 4.1
このプログラムは x86_64-pc-linux-gnu 用にビルドされました
Copyright (C) 1988-2014 Free Software Foundation, Inc.
ライセンス GPLv3+: GNU GPL バージョン 3 以降 <http://gnu.org/licenses/gpl.html>
これはフリーソフトウェアです: 自由に変更および配布できます.
法律の許す限り、 無保証 です.
makefile を読み込みます...
最終ターゲットを更新中....
make[2]: 'conf' は更新済みです.
./kconf/conf: 1: ./kconf/conf: Syntax error: word unexpected (expecting ")")
Makefile.real:41: ターゲット 'defconfig-ath10k' のレシピで失敗しました
make[1]: *** [defconfig-ath10k] エラー 2
Makefile:40: ターゲット 'defconfig-ath10k' のレシピで失敗しました
make: *** [defconfig-ath10k] エラー 2
というわけで、途中までPCビルド、最後のmakeだけYoctoビルドってパターンをやってみた。進展したかのように見えたが失敗。
(一旦ログアウト)
$ cd ~/backports/backports-5.2.8-1/
$ make defconfig-ath10k
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
#
# configuration written to .config
#
$ make oldconfig
make[2]: 'conf' は更新済みです.
#
# configuration written to .config
#
$ . /opt/poky/1.8.2/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
$ make
make[5]: 'conf' は更新済みです.
#
# configuration written to .config
#
Building backport-include/backport/autoconf.h ... done.
  CC [M]  /home/pavement1234/backports/backports-5.2.8-1/compat/main.o
In file included from include/linux/irqflags.h:15:0,
                 from ./arch/arm/include/asm/bitops.h:27,
                 from include/linux/bitops.h:36,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/bitops.h:3,
                 from include/linux/kernel.h:10,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/kernel.h:3,
                 from include/linux/list.h:8,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/list.h:3,
                 from include/linux/module.h:9,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/module.h:3,
                 from /home/pavement1234/backports/backports-5.2.8-1/compat/main.c:1:
./arch/arm/include/asm/irqflags.h:21:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
 #if __LINUX_ARM_ARCH__ >= 6
     ^
In file included from /home/pavement1234/backports/backports-5.2.8-1/backport-include/asm/barrier.h:7:0,
                 from ./arch/arm/include/asm/bitops.h:28,
                 from include/linux/bitops.h:36,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/bitops.h:3,
                 from include/linux/kernel.h:10,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/kernel.h:3,
                 from include/linux/list.h:8,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/list.h:3,
                 from include/linux/module.h:9,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/module.h:3,
                 from /home/pavement1234/backports/backports-5.2.8-1/compat/main.c:1:
./arch/arm/include/asm/barrier.h:8:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
 #if __LINUX_ARM_ARCH__ >= 7 ||  \
     ^
./arch/arm/include/asm/barrier.h:9:3: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
  (__LINUX_ARM_ARCH__ == 6 && defined(CONFIG_CPU_32v6K))
   ^
./arch/arm/include/asm/barrier.h:15:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
 #if __LINUX_ARM_ARCH__ >= 7
     ^
./arch/arm/include/asm/barrier.h:19:35: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
 #elif defined(CONFIG_CPU_XSC3) || __LINUX_ARM_ARCH__ == 6
                                   ^
In file included from include/linux/bitops.h:36:0,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/bitops.h:3,
                 from include/linux/kernel.h:10,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/kernel.h:3,
                 from include/linux/list.h:8,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/list.h:3,
                 from include/linux/module.h:9,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/module.h:3,
                 from /home/pavement1234/backports/backports-5.2.8-1/compat/main.c:1:
./arch/arm/include/asm/bitops.h:215:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
 #if __LINUX_ARM_ARCH__ < 5
     ^
In file included from ./arch/arm/include/asm/bitops.h:218:0,
                 from include/linux/bitops.h:36,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/bitops.h:3,
                 from include/linux/kernel.h:10,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/kernel.h:3,
                 from include/linux/list.h:8,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/list.h:3,
                 from include/linux/module.h:9,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/module.h:3,
                 from /home/pavement1234/backports/backports-5.2.8-1/compat/main.c:1:
include/asm-generic/bitops/__fls.h: In function '__fls':
include/asm-generic/bitops/__fls.h:17:2: warning: left shift count >= width of type
  if (!(word & (~0ul << 32))) {
  ^
include/asm-generic/bitops/__fls.h:19:3: warning: left shift count >= width of type
   word <<= 32;
   ^
include/asm-generic/bitops/__fls.h:22:2: warning: left shift count >= width of type
  if (!(word & (~0ul << (BITS_PER_LONG-16)))) {
  ^
include/asm-generic/bitops/__fls.h:26:2: warning: left shift count >= width of type
  if (!(word & (~0ul << (BITS_PER_LONG-8)))) {
  ^
include/asm-generic/bitops/__fls.h:30:2: warning: left shift count >= width of type
  if (!(word & (~0ul << (BITS_PER_LONG-4)))) {
  ^
include/asm-generic/bitops/__fls.h:34:2: warning: left shift count >= width of type
  if (!(word & (~0ul << (BITS_PER_LONG-2)))) {
  ^
include/asm-generic/bitops/__fls.h:38:2: warning: left shift count >= width of type
  if (!(word & (~0ul << (BITS_PER_LONG-1))))
  ^
In file included from ./arch/arm/include/asm/bitops.h:219:0,
                 from include/linux/bitops.h:36,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/bitops.h:3,
                 from include/linux/kernel.h:10,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/kernel.h:3,
                 from include/linux/list.h:8,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/list.h:3,
                 from include/linux/module.h:9,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/module.h:3,
                 from /home/pavement1234/backports/backports-5.2.8-1/compat/main.c:1:
include/asm-generic/bitops/__ffs.h: In function '__ffs':
include/asm-generic/bitops/__ffs.h:19:3: warning: right shift count >= width of type
   word >>= 32;
   ^
In file included from ./arch/arm/include/asm/swab.h:18:0,
                 from include/uapi/linux/swab.h:6,
                 from include/linux/swab.h:4,
                 from include/uapi/linux/byteorder/little_endian.h:12,
                 from include/linux/byteorder/little_endian.h:4,
                 from ./arch/arm/include/uapi/asm/byteorder.h:21,
                 from include/asm-generic/bitops/le.h:5,
                 from ./arch/arm/include/asm/bitops.h:340,
                 from include/linux/bitops.h:36,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/bitops.h:3,
                 from include/linux/kernel.h:10,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/kernel.h:3,
                 from include/linux/list.h:8,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/list.h:3,
                 from include/linux/module.h:9,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/module.h:3,
                 from /home/pavement1234/backports/backports-5.2.8-1/compat/main.c:1:
./arch/arm/include/uapi/asm/swab.h: At top level:
./arch/arm/include/uapi/asm/swab.h:26:29: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
 #if !defined(__KERNEL__) || __LINUX_ARM_ARCH__ < 6
                             ^
In file included from include/uapi/linux/swab.h:6:0,
                 from include/linux/swab.h:4,
                 from include/uapi/linux/byteorder/little_endian.h:12,
                 from include/linux/byteorder/little_endian.h:4,
                 from ./arch/arm/include/uapi/asm/byteorder.h:21,
                 from include/asm-generic/bitops/le.h:5,
                 from ./arch/arm/include/asm/bitops.h:340,
                 from include/linux/bitops.h:36,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/bitops.h:3,
                 from include/linux/kernel.h:10,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/kernel.h:3,
                 from include/linux/list.h:8,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/list.h:3,
                 from include/linux/module.h:9,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/module.h:3,
                 from /home/pavement1234/backports/backports-5.2.8-1/compat/main.c:1:
./arch/arm/include/asm/swab.h:20:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
 #if __LINUX_ARM_ARCH__ >= 6
     ^
In file included from include/linux/spinlock.h:50:0,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/spinlock.h:3,
                 from include/linux/seqlock.h:35,
                 from include/linux/time.h:5,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/time.h:3,
                 from include/linux/stat.h:18,
                 from include/linux/module.h:10,
                 from /home/pavement1234/backports/backports-5.2.8-1/backport-include/linux/module.h:3,
                 from /home/pavement1234/backports/backports-5.2.8-1/compat/main.c:1:
include/linux/preempt.h:59:25: fatal error: asm/preempt.h: No such file or directory
 #include <asm/preempt.h>
                         ^
compilation terminated.
scripts/Makefile.build:258: ターゲット '/home/pavement1234/backports/backports-5.2.8-1/compat/main.o' のレシピで失敗しました
make[6]: *** [/home/pavement1234/backports/backports-5.2.8-1/compat/main.o] エラー 1
scripts/Makefile.build:403: ターゲット '/home/pavement1234/backports/backports-5.2.8-1/compat' のレシピで失敗しました
make[5]: *** [/home/pavement1234/backports/backports-5.2.8-1/compat] エラー 2
Makefile:1396: ターゲット '_module_/home/pavement1234/backports/backports-5.2.8-1' のレシピで失敗しました
make[4]: *** [_module_/home/pavement1234/backports/backports-5.2.8-1] エラー 2
Makefile.build:6: ターゲット 'modules' のレシピで失敗しました
make[3]: *** [modules] エラー 2
Makefile.real:88: ターゲット 'modules' のレシピで失敗しました
make[2]: *** [modules] エラー 2
Makefile:40: ターゲット 'modules' のレシピで失敗しました
make[1]: *** [modules] エラー 2
Makefile:30: ターゲット 'default' のレシピで失敗しました
make: *** [default] エラー 2
さらに迷走してきた感じ。Yoctoのlocal.confにbackportsを指定して、コンポーネントとして取り込んだほうが楽なのかな...。と1瞬弱気になったが、もう1度トライしてみようと思う。

続く
IMG_20171010_064731




スポンサードリンク