Skip to content

Linux 6.6.18 eic7x out-of-tree build fixes#16

Open
ziswiler wants to merge 6 commits intoeswincomputing:linux-6.6.18-EIC7Xfrom
ziswiler:linux-6.6.18-EIC7X-fixes
Open

Linux 6.6.18 eic7x out-of-tree build fixes#16
ziswiler wants to merge 6 commits intoeswincomputing:linux-6.6.18-EIC7Xfrom
ziswiler:linux-6.6.18-EIC7X-fixes

Conversation

@ziswiler
Copy link
Copy Markdown
Contributor

@ziswiler ziswiler commented Jan 2, 2026

Some fixes for out-of-tree building et. al. I came up with when working on Yocto Project integration (also see https://github.com/ziswiler/meta-riscv/tree/add-eswin-ebc77-support) for my upcoming FOSDEM'26 talk (also see https://fosdem.org/2026/schedule/event/LX3NNU-upstream-embedded-linux-on-risc-v-sbcs).

Thanks!

linux-stable/drivers/soc/eswin/ai_driver/dsp/mloader/xt_mld_relocate.c: In function 'relocate_relative':
linux-stable/drivers/soc/eswin/ai_driver/dsp/mloader/xt_mld_relocate.c:348:37: error: passing argument 3 of 'reloc_addr_value' from incompatible pointer type [-Wincompatible-pointer-types]
  348 |                                     &raddr);
      |                                     ^~~~~~
      |                                     |
      |                                     void **
linux-stable/drivers/soc/eswin/ai_driver/dsp/mloader/xt_mld_relocate.c:310:57: note: expected 'unsigned int *' but argument is of type 'void **'
  310 |                                             Elf32_Addr *relocation)
linux-stable/drivers/soc/eswin/ai_driver/dsp/mloader/xt_mld_relocate.c:359:38: error: passing argument 3 of 'reloc_addr_value' from incompatible pointer type [-Wincompatible-pointer-types]
  359 |                                     ((xtmld_ptr *)&val));
      |                                     ~^~~~~~~~~~~~~~~~~~
      |                                      |
      |                                      void **
linux-stable/drivers/soc/eswin/ai_driver/dsp/mloader/xt_mld_relocate.c:310:57: note: expected 'unsigned int *' but argument is of type 'void **'
  310 |                                             Elf32_Addr *relocation)
linux-stable/drivers/soc/eswin/ai_driver/dsp/mloader/xt_mld_relocate.c: In function 'relocate_32_pcrel':
linux-stable/drivers/soc/eswin/ai_driver/dsp/mloader/xt_mld_relocate.c:383:61: error: passing argument 3 of 'reloc_addr_value' from incompatible pointer type [-Wincompatible-pointer-types]
  383 |         status = reloc_addr_value(lib_info, rela->r_addend, &raddr);
      |                                                             ^~~~~~
      |                                                             |
      |                                                             void **
linux-stable/drivers/soc/eswin/ai_driver/dsp/mloader/xt_mld_relocate.c:310:57: note: expected 'unsigned int *' but argument is of type 'void **'
  310 |                                             Elf32_Addr *relocation)
make[8]: *** [linux-stable/scripts/Makefile.build:243: drivers/soc/eswin/ai_driver/dsp/mloader/xt_mld_relocate.o] Error 1

Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
linux-stable/drivers/net/wireless/ap12275/aiutils.c:25:10: fatal error: typedefs.h: No such file or directory
   25 | #include <typedefs.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make[7]: *** [linux-stable/scripts/Makefile.build:243: drivers/net/wireless/ap12275/aiutils.o] Error 1

Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
In file included from linux-stable/drivers/staging/media/eswin/es-media-ext/./chn/dev_channel.c:1:
linux-stable/drivers/staging/media/eswin/es-media-ext/./chn/dev_channel.h:3:10: fatal error: dev_common.h: No such file or directory
    3 | #include "dev_common.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.
  CC      drivers/staging/media/eswin/es-media-ext/./chn/class_chn_mgr.o
make[8]: *** [linux-stable/scripts/Makefile.build:243: drivers/staging/media/eswin/es-media-ext/./chn/dev_channel.o] Error 1
make[8]: *** Waiting for unfinished jobs....
cp: cannot stat 'drivers/memory/eswin/es_dev_buf/include/linux/*.h': No such file or directory
In file included from linux-stable/drivers/staging/media/eswin/es-media-ext/./chn/class_chn_mgr.c:1:
linux-stable/drivers/staging/media/eswin/es-media-ext/./chn/class_chn_mgr.h:4:10: fatal error: dev_common.h: No such file or directory
    4 | #include "dev_common.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.
make[8]: *** [linux-stable/scripts/Makefile.build:243: drivers/staging/media/eswin/es-media-ext/./chn/class_chn_mgr.o] Error 1
  CC      drivers/memory/eswin/es_dev_buf/es_dev_buf.o
In file included from linux-stable/drivers/staging/media/eswin/es-media-ext/es_media_ext_drv_main.c:13:
linux-stable/drivers/staging/media/eswin/es-media-ext/./module/dev_module.h:4:10: fatal error: dev_common.h: No such file or directory
    4 | #include "dev_common.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.
make[8]: *** [linux-stable/scripts/Makefile.build:243: drivers/staging/media/eswin/es-media-ext/es_media_ext_drv_main.o] Error 1
make[7]: *** [linux-stable/scripts/Makefile.build:480: drivers/staging/media/eswin/es-media-ext] Error 2
make[6]: *** [linux-stable/scripts/Makefile.build:480: drivers/staging/media/eswin] Error 2
make[5]: *** [linux-stable/scripts/Makefile.build:480: drivers/staging/media] Error 2
make[4]: *** [linux-stable/scripts/Makefile.build:480: drivers/staging] Error 2
make[4]: *** Waiting for unfinished jobs....
linux-stable/drivers/memory/eswin/es_dev_buf/es_dev_buf.c:10:10: fatal error: linux/dsp_dma_buf.h: No such file or directory
   10 | #include <linux/dsp_dma_buf.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[7]: *** [linux-stable/scripts/Makefile.build:243: drivers/memory/eswin/es_dev_buf/es_dev_buf.o] Error 1

Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
linux-stable/drivers/memory/eswin/es_dev_buf/es_dev_buf.c:10:10: fatal error: linux/dsp_dma_buf.h: No such file or directory
   10 | #include <linux/dsp_dma_buf.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[7]: *** [linux-stable/scripts/Makefile.build:243: drivers/memory/eswin/es_dev_buf/es_dev_buf.o] Error 1

Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
cp: cannot stat 'drivers/memory/eswin//*.h': No such file or directory

Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
⬢ [user@host linux-stable]$ make mrproper
scripts/Makefile.clean:12: drivers/media/i2c/rk628/Makefile: No such file or directory
make[6]: *** No rule to make target 'drivers/media/i2c/rk628/Makefile'.  Stop.

Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
@ziswiler ziswiler changed the title Linux 6.6.18 eic7 x fixes Linux 6.6.18 eic7 out-of-tree build fixes Jan 2, 2026
@ziswiler ziswiler changed the title Linux 6.6.18 eic7 out-of-tree build fixes Linux 6.6.18 eic7x out-of-tree build fixes Jan 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant