I am porting Linux to a new SC589 platform that doesn't implement a softconfig (MCP23017 port expander) but most of the drivers in the Yocto release use this mux and it's really embedded in the code. I've tried commenting all the softconfig stuff out but bitbake is still barking at me as follows...
andrew@KernelDev:~/yocto/build$ bitbake linux-adi -f -c compile
Loading cache: 100% |############################################| Time: 0:00:00
Loaded 3067 entries from dependency cache.
Parsing recipes: 100% |##########################################| Time: 0:00:01
Parsing of 2119 .bb files complete (2115 cached, 4 parsed). 3071 targets, 118 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 = "universal"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "adsp-sc589-ezkit"
DISTRO = "poky"
DISTRO_VERSION = "2.6.2"
TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU = "hard"
meta
meta-poky
meta-yocto-bsp = "HEAD:50f33d3bfebcbfb1538d932fb487cfd789872026"
meta-adi-adsp-sc5xx
meta-adi-external-toolchain = "HEAD:ad2203c11723b07727589a8eebe33f3129cc236a"
meta-oe
meta-python
meta-networking = "HEAD:4cd3a39f22a2712bfa8fc657d09fe2c7765a4005"
NOTE: Tainting hash to force rebuild of task /home/andrew/yocto/sources/meta-adi/meta-adi-adsp-sc5xx/recipes-kernel/linux/linux-adi_4.19.bb, do_compile
WARNING: /home/andrew/yocto/sources/meta-adi/meta-adi-adsp-sc5xx/recipes-kernel/linux/linux-adi_4.19.bb.do_compile is tainted from a forced run
Initialising tasks: 100% |#######################################| Time: 0:00:00
Sstate summary: Wanted 0 Found 0 Missed 0 Current 46 (0% match, 100% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: linux-adi-4.19-r0 do_compile: oe_runmake failed
ERROR: linux-adi-4.19-r0 do_compile: Function failed: do_compile (log file is located at /home/andrew/yocto/build/tmp/work/adsp_sc589_ezkit-poky-linux-gnueabi/linux-adi/4.19-r0/temp/log.do_compile.7682)
ERROR: Logfile of failure stored in: /home/andrew/yocto/build/tmp/work/adsp_sc589_ezkit-poky-linux-gnueabi/linux-adi/4.19-r0/temp/log.do_compile.7682
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 8 HOSTCC=gcc -isystem/home/andrew/yocto/build/tmp/work/adsp_sc589_ezkit-poky-linux-gnueabi/linux-adi/4.19-r0/recipe-sysroot-default/usr/include -O2 -pipe -L/home/andrew/yocto/build/tmp/work/adsp_sc589_ezkit-poky-linux-gnueabi/linux-adi/4.19-r0/recipe-sysroot-default/usr/lib -L/home/andrew/yocto/build/tmp/work/adsp_sc589_ezkit-poky-linux-gnueabi/linux-adi/4.19-r0/recipe-sysroot-default/lib -Wl,-rpath-link,/home/andrew/yocto/build/tmp/work/adsp_sc589_ezkit-poky-linux-gnueabi/linux-adi/4.19-r0/recipe-sysroot-default/usr/lib -Wl,-rpath-link,/home/andrew/yocto/build/tmp/work/adsp_sc589_ezkit-poky-linux-gnueabi/linux-adi/4.19-r0/recipe-sysroot-default/lib -Wl,-rpath,/home/andrew/yocto/build/tmp/work/adsp_sc589_ezkit-poky-linux-gnueabi/linux-adi/4.19-r0/recipe-sysroot-default/usr/lib -Wl,-rpath,/home/andrew/yocto/build/tmp/work/adsp_sc589_ezkit-poky-linux-gnueabi/linux-adi/4.19-r0/recipe-sysroot-default/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/andrew/yocto/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc -E zImage CC=arm-poky-linux-gnueabi-gcc -mno-thumb-interwork -marm -fuse-ld=bfd -fdebug-prefix-map=/home/andrew/yocto/build/tmp/work/adsp_sc589_ezkit-poky-linux-gnueabi/linux-adi/4.19-r0=/usr/src/debug/linux-adi/4.19-r0 -fdebug-prefix-map=/home/andrew/yocto/build/tmp/work/adsp_sc589_ezkit-poky-linux-gnueabi/linux-adi/4.19-r0/recipe-sysroot= -fdebug-prefix-map=/home/andrew/yocto/build/tmp/work/adsp_sc589_ezkit-poky-linux-gnueabi/linux-adi/4.19-r0/recipe-sysroot-default= -fdebug-prefix-map=/home/andrew/yocto/build/tmp/work-shared/adsp-sc589-ezkit/kernel-source=/usr/src/kernel LD=arm-poky-linux-gnueabi-ld.bfd LOADADDR=0x80008000
| GEN ./Makefile
| Using /home/andrew/yocto/build/tmp/work-shared/adsp-sc589-ezkit/kernel-source as source for kernel
| CALL /home/andrew/yocto/build/tmp/work-shared/adsp-sc589-ezkit/kernel-source/scripts/checksyscalls.sh
| CHK include/generated/compile.h
| GEN .version
| CHK include/generated/compile.h
| AR built-in.a
| LD vmlinux.o
| MODPOST vmlinux.o
| arm-poky-linux-gnueabi-ld.bfd: drivers/mtd/devices/m25p80.o: in function `m25p_remove':
| /usr/src/kernel/drivers/mtd/devices/m25p80.c:261: undefined reference to `softconfig_of_set_group_active_pins_output'
| arm-poky-linux-gnueabi-ld.bfd: drivers/mtd/devices/m25p80.o: in function `m25p_probe':
| /usr/src/kernel/drivers/mtd/devices/m25p80.c:239: undefined reference to `softconfig_of_set_group_active_pins_output'
| arm-poky-linux-gnueabi-ld.bfd: drivers/net/ethernet/stmicro/stmmac/dwmac-adi.o: in function `dwmac_adi_probe':
| /usr/src/kernel/drivers/net/ethernet/stmicro/stmmac/dwmac-adi.c:48: undefined reference to `softconfig_of_set_active_pin_output'
| arm-poky-linux-gnueabi-ld.bfd: drivers/mmc/host/dw_mmc-adi.o: in function `dwmmc_adi_remove':
| /usr/src/kernel/drivers/mmc/host/dw_mmc-adi.c:88: undefined reference to `softconfig_of_set_group_active_pins_output'
| arm-poky-linux-gnueabi-ld.bfd: drivers/mmc/host/dw_mmc-adi.o: in function `dwmmc_adi_probe':
| /usr/src/kernel/drivers/mmc/host/dw_mmc-adi.c:79: undefined reference to `softconfig_of_set_group_active_pins_output'
| arm-poky-linux-gnueabi-ld.bfd: sound/soc/codecs/adau1977.o: in function `adau1977_probe':
| /usr/src/kernel/sound/soc/codecs/adau1977.c:944: undefined reference to `softconfig_of_set_active_pin_output'
| arm-poky-linux-gnueabi-ld.bfd: sound/soc/codecs/adau1962.o: in function `adau1962_probe':
| /usr/src/kernel/sound/soc/codecs/adau1962.c:787: undefined reference to `softconfig_of_set_active_pin_output'
| /home/andrew/yocto/build/tmp/work-shared/adsp-sc589-ezkit/kernel-source/Makefile:1032: recipe for target 'vmlinux' failed
| make[2]: *** [vmlinux] Error 1
| Makefile:146: recipe for target 'sub-make' failed
| make[1]: *** [sub-make] Error 2
| Makefile:24: recipe for target '__sub-make' failed
| make: *** [__sub-make] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/andrew/yocto/build/tmp/work/adsp_sc589_ezkit-poky-linux-gnueabi/linux-adi/4.19-r0/temp/log.do_compile.7682)
ERROR: Task (/home/andrew/yocto/sources/meta-adi/meta-adi-adsp-sc5xx/recipes-kernel/linux/linux-adi_4.19.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 354 tasks of which 353 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/andrew/yocto/sources/meta-adi/meta-adi-adsp-sc5xx/recipes-kernel/linux/linux-adi_4.19.bb:do_compile
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
andrew@KernelDev:~/yocto/build$
Any help would be appreciated. Just to say again, I believe the softconfig stuff has been commented out of the source files in the git folder.