Open brenkem opened 6 months ago
There is also a issue then a custom device tree is used including a device tree source include file, e.g.:
-BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="picocoremx8mpr2.dts"
+BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="picocoremx8mpr2.dts picocoremx8mp.dtsi"
In this case, the system image building script will try to build the system image including "picocoremx8mp.dtb" from the include file "picocoremx8mp.dtsi".
This can be solved by excluding dtsi files from the device tree list:
diff --git a/board/f+s/common/post-image.sh b/board/f+s/common/post-image.sh
index 589f9f0fb..7ddffe2d6 100755
--- a/board/f+s/common/post-image.sh
+++ b/board/f+s/common/post-image.sh
@@ -23,7 +23,7 @@ freertos_sample_list()
#
dtb_list()
{
- local DTB_LIST="$(sed -n 's/^BR2_LINUX_KERNEL_[A-Z \+ | \. \+ | \/a-z0-9 \-]*_DTS_[A-Z \+ | \. \+ | \/a-z0-9 \-]*="\([A-Z \+ | \. \+ | \/a-z0-9 \-]*\)"$/\1/p' ${BR2_CONFIG})"
+ local DTB_LIST="$(sed -n 's/^BR2_LINUX_KERNEL_[A-Z \+ | \. \+ | \/a-z0-9 \-]*_DTS_[A-Z \+ | \. \+ | \/a-z0-9 \-]*="\([A-Z \+ | \. \+ | \/a-z0-9 \-]*\)"$/\1/p' ${BR2_CONFIG} | sed -n 's/\ .*.dtsi//p')"
After changing the configuration of my buildroot project I noticed that the system image creation failed because of maybe [1] with the following result:
If the sysimg creation is depending of the hostname definition in the buildroot configuration to define the target cpu variant, it seems not to be a good option. Maybe we should implement something like [3] to detect the cpu variant.
[1]:
[2]:
[3]: diff --git a/board/f+s/common/post-image.sh b/board/f+s/common/post-image.sh