[Chromebooks] nabil2000:
test run - completed after cleaning

Not as straightforward as building kernel 4.14.96 - which I did from Ubuntu Bionic 18.04 -

I could not successfully compile kernel 3.18 from bionic - errors about gcc compiler 7, then swapped it to gcc 5.5 which progressed a bit..

luckily I have a usb with ubuntu 16.04 with gcc 4.9 -

still got this error which was fatal:

drivers/gpu/drm/udl/udl_connector.c:17:27: fatal error: udl_connector.h: No such file or directory

#include <udl_connector.h>

^

compilation terminated.

scripts/Makefile.build:257: recipe for target 'drivers/gpu/drm/udl/udl_connector.o' failed

make[4]: *** [drivers/gpu/drm/udl/udl_connector.o] Error 1

scripts/Makefile.build:402: recipe for target 'drivers/gpu/drm/udl' failed

make[3]: *** [drivers/gpu/drm/udl] Error 2

scripts/Makefile.build:402: recipe for target 'drivers/gpu/drm' failed

make[2]: *** [drivers/gpu/drm] Error 2

scripts/Makefile.build:402: recipe for target 'drivers/gpu' failed

make[1]: *** [drivers/gpu] Error 2

make[1]: *** Waiting for unfinished jobs....

Makefile:965: recipe for target 'drivers' failed

make: *** [drivers] Error 2

I had to remove by comment out the following line from .config to get it to finish compiling:

# CONFIG_DRM_UDL is not set

this was just a test run using the base.config extracted from a running Chrome OS using kernel 3.18 (in this case relm)

It choked on FydeOS 5.3.1 base.config - so I cannot just use that.

Next step is to analyse its .config & find out which line/s to comment out to get a module graphics driver for Acer W700...

Got myself these extra modules for 3.18 -

LD [M] kernel/configs.ko

LD [M] sound/pci/hda/snd-hda-intel.ko

LD [M] drivers/bcma/bcma.ko

LD [M] drivers/net/wireless/b43/b43.ko

LD [M] drivers/ssb/ssb.ko

LD [M] drivers/net/wireless/b43legacy/b43legacy.ko

LD [M] drivers/video/backlight/ams369fg06.ko

LD [M] drivers/video/backlight/apple_bl.ko

LD [M] drivers/video/backlight/generic_bl.ko

LD [M] drivers/video/backlight/gpio_backlight.ko

LD [M] drivers/video/backlight/hx8357.ko

LD [M] drivers/video/backlight/ili922x.ko

LD [M] drivers/video/backlight/ili9320.ko

LD [M] drivers/video/backlight/lcd.ko

LD [M] drivers/video/backlight/ld9040.ko

LD [M] drivers/video/backlight/lms283gf05.ko

LD [M] drivers/video/backlight/lms501kf03.ko

LD [M] drivers/video/backlight/ltv350qv.ko

LD [M] drivers/video/backlight/platform_lcd.ko

LD [M] drivers/video/backlight/s6e63m0.ko

LD [M] drivers/video/backlight/tdo24m.ko

LD [M] drivers/video/backlight/vgg2432a4.ko

Next to do - compare base.config's of relm & auron_paine

$ sudo modprobe configs; zless /proc/config.gz

$ cat /proc/config.gz | gunzip > ~/Downloads/base.config

#

# Automatically generated file; DO NOT EDIT.

# Linux/x86_64 3.14.0 Kernel Configuration

#

CONFIG_64BIT=y

CONFIG_X86_64=y

CONFIG_X86=y

CONFIG_INSTRUCTION_DECODER=y

CONFIG_OUTPUT_FORMAT="elf64-x86-64"

CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"

CONFIG_LOCKDEP_SUPPORT=y

CONFIG_STACKTRACE_SUPPORT=y

CONFIG_HAVE_LATENCYTOP_SUPPORT=y

CONFIG_MMU=y

CONFIG_ARCH_MMAP_RND_BITS_MIN=28

CONFIG_ARCH_MMAP_RND_BITS_MAX=32

CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8

CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16

CONFIG_NEED_DMA_MAP_STATE=y

CONFIG_NEED_SG_DMA_LENGTH=y

CONFIG_GENERIC_ISA_DMA=y

CONFIG_GENERIC_BUG=y

CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y

CONFIG_GENERIC_HWEIGHT=y

CONFIG_ARCH_MAY_HAVE_PC_FDC=y

CONFIG_RWSEM_XCHGADD_ALGORITHM=y

CONFIG_GENERIC_CALIBRATE_DELAY=y

CONFIG_ARCH_HAS_CPU_RELAX=y

To get the .config which I then amend manually I just take generated base.config & knock off base ;)