smaeul / sun20i_d1_spl

Mainline-friendly SPL for D1
33 stars 21 forks source link

mk/checkconf.mk: guard should not depend on path #1

Closed xypron closed 2 years ago

xypron commented 2 years ago

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

smaeul commented 2 years ago

Merged, thanks!