Ok,
other than creating compiler-gcc8.h this one-liner kernel patch is needed:
--- a/Makefile 2018-12-14 11:25:50.014973369 +0100
+++ b/Makefile 2018-12-14 11:25:13.206846263 +0100
@@ -376,6 +376,7 @@
-fno-strict-aliasing -fno-common \
-Werror-implicit-function-declaration \
-Wno-format-security \
+ -Wno-error=attribute-alias \
-fno-delete-null-pointer-checks
KBUILD_AFLAGS_KERNEL :=
KBUILD_CFLAGS_KERNEL :=
That's all!
(Well, minor packaging issues to fix)
andrea@andrea-ThinkPad-T520:/oe/meta-vuplus$ bitbake virtual/kernel
Loading cache: 100% |############################################| Time: 0:00:00
Loaded 3328 entries from dependency cache.
Parsing recipes: 100% |##########################################| Time: 0:00:01
Parsing of 2348 .bb files complete (2346 cached, 2 parsed). 3329 targets, 274 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.40.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "mipsel-oe-linux"
MACHINE = "vuduo2"
DISTRO = "nodistro"
DISTRO_VERSION = "nodistro.0"
TUNE_FEATURES = "o32 fpu-hard mips32"
TARGET_FPU = ""
meta = "master:6d666b0413336de2e556b2722c5be97ae5cd40ad"
meta-oe = "master:ff6bead1624a1e261408516b3d064a04aab5f592"
meta-handheld = "master:a876aaa33317d388aa2e865f665fe6cc58d500a7"
meta-initramfs
meta-multimedia
meta-networking
meta-python = "master:ff6bead1624a1e261408516b3d064a04aab5f592"
meta-vuplus = "master:2c48f82d916314dfc41828415951b6cb2bf8e2e5"
meta-kodi = "sumo:112b519fe98ea2a236db88b8e43a905825c0857b"
Initialising tasks: 100% |#######################################| Time: 0:00:00
Sstate summary: Wanted 9 Found 2 Missed 7 Current 122 (22% match, 94% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: linux-vuduo2-3.13.5-r1.6.4 do_package: QA Issue: FILES variable for package kernel-devicetree contains '//' which is invalid. Attempting to fix this but you should correct the metadata.
[files-invalid]
WARNING: linux-vuduo2-3.13.5-r1.6.4 do_package: QA Issue: FILES variable for package kernel-image-vmlinux contains '//' which is invalid. Attempting to fix this but you should correct the metadata.
[files-invalid]
WARNING: linux-vuduo2-3.13.5-r1.6.4 do_package: QA Issue: linux-vuduo2: Files/directories were installed but not shipped in any package:
/tmp/vmlinux-3.13.5
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
linux-vuduo2: 1 installed and not shipped files. [installed-vs-shipped]
NOTE: Tasks Summary: Attempted 596 tasks of which 578 didn't need to be rerun and all succeeded.
Summary: There were 3 WARNING messages shown.
andrea@andrea-ThinkPad-T520:/oe/meta-vuplus$
Cheers
A.A.