Makefile: Respect manual changes to .config
authorSamuel Holland <samuel.holland@sifive.com>
Mon, 18 Mar 2024 20:49:40 +0000 (13:49 -0700)
committerAnup Patel <anup@brainfault.org>
Sun, 7 Apr 2024 06:35:37 +0000 (12:05 +0530)
commit268feab2949a08743ffbb4afd9d40cdcafd78376
treeb0812acda7a23f3371c8cf857edbd030ed40753b
parent29ecda9c2065afd3fb2f8cc465bc096d545d825e
Makefile: Respect manual changes to .config

The .config file may be manually edited or copied from another location.
Since genconfig.py is responsible for generating auto.conf (the Makefile
fragment) and autoconf.h (the C header) from .config, it must be run any
time .config changes, not just when running menuconfig.

Fixes: 662e631ccef2 ("Makefile: Add initial kconfig support for each platform")
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Tested-by: Anup Patel <anup@brainfault.org>
Makefile