Currently the guard in config.h depends on the build path. If the build
path includes characters like '-' or '+' this leads to build errors:
make -C /<>/nezha-boot0-1.0.1+11+g70d35f2/arch/riscv/cpu/riscv64/
In file included from boot0_entry.S:7:
/<>/nezha-boot0-1.0.1+11+g70d35f2/include/config.h:1:53:
error: extra tokens at end of #ifndef directive [-Werror]
Currently the guard in config.h depends on the build path. If the build path includes characters like '-' or '+' this leads to build errors:
make -C /<>/nezha-boot0-1.0.1+11+g70d35f2/arch/riscv/cpu/riscv64/
In file included from boot0_entry.S:7:
/<>/nezha-boot0-1.0.1+11+g70d35f2/include/config.h:1:53:
error: extra tokens at end of #ifndef directive [-Werror]
Use a predefined guard.
Signed-off-by: Heinrich Schuchardt heinrich.schuchardt@canonical.com