diff options
author | KaDiWa <kalle.wachsmuth@gmail.com> | 2022-11-21 18:59:05 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2022-12-04 18:11:30 +0300 |
commit | ba3202168339e86b5aa28cccf090cfe6d848d88b (patch) | |
tree | f5fdb4860cf1202014f37d4f24683fb66823bd35 /Makefile | |
parent | 9a740f5c4655053f4d8c7df65f51ad58cfb1bb2e (diff) | |
download | opensbi-ba3202168339e86b5aa28cccf090cfe6d848d88b.tar.xz |
Makefile: replace `echo` with `printf` for compatibility
I don't know why but `echo -n` didn't work for me. macOS supports
the `-n` option but it doesn't work in the makefile. What it does
instead is it literally writes `-n` to the file and then also
leaves a newline at the end.
I'm using GNU Make 4.4 (`gmake` from Homebrew).
Signed-off-by: KaDiWa <kalle.wachsmuth@gmail.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -224,7 +224,7 @@ $(KCONFIG_CONFIG): $(platform_src_dir)/configs/$(PLATFORM_DEFCONFIG) $(platform_ $(KCONFIG_AUTOCMD): $(KCONFIG_CONFIG) $(CMD_PREFIX)mkdir -p $(KCONFIG_DIR) - $(CMD_PREFIX)echo -n "$(KCONFIG_CONFIG): " > $(KCONFIG_AUTOCMD) + $(CMD_PREFIX)printf "%s: " $(KCONFIG_CONFIG) > $(KCONFIG_AUTOCMD) $(CMD_PREFIX)cat $(KCONFIG_AUTOLIST) | tr '\n' ' ' >> $(KCONFIG_AUTOCMD) include $(KCONFIG_CONFIG) |