Following command: $ ./scripts/dump-target-info.pl targets
currently generates bunch of following warnings: include/target.mk:269: CPU_TYPE "cortex-a15" doesn't correspond to a known type just because there is no CPU_CFLAGS_cortexa-15 defined for that CPU and there is no value in this warning, so lets acknowledge such CPU_TYPEs and do not print those warnings. Signed-off-by: Petr Štetiar <yn...@true.cz> --- include/target.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/target.mk b/include/target.mk index b5e3e7ff6fde..1783f8f94f9d 100644 --- a/include/target.mk +++ b/include/target.mk @@ -264,9 +264,13 @@ ifeq ($(DUMP),1) CPU_TYPE ?= riscv64 CPU_CFLAGS_riscv64:=-mabi=lp64d -march=rv64imafdc endif + DONOT_WARN_CPU_TYPES=arm1176jzf-s arm926ej-s cortex-a15 cortex-a5 cortex-a7 cortex-a72 \ + cortex-a8 cortex-a9 fa526 mpcore xscale ifneq ($(CPU_TYPE),) ifndef CPU_CFLAGS_$(CPU_TYPE) - $(warning CPU_TYPE "$(CPU_TYPE)" doesn't correspond to a known type) + ifeq (,$(findstring $(CPU_TYPE),$(DONOT_WARN_CPU_TYPES))) + $(warning CPU_TYPE "$(CPU_TYPE)" doesn't correspond to a known type) + endif endif endif DEFAULT_CFLAGS=$(strip $(CPU_CFLAGS) $(CPU_CFLAGS_$(CPU_TYPE)) $(CPU_CFLAGS_$(CPU_SUBTYPE))) _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel