target_build_msg = "The meta-anaconda layer has been included, and the \ current build is a regular target build. After it is finished, create \ a new installer build with DISTRO = 'wrlinux-installer', \ INSTALLER_TARGET_BUILD = '|' \ and INSTALLER_TARGET_IMAGE = '' in local.conf" target_build_warnmsg = "WARNING: The meta-anaconda layer has been included, \ and the current build is a regular target build. It requires to enable \ feature/installer-support template. Add option \ --templates=feature/installer-support to setup.sh, or set WRTEMPLATE += \ 'feature/installer-support' in local.conf" installer_build_msg = "The meta-anaconda layer has been included, and the \ current build is a installer build, if set INSTALLER_TARGET_BUILD = \ '', and INSTALLER_TARGET_IMAGE = '' \ the installer is to do RPMs install; if set INSTALLER_TARGET_BUILD = \ '', the installer is to do image copy install." def get_installer_banner(d): if d.getVar('DISTRO',True) == 'wrlinux-installer': return d.getVar('installer_build_msg') elif "feature/installer-support" in d.getVar("WRTEMPLATE").split(): return d.getVar('target_build_msg') else: return d.getVar('target_build_warnmsg') CONFIG_BANNER[installer] = "${@get_installer_banner(d)}"