JeffyCN / meta-rockchip

Yocto BSP layer for the Rockchip SOC boards
Other
114 stars 87 forks source link

Overriding KERNEL_DEVICETREE from local.conf doesn't work #40

Closed tmm1 closed 1 year ago

tmm1 commented 1 year ago

In the readme it recommends:

To support new machine, you can [...] choose a similar existing machine and override it's configurations in local config file.

But it's not working for me. When I check with bitbake -e, I can see the wrong value is used:

# $KERNEL_DEVICETREE [2 operations]
#   set /home/parallels/code/yocto/build/conf/local.conf:25
#     "rockchip/rk3566-box-demo-v10.dtb"
#   set /home/parallels/code/yocto/build/../meta-rockchip/conf/machine/rockchip-rk3566-evb.conf:9
#     "rockchip/rk3566-evb2-lp4x-v10-linux.dtb"
# pre-expansion value:
#   "rockchip/rk3566-evb2-lp4x-v10-linux.dtb"
KERNEL_DEVICETREE="rockchip/rk3566-evb2-lp4x-v10-linux.dtb"
tmm1 commented 1 year ago

I guess it can be done via override, i.e.

KERNEL_DEVICETREE:rockchip = "rockchip/rk3566-box-demo-v10.dtb"

Maybe it can be added to README as an example like for KBRANCH.

tmm1 commented 1 year ago

Better solution is to make a layer with custom machine, such as meta-local/conf/machine/rk3566-xxx.conf