Skip to main content
Associate
January 10, 2025
Solved

make[1]: *** No rule to make target 'Image.gz'. Stop.

  • January 10, 2025
  • 1 reply
  • 1084 views

I've followed the READMEs for the installation of the dev package, source, and kernel and generated a build folder for the kernel as suggested at

~/st/stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06/sdk/Developer-Package/stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06/sources/aarch64-ostl-linux/linux-stm32mp-6.6.48-stm32mp-r1-r0/build

In the build folder I see folders include, scripts, a link to source as well as files Makefile, .config .config.old, and .gitignore. When I run

make ${IMAGE_KERNEL} vmlinux dtbs LOADADDR=0xC2000040 O="${OUTPUT_BUILD_DIR}"

I get

make[1]: *** No rule to make target 'Image.gz'. Stop.
make: *** [/home/lelory/st/stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06/sdk/Developer-Package/stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06/sources/aarch64-ostl-linux/linux-stm32mp-6.6.48-stm32mp-r1-r0/linux-6.6.48/Makefile:234: __sub-make] Error 2

What am I doing wrong?

1 reply

PatrickF
PatrickFBest answer
Technical Moderator
January 10, 2025
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.NEW ! Sidekick STM32 AI agent, see here
Galahad25Author
Associate
January 10, 2025

Ah, didn't realize I had to source when changing folders as well. Now another issue:

/home/lelory/st/stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06/sdk/Developer-Package/SDK/sysroots/x86_64-ostl_sdk-linux/usr/lib/aarch64-ostl-linux/gcc/aarch64-ostl-linux/13.3.0/plugin/include/builtins.h:23:10: fatal error: mpc.h: No such file or directory
23 | #include <mpc.h>

It doesn't show the file in the gcc and I don't see it there either.