build: target: improve UX of CONFIG_TARGET handling
authorPetr Štetiar <ynezz@true.cz>
Tue, 29 Mar 2022 06:30:32 +0000 (08:30 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 17 Apr 2022 19:27:07 +0000 (21:27 +0200)
commite723bcbac0097fd94938d615bf2fef2ee282d477
tree0def9a51a33fcddd4783c7abac36b6f44ba588ea
parent75b83e94a395fedeb4d308f42013a72c6fee2df4
build: target: improve UX of CONFIG_TARGET handling

Make it clear, that for `make kernel_{menu,old}config` it's possible to
use only following values for CONFIG_TARGET variable:

 * env
 * target
 * subtarget
 * subtarget_target

This should prevent misuse like `make kernel_menuconfig
CONFIG_TARGET=bcm2710` etc.

Keep support for obsolete `platform` and `subtarget_platform` targets
with deprecation notice so this compat stuff could be removed in the
future.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
Acked-by: Piotr Dymacz <pepe2k@gmail.com>
(cherry picked from commit 68e672f32df3d6b8a75534df5962ac99b693601b)
include/target.mk