• Guenter Roeck's avatar
    soc: Unconditionally include qcom Makefile · cab67358
    Guenter Roeck authored
    Incoming Qualcomm changes for GENI, i2c [1], and cmd-db [2] are enabled
    with COMPILE_TEST in drivers/soc/qcom. For this to work, the Makefile
    in that directory has to be included unconditionally, rather than only
    if ARCH_QCOM is enabled.
    
    Example of the errors seen on allmodconfig with the GENI, i2c, and
    cmd-db patches applied:
    
    Kernel: arch/x86/boot/bzImage is ready  (#1)
    ERROR: "geni_se_select_mode" [drivers/tty/serial/qcom_geni_serial.ko] undefined!
    ERROR: "geni_se_init" [drivers/tty/serial/qcom_geni_serial.ko] undefined!
    ERROR: "geni_se_config_packing" [drivers/tty/serial/qcom_geni_serial.ko] undefined!
    ERROR: "geni_se_resources_on" [drivers/tty/serial/qcom_geni_serial.ko] undefined!
    ERROR: "geni_se_resources_off" [drivers/tty/serial/qcom_geni_serial.ko] undefined!
    ERROR: "geni_se_tx_dma_unprep" [drivers/i2c/busses/i2c-qcom-geni.ko] undefined!
    ERROR: "geni_se_tx_dma_prep" [drivers/i2c/busses/i2c-qcom-geni.ko] undefined!
    ERROR: "geni_se_rx_dma_unprep" [drivers/i2c/busses/i2c-qcom-geni.ko] undefined!
    ERROR: "geni_se_rx_dma_prep" [drivers/i2c/busses/i2c-qcom-geni.ko] undefined!
    ERROR: "geni_se_select_mode" [drivers/i2c/busses/i2c-qcom-geni.ko] undefined!
    ERROR: "geni_se_config_packing" [drivers/i2c/busses/i2c-qcom-geni.ko] undefined!
    ERROR: "geni_se_init" [drivers/i2c/busses/i2c-qcom-geni.ko] undefined!
    ERROR: "geni_se_resources_off" [drivers/i2c/busses/i2c-qcom-geni.ko] undefined!
    ERROR: "geni_se_resources_on" [drivers/i2c/busses/i2c-qcom-geni.ko] undefined!
    make[1]: *** [scripts/Makefile.modpost:92: __modpost] Error 1
    make: *** [Makefile:1237: modules] Error 2
    
    [1] https://patchwork.ozlabs.org/cover/893437/
    [2] https://lkml.org/lkml/2018/4/10/714Signed-off-by: default avatarGuenter Roeck <groeck@chromium.org>
    Signed-off-by: default avatarEvan Green <evgreen@chromium.org>
    Signed-off-by: default avatarAndy Gross <andy.gross@linaro.org>
    cab67358
Makefile 786 Bytes