Yocto: Install different config files based on MACHINE type or target image

后端 未结 3 1231
悲&欢浪女
悲&欢浪女 2020-12-20 07:15

I\'ve got a couple of HW platforms (same cpu, etc.) that require different asound.conf files.

The way that I\'m controlling the target platform is via the MACHINE va

3条回答
  •  执笔经年
    2020-12-20 08:12

    do_install_append () {
        // install common things here
    }
    
    do_install_append_machine-1 () {
        // install machine-1 specific things here
    }
    
    do_install_append_machine-2 () {
        // install machine-2 specific things here
    }
    

    The value of MACHINE is automatically added to OVERRIDES, which can be used at the end of a function append to have a MACHINE-specific addition to a function.

    Maybe useful: https://www.yoctoproject.org/docs/2.4/mega-manual/mega-manual.html#var-OVERRIDES

提交回复
热议问题