Skip to main content
tpeng.1
Associate III
March 11, 2020
Solved

Configure kernel source code failed

  • March 11, 2020
  • 3 replies
  • 2160 views

Following the instruction from https://github.com/STMicroelectronics/meta-st-stm32mp/blob/thud/recipes-kernel/linux/linux-stm32mp/README.HOW_TO.txt

* Configure on a build directory (different of kernel source code directory)   Here for example, build directory is located at the same level of kernel   source code   $> cd <directory to kernel source code>   $> mkdir -p ../build

$> make ARCH=arm O="$PWD/../build" multi_v7_defconfig fragment*.config

Then got the following message

make[1]: Entering directory '/home/tim/stm32mp1-openstlinux-4.19-thud-mp1-19-10-09/sources/arm-openstlinux_weston-linux-gnueabi/linux-stm32mp-4.19-r0/build'

 GEN    ./Makefile

#

# configuration written to .config

#

 GEN    ./Makefile

/home/tim/stm32mp1-openstlinux-4.19-thud-mp1-19-10-09/sources/arm-openstlinux_weston-linux-gnueabi/linux-stm32mp-4.19-r0/linux-4.19.49/scripts/kconfig/Makefile:109: *** No configuration exists for this target on this architecture. Stop.

/home/tim/stm32mp1-openstlinux-4.19-thud-mp1-19-10-09/sources/arm-openstlinux_weston-linux-gnueabi/linux-stm32mp-4.19-r0/linux-4.19.49/Makefile:532: recipe for target 'fragment-03-systemd.config' failed

make[2]: *** [fragment-03-systemd.config] Error 2

/home/tim/stm32mp1-openstlinux-4.19-thud-mp1-19-10-09/sources/arm-openstlinux_weston-linux-gnueabi/linux-stm32mp-4.19-r0/linux-4.19.49/Makefile:286: recipe for target '__build_one_by_one' failed

make[1]: *** [__build_one_by_one] Error 2

make[1]: Leaving directory '/home/tim/stm32mp1-openstlinux-4.19-thud-mp1-19-10-09/sources/arm-openstlinux_weston-linux-gnueabi/linux-stm32mp-4.19-r0/build'

Makefile:146: recipe for target 'sub-make' failed

make: *** [sub-make] Error 2

Unsuccessfully, need your help.

Best answer by tpeng.1

Hi Olivier,

Thank your quick reply!

Yes, I missed some steps.

It works now after rechecking build processure.

Tim

3 replies

Olivier GALLIEN
Technical Moderator
March 11, 2020

Hi @tpeng.1​ 

The document you refer has been properly validated on Ubuntu 16.04 and 18.04 Linux system.

Are you using other OS for your Host ?

Else please check you didn't miss any steps.

Olivier

Olivier GALLIEN 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.
tpeng.1
tpeng.1AuthorBest answer
Associate III
March 12, 2020

Hi Olivier,

Thank your quick reply!

Yes, I missed some steps.

It works now after rechecking build processure.

Tim

Associate II
March 25, 2025

Reviving this thread to add what actually fixed this issue for me. I forgot to start the SDK on my host machine (source)

cd $HOME/STM32MPU_workspace/STM32MPU-Ecosystem-v6.0.0/Developer-Package 
source SDK/environment-setup-cortexa35-ostl-linux

 

ADunc.1
Senior
February 26, 2026

I would have never worked out to start the SDK while following the tutorial.  It would be really helpful if there was a reminder in the tutorial to do so.  @ozi Thanks for adding this post, it saved me hours of head scratching.