cancel
Showing results for 
Search instead for 
Did you mean: 

Configure kernel source code failed

tpeng.1
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
tpeng.1
Associate III

Hi Olivier,

Thank your quick reply!

Yes, I missed some steps.

It works now after rechecking build processure.

Tim

View solution in original post

2 REPLIES 2
Olivier GALLIEN
ST Employee

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
Associate III

Hi Olivier,

Thank your quick reply!

Yes, I missed some steps.

It works now after rechecking build processure.

Tim